]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Fix gdb.base/infcall-nested-structs-c++.exp with Clang
authorGary Benson <gbenson@redhat.com>
Fri, 25 Sep 2020 13:44:07 +0000 (14:44 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 25 Sep 2020 13:44:07 +0000 (14:44 +0100)
commitc20c017b2cdd28aa93071151bb7e704541fde730
tree719bb50a6c087c4e6091eca11e5b1028478f6005
parent68d654afdfcff840ebb3ae432ed72dca0521d670
Fix gdb.base/infcall-nested-structs-c++.exp with Clang

gdb.base/infcall-nested-structs-c++.exp failed to build using Clang
with many variations on the following error:

  gdb compile failed, /gdbtest/src/gdb/testsuite/gdb.base/infcall-nested-structs.c:207:46:
    warning: self-comparison always evaluates to true [-Wtautological-compare]

This commit builds this testcase with -Wno-tautological-compare when
using Clang, to avoid this failure.

gdb/testsuite/ChangeLog:

* gdb.base/infcall-nested-structs.exp.tcl: Add
additional_flags=-Wno-tautological-compare for C++
tests when compiling using Clang.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/infcall-nested-structs.exp.tcl