mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 14:57:21 +08:00
c-decl.c (grokdeclarator): Don't warn about implicit int in `typedef foo = bar'.
* c-decl.c (grokdeclarator): Don't warn about implicit int in `typedef foo = bar'. From-SVN: r20863
This commit is contained in:
parent
0c1ba5499f
commit
03369c9399
@ -1,3 +1,8 @@
|
||||
Wed Jul 1 10:56:55 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||
|
||||
* c-decl.c (grokdeclarator): Don't warn about implicit int in
|
||||
`typedef foo = bar'.
|
||||
|
||||
Wed Jul 1 02:12:33 1998 Robert Lipe <robertl@dgii.com>
|
||||
|
||||
* i386.c (asm_output_function_prefix): Make 686 function
|
||||
|
@ -4451,6 +4451,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
|
||||
if ((! (specbits & ((1 << (int) RID_LONG) | (1 << (int) RID_SHORT)
|
||||
| (1 << (int) RID_SIGNED)
|
||||
| (1 << (int) RID_UNSIGNED))))
|
||||
/* Don't warn about typedef foo = bar. */
|
||||
&& ! (specbits & (1 << (int) RID_TYPEDEF) && initialized)
|
||||
&& ! (in_system_header && ! allocation_temporary_p ()))
|
||||
{
|
||||
/* C9x will probably require a diagnostic here.
|
||||
|
Loading…
Reference in New Issue
Block a user