c-typeck.c (process_init_element): Avoid union init warnings on floating point zero.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 12 Sep 2000 14:22:45 +0000 (14:22 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 12 Sep 2000 14:22:45 +0000 (14:22 +0000)
commit32892c52e4674485c40311bd82d64f5adb025905
tree6aaa48ffc7686f85463cf81cf5f0dc0142e4c76f
parentae0a1c23b769ac9d8fa1b572b5effcb7a275a494
c-typeck.c (process_init_element): Avoid union init warnings on floating point zero.

* c-typeck.c (process_init_element): Avoid union init warnings on
floating point zero.  Don't crash on unions containing structs.

testsuite:
* gcc.dg/wtr-union-init-2.c, gcc.dg/wtr-union-init-3.c: New tests.

From-SVN: r36358
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/wtr-union-init-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/wtr-union-init-3.c [new file with mode: 0644]