This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix assert() warning in gcc < 4.8 [BZ# 21242]
- From: Florian Weimer <fweimer at redhat dot com>
- To: Justin Brewer <jzb0012 at auburn dot edu>, libc-alpha at sourceware dot org
- Date: Tue, 21 Mar 2017 10:55:31 +0100
- Subject: Re: [PATCH] Fix assert() warning in gcc < 4.8 [BZ# 21242]
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 63DB07AE80
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 63DB07AE80
- References: <6619e7e2-248e-08bc-6dc5-7b4d11bea3df@auburn.edu>
On 03/19/2017 10:44 PM, Justin Brewer wrote:
-# if !defined __GNUC__ || defined __STRICT_ANSI__
+# if !(defined __GNUC__ && __GNUC_PREREQ(4,8)) || defined __STRICT_ANSI__
I'm not happy how this disables the useful = warning for clang altogether.
Do we have a better option? Is there a way for check for the -pedantic
flag?
Thanks,
Florian