History log of /openbsd-src/gnu/usr.bin/gcc/gcc/c-typeck.c (Results 1 – 4 of 4)
Revision Date Author Comments
# 50db8ec9 01-Feb-2023 miod <miod@openbsd.org>

Backport gnu/gcc/gcc/c-typeck.c r1.3 to the gcc 3 code base:

Adjust how gcc3 handles the "missing braces around initializer" warning.

In c99 any value can be initalised using a { 0 } constructor in

Backport gnu/gcc/gcc/c-typeck.c r1.3 to the gcc 3 code base:

Adjust how gcc3 handles the "missing braces around initializer" warning.

In c99 any value can be initalised using a { 0 } constructor independent
of the type. Now if a struct's first member is another struct then gcc4
issues the above warning but it should not do that.

Move the warning check from push_init_level() to pop_init_level() and
check if either { 0 } or { } was used. If additional implicit braces
were added surpress the warning.

Inspired by gcc PR#64709

light testing by me, serious testing by aoyama@

show more ...


# a408a265 25-Dec-2004 espie <espie@openbsd.org>

revert to cast-as-lvalues being pedantic warnings for now.


# 4e43c760 24-Dec-2004 espie <espie@openbsd.org>

gcc 3.3.5


# c87b03e5 29-Nov-2003 espie <espie@openbsd.org>

Import gcc-3.3.2. Only the compiler. ada frontend removed for space
considerations.