aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-08-03 12:23:46 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-08-03 12:23:46 +0000
commit335d03ec867d418098bb3d0b312867bd17403fa8 (patch)
tree920a8b0ae9aa0767c32b013a8c15c2ba73f26473 /gcc/cppexp.c
parent79572cb19be18c26f3558f070bbca94e1fcb6230 (diff)
downloadgcc-335d03ec867d418098bb3d0b312867bd17403fa8.zip
gcc-335d03ec867d418098bb3d0b312867bd17403fa8.tar.gz
gcc-335d03ec867d418098bb3d0b312867bd17403fa8.tar.bz2
* cppexp.c (parse_defined): Warn only if -pedantic.
From-SVN: r70116
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index ef2c1ea..b4f1dcc 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -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");