aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-sha1.c
diff options
context:
space:
mode:
authorBruno Larsen <blarsen@redhat.com>2023-01-03 15:07:47 +0100
committerBruno Larsen <blarsen@redhat.com>2023-01-06 10:50:43 +0100
commit695e9773786d79f191e9487a88d3b39a57d9c7e7 (patch)
tree5ca0c8986e13c60bb08ec174c03fbde1ae16ea65 /libctf/ctf-sha1.c
parent5fb0e308577143ceb313fde5538dc9ecb038f29f (diff)
downloadgdb-695e9773786d79f191e9487a88d3b39a57d9c7e7.zip
gdb-695e9773786d79f191e9487a88d3b39a57d9c7e7.tar.gz
gdb-695e9773786d79f191e9487a88d3b39a57d9c7e7.tar.bz2
gdb/testsuite: Fix FAILs in gdb.linespec/cpcompletion.exp when using clang
When using clang 16.0.0 to test gdb.linespec/cpcompletion.exp, I get 99 unexpected failures. They all fail to produce a complete list of completion options for a function, either overload2_function, overload3_function or anon_ns_function. This happens because clang is optimizing them away, since they are never used. Fix this by adding __attribute__((used)) to all declarations to the aforementioned functions.
Diffstat (limited to 'libctf/ctf-sha1.c')
0 files changed, 0 insertions, 0 deletions