Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 17 Apr 2015 22:32:31 +0200
From: Szabolcs Nagy <>
Subject: Re: Explicit casts in ctype.h suppress compiler warnings

* Rich Felker <> [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

(__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.