aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat/linux-waitpid.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-12-16 22:56:48 +0000
committerPedro Alves <palves@redhat.com>2015-12-16 22:56:49 +0000
commit7544db951abbb5dca5373dcc7ae83ed60c0782ad (patch)
tree1d330718ad64483b8d7aea34ebc97152168d4b12 /gdb/nat/linux-waitpid.c
parenta4e22a5df64a46bc99f737a982c0b9d1e8a45e2b (diff)
downloadgdb-7544db951abbb5dca5373dcc7ae83ed60c0782ad.zip
gdb-7544db951abbb5dca5373dcc7ae83ed60c0782ad.tar.gz
gdb-7544db951abbb5dca5373dcc7ae83ed60c0782ad.tar.bz2
Fix -Wno-unknown-warning support detection
Ref: https://sourceware.org/ml/gdb/2015-12/msg00024.html We have code in configure.ac that tries to detect whether the compiler supports each warning and suppress it if not, but that doesn't work with "-Wno-" options, because gcc doesn't error out for -Wno-unknown-warning unless other diagnostics are being produced. See https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html. Handle this by checking whether -Wfoo works when we actually want -Wno-foo. gdb/ChangeLog: 2015-12-16 Pedro Alves <palves@redhat.com> * configure.ac (compiler warning flags): When testing a -Wno-foo option, check whether -Wfoo works instead. * configure: Regenerate. gdb/gdbserver/ChangeLog: 2015-12-16 Pedro Alves <palves@redhat.com> * configure.ac (compiler warning flags): When testing a -Wno-foo option, check whether -Wfoo works instead. * configure: Regenerate.
Diffstat (limited to 'gdb/nat/linux-waitpid.c')
0 files changed, 0 insertions, 0 deletions