diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-03-15 08:56:39 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-03-16 06:43:24 -0700 |
commit | 61a1f2e71118206dd700fc1ddf244b2178bf6610 (patch) | |
tree | 7618b0051db2116a8b36a8824c09c10c620fd623 /gprofng/Makefile.in | |
parent | a8b34706ef017a2032a78892a8595d36029f85a3 (diff) | |
download | gdb-61a1f2e71118206dd700fc1ddf244b2178bf6610.zip gdb-61a1f2e71118206dd700fc1ddf244b2178bf6610.tar.gz gdb-61a1f2e71118206dd700fc1ddf244b2178bf6610.tar.bz2 |
gprofng: Don't hardcode -Wno-format-truncation/-Wno-switch
Use -Wno-format-truncation and -Wno-switch only if they are supported.
PR gprof/28969
* configure.ac (GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS): New
AC_SUBST for -Wno-format-truncation.
(GPROFNG_NO_SWITCH_CFLAGS): New AC_SUBST for -Wno-switch.
* Makefile.in: Regenerate.
* configure: Likewise.
* src/Makefile.am (AM_CFLAGS): Replace -Wno-format-truncation
and -Wno-switch with GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS and
GPROFNG_NO_SWITCH_CFLAGS.
* src/Makefile.in: Regenerate.
Diffstat (limited to 'gprofng/Makefile.in')
-rw-r--r-- | gprofng/Makefile.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gprofng/Makefile.in b/gprofng/Makefile.in index 08ffdd2..62005dc 100644 --- a/gprofng/Makefile.in +++ b/gprofng/Makefile.in @@ -265,6 +265,8 @@ GPROFNG_CFLAGS = @GPROFNG_CFLAGS@ GPROFNG_CPPFLAGS = @GPROFNG_CPPFLAGS@ GPROFNG_LIBADD = @GPROFNG_LIBADD@ GPROFNG_LIBDIR = @GPROFNG_LIBDIR@ +GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS = @GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS@ +GPROFNG_NO_SWITCH_CFLAGS = @GPROFNG_NO_SWITCH_CFLAGS@ GREP = @GREP@ HELP2MAN = @HELP2MAN@ INSTALL = @INSTALL@ |