[patch] struct member warning

Jeffrey A Law law@cygnus.com
Fri Jun 19 22:53:00 GMT 1998


  In message <199803301357.PAA17885@halles.ilog.fr>you write:
  > > > Here is a patch which adds a warning (triggered by
  > > > "-Wuninitialized").
  > > 
  > > I think that is the wrong switch.  Initialized to zero is considerably
  > > different from uninitialized.
  > 
  > You're right, but I would like to avoid too many -W options.
  > Let's have the warning triggered by "-W" (extra_warnings). Here is the
  > patch.
  > 
  > 
  > gcc/ChangeLog:
  > 
  > Mon Mar 30 02:40:32 1998  Bruno Haible  <bruno@linuix.mathematik.uni-karlsr
  > uhe.de>
  > 
  >         * c-typeck.c (pop_init_level): Warn about uninitialized members in
  >           struct initializers.
  > 
  > gcc/cp/ChangeLog:
  > 
  > Mon Mar 30 02:40:32 1998  Bruno Haible  <bruno@linuix.mathematik.uni-karlsr
  > uhe.de>
  > 
  >         * typeck2.c (process_init_constructor): Warn about uninitialized
  >           members in struct initializers.
I made some minor comment clarifications and installed this patch.

jeff



More information about the Gcc-patches mailing list