[LLVMbugs] [Bug 20532] Provide a way to compile legacy code that uses argument-less return in non-void functions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 4 11:43:01 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20532

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #4 from Reid Kleckner <rnk at google.com> ---
(In reply to comment #3)
> I think the situation could be improved here as the behavior from clang
> differs from that of gcc. It would be great for drop-in-compatibility if
> clang could set -Wno-error=return-type by default when compiling code in any
> GNU standard.

I think this is an area where we don't need to bend over backwards to accept
invalid C code for bug-for-bug gcc compatibility. If everyone adds prototypes
to their legacy C code, the world will be better for it. In the meantime, we
have a workaround in place.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140804/12a5bc52/attachment.html>


More information about the llvm-bugs mailing list