[doc, committed] fix -Wbad-function-cast example
Sandra Loosemore
sandra@codesourcery.com
Mon Jan 12 21:51:00 GMT 2015
I was confused by the description of -Wbad-function-cast. It talks
about function calls, but the malloc example looked more like a
declaration, and IIRC it's not valid to redeclare functions from the
standard C library with the wrong return type (or at the very least we
shouldn't encourage doing so in an example). After checking the
implementation to see what the option actually does, I decided it would
be better not to name any particular function here.
Checked in under the obvious fix rule.
-Sandra
2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doc.patch
Type: text/x-patch
Size: 729 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150112/62f7ee0f/attachment.bin>
More information about the Gcc-patches
mailing list