]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Build two gdb.cp testcases with -Wno-unused-comparison
authorGary Benson <gbenson@redhat.com>
Fri, 29 May 2020 13:03:01 +0000 (14:03 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 29 May 2020 13:03:01 +0000 (14:03 +0100)
commit735d5a07160bcffaa8e66d4fffecd7f333a0e1fe
treeeea665915f9c98a9649f09b6876255faf78d7770
parentab7ad28739a85312b752ea6cf91ce08199d4ab64
Build two gdb.cp testcases with -Wno-unused-comparison

Clang fails to compile two testcases with the following error:
  warning: equality comparison result unused [-Wunused-comparison]

This prevents the following testcases from executing:
  gdb.cp/koenig.exp
  gdb.cp/operator.exp

This commit builds those testcases with -Wno-unused-comparison, to
avoid the failure.  Note that this commit reveals a new failure,
"FAIL: gdb.cp/koenig.exp: p foo (p_union)" when the testsuite is
compiled using clang.

gdb/testsuite/ChangeLog:

* gdb.cp/koenig.exp (prepare_for_testing): Add
additional_flags=-Wno-unused-comparison.
* gdb.cp/operator.exp (prepare_for_testing): Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/koenig.exp
gdb/testsuite/gdb.cp/operator.exp