diff options
author | Pedro Alves <palves@redhat.com> | 2020-07-02 19:32:40 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-07-03 15:01:22 +0100 |
commit | 3c8ea5be24ecc76600b6cea36240449a84c0fc22 (patch) | |
tree | c79f9c13ca696e4b30454ed8c3e3307bbf55e9d5 /gdb/macroscope.c | |
parent | bf90c83acca6736f451807d3e231b53dc02bc57b (diff) | |
download | gdb-3c8ea5be24ecc76600b6cea36240449a84c0fc22.zip gdb-3c8ea5be24ecc76600b6cea36240449a84c0fc22.tar.gz gdb-3c8ea5be24ecc76600b6cea36240449a84c0fc22.tar.bz2 |
Fix gdb.base/structs2.exp with Clang
gdb.base/structs2.exp fails to run with Clang, because of:
gdb compile failed, /home/pedro/gdb/mygit/src/gdb/testsuite/gdb.base/structs2.c:16:14: warning:
implicit conversion from 'int' to 'signed char' changes value from 130 to
-126 [-Wconstant-conversion]
param_reg (130, 120, 33000, 32000);
~~~~~~~~~ ^~~
/home/pedro/gdb/mygit/src/gdb/testsuite/gdb.base/structs2.c:16:24: warning:
implicit conversion from 'int' to 'short' changes value from 33000 to
-32536 [-Wconstant-conversion]
param_reg (130, 120, 33000, 32000);
~~~~~~~~~ ^~~~~
2 warnings generated.
=== gdb Summary ===
# of untested testcases 1
Fix it by passing actual negative numbers.
gdb/testsuite/ChangeLog:
* gdb.base/structs2.c (main): Adjust second parem_reg call to
explicitly write negative numbers.
* gdb.base/structs2.exp: Adjust expected output.
Diffstat (limited to 'gdb/macroscope.c')
0 files changed, 0 insertions, 0 deletions