This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Enable -Wreturn-type by default ?
- From: Sylvestre Ledru <sylvestre at debian dot org>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 17 Nov 2013 12:17:12 +0100
- Subject: Re: Enable -Wreturn-type by default ?
- Authentication-results: sourceware.org; auth=none
- References: <5283ABF2 dot 5010209 at debian dot org> <52884E2F dot 6040902 at warwick dot ac dot uk>
On 17/11/2013 06:03, Alec Teal wrote:
> Who isn't compiling with -Wall and -Wextra?
>
Plenty of users ...
> 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
Sylvestre