gprofng: Don't hardcode -Wno-nonnull-compare
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Mar 2022 15:52:30 +0000 (08:52 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 16 Mar 2022 13:43:24 +0000 (06:43 -0700)
commita8b34706ef017a2032a78892a8595d36029f85a3
tree0d27772419e172fad7c6b1209caba2bdda3602b5
parentc5edd3b8847f118bd022c473b126695fb39f6412
gprofng: Don't hardcode -Wno-nonnull-compare

Use -Wno-nonnull-compare only if it is supported.

PR gprof/28969
* libcollector/Makefile.am (AM_CFLAGS): Replace
-Wno-nonnull-compare with GPROFNG_NO_NONNULL_COMPARE_CFLAGS.
* libcollector/configure.ac (GPROFNG_NO_NONNULL_COMPARE_CFLAGS):
New AC_SUBST for -Wno-nonnull-compare.
* libcollector/Makefile.in: Regenerate.
* libcollector/aclocal.m4: Likewise.
* libcollector/configure: Likewise.
gprofng/libcollector/Makefile.am
gprofng/libcollector/Makefile.in
gprofng/libcollector/aclocal.m4
gprofng/libcollector/configure
gprofng/libcollector/configure.ac