chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] noreturn & clang


From: Peter Bex
Subject: Re: [Chicken-hackers] noreturn & clang
Date: Wed, 6 Nov 2013 10:48:23 +0100
User-agent: Mutt/1.4.2.3i

On Wed, Nov 06, 2013 at 10:40:18AM +0100, "Jörg F. Wittenberger" wrote:
> I used to compile with clang to avoid the endless list of
> 
> warning: array subscript is above array bounds [-Warray-bounds]
> 
> from gcc (4.6.1)
> 
> Now it's replaced with an endless list of
> 
> warning: function declared 'noreturn' should not return [-Winvalid-noreturn]
> 
> from clang.  (Besides that I often value compilation time.)
> 
> Does anybody know how to make clang shut up on this one?

A fix for this went in 2 weeks ago, as commit
dc071fbae201f2b8db5539fd016c0d51be0bbe15.  This ought to be available
on master.  AFAIK this hasn't hit the stability branch (yet).

By the way, that array bounds GCC warning should've been fixed a while
ago as well, way back in January there's commit
3ac5bf73c0bec0c5f230ac685e4a17d69a7ea382 which silences these warnings
for clang.  It should also silence them for GCC, I suppose.

Of course, if these warnings are shown by GCC it might be better to
investigate why, and attempt to actually fix them instead of working
around it by using another compiler!

Cheers,
Peter
-- 
http://www.more-magic.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]