More g-wrap bogosities

Derek Atkins warlord@MIT.EDU
13 Jan 2002 14:09:20 -0500


Rob Browning <rlb@defaultvalue.org> writes:

> > Yes, this code would clearly be optimized out by the compiler.  But
> > why can't you generate a code block that looks like:
> >
> > {
> >    enum GW__ErrorStatus gw__tmp564_status_var = GW__ERR_NONE;
> >    SCM gw__tmp566_err_data = SCM_UNSPECIFIED;
> >    char *gw__tmp565_err_misc_msg = NULL;
> >
> >    (void)gw__tmp564_status_var;
> >    (void)gw__tmp566_err_data;
> >    (void)gw__tmp565_err_misc_msg;
> > }
> 
> Hmm.  This might be OK, and I think I can add that without any
> trouble.

This will (should?) solve the unused variable problem.  I agree
that the unitialized variable problem will be more difficult
to solve.

> Thanks

NP.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available