[Patch] PR55189 enable -Wreturn-type by default

Jason Merrill jason@redhat.com
Thu Jan 23 18:48:00 GMT 2014


On 01/16/2014 02:44 PM, Jason Merrill wrote:
> To avoid spurious warnings on code with infinite loops we could add a
> simple check for infinite loops and suppress the warning in that case.
> Basically, if we see a loop with an always-true condition and no breaks.

Like so:

Tested x86_64-pc-linux-gnu, applying to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 55189-loop.patch
Type: text/x-patch
Size: 9871 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140123/a1c42a2d/attachment.bin>


More information about the Gcc-patches mailing list