[PATCH] Fix assert() warning in gcc < 4.8 [BZ# 21242]
Florian Weimer
fweimer@redhat.com
Tue Mar 21 09:55:00 GMT 2017
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
More information about the Libc-alpha
mailing list