|
|
Message-ID: <20150417203230.GL2875@port70.net>
Date: Fri, 17 Apr 2015 22:32:31 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: Explicit casts in ctype.h suppress compiler warnings
* Rich Felker <dalias@...c.org> [2015-04-17 16:21:26 -0400]:
> On Fri, Apr 17, 2015 at 09:43:24PM +0200, Szabolcs Nagy wrote:
> > meanwhile i tested that (__extension__ (unsigned){a})
> > is accepted without warning in c89 mode
>
> Try again with -pedantic.
>
__extension__ silences pedantic warnings
i tried various gcc/clang versions with c89/c++98
and it seems to work
http://goo.gl/lWP02j
(__extension__ should be __GNUC__ conditional but
otherwise it seems to me a reasonable solution)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.