warning: `%y' yields only last 2 digits of year

Robert Dewar dewar@gnat.com
Tue Mar 12 16:06:00 GMT 2002


<<Well, I really REALLY do.  That's a nice idiom for shutting up
the warning.  Thanks.
>>

It's not just about shutting up the warning, if you write:

x = (void *)(size_t)y

you are clearly saying to the reader that you understand the issues and
that you know what you are doing :-)



More information about the Gcc mailing list