This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Enable -Wreturn-type by default ?


On Sun, 17 Nov 2013, Sylvestre Ledru wrote:

On 17/11/2013 06:03, Alec Teal wrote:
I do hope Clang ('though I don't use it) doesn't make it an error
because not all functions have to return in C iirc.
It does.
It makes 120 packages fail to build from source in Debian (on 18854
packages):
http://clang.debian.net/status.php?version=3.3&key=FUNCTION_RETURNS_VALUE

That's cool, if clang forces people to update their code to C99, maybe we'll be able to switch gcc to use -std=gnu99 by default one day...

--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]