]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: don't warn about unused fp in ctf_assert
authorNick Alcock <nick.alcock@oracle.com>
Thu, 24 Apr 2025 12:46:08 +0000 (13:46 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:07:41 +0000 (18:07 +0100)
commitab3ad58be9a1b8719fc06bb361288c0fcd8a4069
tree9bcb958f26c9431ed61e9a7cb5df361a1a8025bb
parent3ae061cfb04eaca92b3f41457f56cad824609bd3
libctf: don't warn about unused fp in ctf_assert

When hash debugging is enabled and NDEBUG is not set, ctf_assert()
translates into a true assert().  Don't leave the fp parameter
unused in this case (which can cause compiler errors when -Werror
is also on).
libctf/ctf-impl.h