OSDN Git Service

* cppexp.c (parse_defined): Warn only if -pedantic.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Aug 2003 12:23:46 +0000 (12:23 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Aug 2003 12:23:46 +0000 (12:23 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70116 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cppexp.c

index 145cf2c..a242688 100644 (file)
@@ -1,5 +1,9 @@
 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
 
+       * cppexp.c (parse_defined): Warn only if -pedantic.
+
+2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
+
        * cppfiles.c (stack_file): Use file path.
 
 2003-08-02  Roger Sayle  <roger@eyesopen.com>
index ef2c1ea..b4f1dcc 100644 (file)
@@ -487,7 +487,7 @@ parse_defined (cpp_reader *pfile)
 
   if (node)
     {
-      if (pfile->context != initial_context)
+      if (pfile->context != initial_context && CPP_PEDANTIC (pfile))
        cpp_error (pfile, DL_WARNING,
                   "this use of \"defined\" may not be portable");