* c-parse.in (unop +): Restrict -Wtraditional warnings to user code.

From-SVN: r35899
This commit is contained in:
Kaveh R. Ghazi 2000-08-23 01:00:52 +00:00 committed by Kaveh Ghazi
parent 126bb9ed7a
commit aac625acc6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* vax.h (ASM_SPEC): Pass `-J' to assembler.

View File

@ -413,7 +413,7 @@ unop: '&'
| '+'
{ $$ = CONVERT_EXPR;
ifc
if (warn_traditional)
if (warn_traditional && !in_system_header)
warning ("traditional C rejects the unary plus operator");
end ifc
}