Commit 335d03ec by Neil Booth Committed by Neil Booth

* cppexp.c (parse_defined): Warn only if -pedantic.

From-SVN: r70116
parent 79572cb1
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>
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment