mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 22:03:57 +08:00
* c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
From-SVN: r35899
This commit is contained in:
parent
126bb9ed7a
commit
aac625acc6
@ -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.
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user