diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-06-02 13:33:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-06-02 13:33:25 +0200 |
commit | 2c97d4f6222c435719bab7f3d290321a77b4877b (patch) | |
tree | 361cb382362f61f5c99ac558b315dc1f9c00ac23 /libxsde/xsde/c | |
parent | 264f4b7b9ac4988bef5c14505ce8836285a9c50d (diff) |
Disable certain Green Hills C++ compiler warnings
Diffstat (limited to 'libxsde/xsde/c')
-rw-r--r-- | libxsde/xsde/c/compilers/ghs/post.h | 8 | ||||
-rw-r--r-- | libxsde/xsde/c/compilers/ghs/pre.h | 12 | ||||
-rw-r--r-- | libxsde/xsde/c/post.h | 8 | ||||
-rw-r--r-- | libxsde/xsde/c/pre.h | 8 |
4 files changed, 36 insertions, 0 deletions
diff --git a/libxsde/xsde/c/compilers/ghs/post.h b/libxsde/xsde/c/compilers/ghs/post.h new file mode 100644 index 0000000..7a16f02 --- /dev/null +++ b/libxsde/xsde/c/compilers/ghs/post.h @@ -0,0 +1,8 @@ +// file : xsde/c/compilers/ghs/post.h +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#ifdef __EDG__ +# pragma ghs endnowarning +#endif diff --git a/libxsde/xsde/c/compilers/ghs/pre.h b/libxsde/xsde/c/compilers/ghs/pre.h new file mode 100644 index 0000000..076ab8a --- /dev/null +++ b/libxsde/xsde/c/compilers/ghs/pre.h @@ -0,0 +1,12 @@ +// file : xsde/c/compilers/ghs/pre.h +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +// Warning pragmas are only available in the new generation compiler. +// +// 111 - statement is unreachable +// +#ifdef __EDG__ +# pragma ghs nowarning 111 +#endif diff --git a/libxsde/xsde/c/post.h b/libxsde/xsde/c/post.h new file mode 100644 index 0000000..7db2fa2 --- /dev/null +++ b/libxsde/xsde/c/post.h @@ -0,0 +1,8 @@ +// file : xsde/c/post.h +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#if defined(__ghs__) || defined(__ghs) || defined(ghs) +# include <xsde/c/compilers/ghs/post.h> +#endif diff --git a/libxsde/xsde/c/pre.h b/libxsde/xsde/c/pre.h new file mode 100644 index 0000000..05098d1 --- /dev/null +++ b/libxsde/xsde/c/pre.h @@ -0,0 +1,8 @@ +// file : xsde/c/pre.h +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#if defined(__ghs__) || defined(__ghs) || defined(ghs) +# include <xsde/c/compilers/ghs/pre.h> +#endif |