Java warning patches part 2/2

Mark Mitchell mark@markmitchell.com
Wed Mar 31 18:59:00 GMT 1999


>>>>> "Kaveh" == Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:

    >> From: Per Bothner <bothner@cygnus.com>
    >> 
    >> + uint16 minor_version ATTRIBUTE_UNUSED = JCF_readu2 (jcf); +
    >> uint16 major_version ATTRIBUTE_UNUSED = JCF_readu2 (jcf);
    >> 
    >> I think I prefer this style:
    >> 
    >> (void) JCF_readu2 (jcf); /* minor_version */ (void) JCF_readu2
    >> (jcf); /* major_version */

I like this style, too.  But, it's directly against the GNU Coding
Standards:

  Please don't insert any casts to `void'.

-- 
Mark Mitchell 			mark@markmitchell.com
Mark Mitchell Consulting	http://www.markmitchell.com



More information about the Gcc-patches mailing list