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 | |
parent | 264f4b7b9ac4988bef5c14505ce8836285a9c50d (diff) |
Disable certain Green Hills C++ compiler warnings
Diffstat (limited to 'libxsde')
-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 | ||||
-rw-r--r-- | libxsde/xsde/cxx/compilers/ghs/post.hxx | 8 | ||||
-rw-r--r-- | libxsde/xsde/cxx/compilers/ghs/pre.hxx | 12 | ||||
-rw-r--r-- | libxsde/xsde/cxx/post.hxx | 8 | ||||
-rw-r--r-- | libxsde/xsde/cxx/pre.hxx | 9 |
8 files changed, 72 insertions, 1 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 diff --git a/libxsde/xsde/cxx/compilers/ghs/post.hxx b/libxsde/xsde/cxx/compilers/ghs/post.hxx new file mode 100644 index 0000000..9dcdad1 --- /dev/null +++ b/libxsde/xsde/cxx/compilers/ghs/post.hxx @@ -0,0 +1,8 @@ +// file : xsde/cxx/compilers/ghs/post.hxx +// 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/cxx/compilers/ghs/pre.hxx b/libxsde/xsde/cxx/compilers/ghs/pre.hxx new file mode 100644 index 0000000..ad3217b --- /dev/null +++ b/libxsde/xsde/cxx/compilers/ghs/pre.hxx @@ -0,0 +1,12 @@ +// file : xsde/cxx/compilers/ghs/pre.hxx +// 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. +// +// 997 - virtual function hidden +// +#ifdef __EDG__ +# pragma ghs nowarning 997 +#endif diff --git a/libxsde/xsde/cxx/post.hxx b/libxsde/xsde/cxx/post.hxx index 20a7263..3d4bff2 100644 --- a/libxsde/xsde/cxx/post.hxx +++ b/libxsde/xsde/cxx/post.hxx @@ -3,6 +3,8 @@ // copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file +// VC++ +// #ifdef _MSC_VER # if (_MSC_VER >= 1400) # include <xsde/cxx/compilers/vc-8/post.hxx> @@ -12,3 +14,9 @@ # include <xsde/cxx/compilers/vc-6/post.hxx> # endif #endif + +// Green Hills C++ +// +#if defined(__ghs__) || defined(__ghs) || defined(ghs) +# include <xsde/cxx/compilers/ghs/post.hxx> +#endif diff --git a/libxsde/xsde/cxx/pre.hxx b/libxsde/xsde/cxx/pre.hxx index e733206..70c2c7d 100644 --- a/libxsde/xsde/cxx/pre.hxx +++ b/libxsde/xsde/cxx/pre.hxx @@ -3,7 +3,8 @@ // copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file - +// VC++ +// #ifdef _MSC_VER # if (_MSC_VER >= 1400) # include <xsde/cxx/compilers/vc-8/pre.hxx> @@ -13,3 +14,9 @@ # include <xsde/cxx/compilers/vc-6/pre.hxx> # endif #endif + +// Green Hills C++ +// +#if defined(__ghs__) || defined(__ghs) || defined(ghs) +# include <xsde/cxx/compilers/ghs/pre.hxx> +#endif |