Follow-up Comment #7, bug #65537 (group make):

[comment #6 comment #6:]
That change on top of t'other Paul's from [comment #3 #3] and without my
maintMakefile change from [comment #1 #1] is sufficient to stop the remaining
warning, thanks.
[comment #5 comment #5:]
> GCC 4.2 and earlier doesn't support "#pragma GCC diagnostic ignored" and
issues a diagnostic about it.
I see it is indeed so:

martind@stormy:~/tmp/make-65537$ cat > diagnostic-ignored.c
#pragma GCC diagnostic ignored "-Wtype-limits"
martind@stormy:~/tmp/make-65537$ gcc-4.3 -c diagnostic-ignored.c
martind@stormy:~/tmp/make-65537$ gcc-4.2 -c diagnostic-ignored.c
diagnostic-ignored.c:1: warning: unknown option after ‘#pragma GCC
diagnostic’ kind
martind@stormy:~/tmp/make-65537$ 

... despite my not spotting any note about it in
https://gcc.gnu.org/gcc-4.3/changes.html.  Apologies for my earlier failure to
understand that the expression was equivalent to how I might have written it:

__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65537>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to