From 2c97d4f6222c435719bab7f3d290321a77b4877b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Jun 2010 13:33:25 +0200 Subject: Disable certain Green Hills C++ compiler warnings --- libxsde/xsde/c/compilers/ghs/post.h | 8 ++++++++ libxsde/xsde/c/compilers/ghs/pre.h | 12 ++++++++++++ libxsde/xsde/c/post.h | 8 ++++++++ libxsde/xsde/c/pre.h | 8 ++++++++ libxsde/xsde/cxx/compilers/ghs/post.hxx | 8 ++++++++ libxsde/xsde/cxx/compilers/ghs/pre.hxx | 12 ++++++++++++ libxsde/xsde/cxx/post.hxx | 8 ++++++++ libxsde/xsde/cxx/pre.hxx | 9 ++++++++- 8 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 libxsde/xsde/c/compilers/ghs/post.h create mode 100644 libxsde/xsde/c/compilers/ghs/pre.h create mode 100644 libxsde/xsde/c/post.h create mode 100644 libxsde/xsde/c/pre.h create mode 100644 libxsde/xsde/cxx/compilers/ghs/post.hxx create mode 100644 libxsde/xsde/cxx/compilers/ghs/pre.hxx 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 +// 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 +// 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 +// 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 +#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 +// 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 +#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 +// 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 +// 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 @@ -12,3 +14,9 @@ # include # endif #endif + +// Green Hills C++ +// +#if defined(__ghs__) || defined(__ghs) || defined(ghs) +# include +#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 @@ -13,3 +14,9 @@ # include # endif #endif + +// Green Hills C++ +// +#if defined(__ghs__) || defined(__ghs) || defined(ghs) +# include +#endif -- cgit v1.1