aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/s-oscons-tmplt.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2012-08-06 09:43:45 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2012-08-06 09:43:45 +0200
commit1bd84c71bca4d284e257f97b4a93c7af1907376e (patch)
tree30a99f9deb518a84c7ea1adc58a359038b3d8b43 /gcc/ada/s-oscons-tmplt.c
parentb3f96dc15b1e7c05252f15dddaabd8e02a4aa90a (diff)
downloadgcc-1bd84c71bca4d284e257f97b4a93c7af1907376e.zip
gcc-1bd84c71bca4d284e257f97b4a93c7af1907376e.tar.gz
gcc-1bd84c71bca4d284e257f97b4a93c7af1907376e.tar.bz2
[multiple changes]
2012-08-06 Robert Dewar <dewar@adacore.com> * s-htable.adb: Minor reformatting. 2012-08-06 Thomas Quinot <quinot@adacore.com> * s-oscons-tmplt.c, g-socket.adb (System.OS_Constants.Target_OS): Suppress warnings so that we don't have to do it at each usage. From-SVN: r190157
Diffstat (limited to 'gcc/ada/s-oscons-tmplt.c')
-rw-r--r--gcc/ada/s-oscons-tmplt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c
index 467a1e4..dbfab4e 100644
--- a/gcc/ada/s-oscons-tmplt.c
+++ b/gcc/ada/s-oscons-tmplt.c
@@ -264,6 +264,13 @@ package System.OS_Constants is
# define TARGET_OS "Other_OS"
#endif
C("Target_OS", OS_Type, TARGET_OS, "")
+/*
+ pragma Warnings (Off, Target_OS);
+ -- Suppress warnings on Target_OS since it is in general tested for
+ -- equality with a constant valueto implement conditional compilation,
+ -- which normally generates a constant condition warning.
+
+*/
#define Target_Name TARGET
CST(Target_Name, "")
/*