[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc-2.95 vs gcc-3.x



On Thu, 26 May 2005, Andrei Emeltchenko wrote:

Hi,
sorry for this post, but somehow it is self-explained

... skip


=> gcc-3.2 -pedantic init_test.c
init_test.c:20: warning: obsolete use of designated initializer with `:'
init_test.c:21: warning: obsolete use of designated initializer with `:'
init_test.c:22: warning: ISO C89 forbids compound literals
init_test.c:22: warning: ISO C forbids casts to union type
init_test.c:22: initializer element is not constant
init_test.c:22: (near initialization for `union_table[0]')

comment the line with (union _union1)

=> gcc-3.2 -pedantic init_test.c
init_test.c:20: warning: obsolete use of designated initializer with `:'
init_test.c:21: warning: obsolete use of designated initializer with `:'
init_test.c:22: warning: ISO C89 forbids compound literals

 Does it work?
 Yura.



Reply to: