RFA: fix PR 1535

Andreas Schwab schwab@suse.de
Fri Aug 15 08:44:00 GMT 2008


Daniel Jacobowitz <drow@false.org> writes:

> But I'm not sure why you didn't get a warning for (void *) 1.

GCC doesn't warn for pointer casts of literals, since the value is known
and it's a common idiom (SIG_IGN uses it, for example).

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb-patches mailing list