Derek Atkins <[EMAIL PROTECTED]> writes: > Rob, > > g-wrap appears to be generating code that looks like this: > > { > enum GW__ErrorStatus gw__tmp564_status_var = GW__ERR_NONE; > SCM gw__tmp566_err_data = SCM_UNSPECIFIED; > char *gw__tmp565_err_misc_msg = NULL; > } > > Yes, this is an actual verbatim cut-and-paste from gw-app-utils.c, > around line 2620.
Right, I know. > 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. Thanks -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG=1C58 8B2C FB5E 3F64 EA5C 64AE 78FE E5FE F0CB A0AD _______________________________________________ gnucash-devel mailing list [EMAIL PROTECTED] http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel