From: Sam James Date: Sat, 16 Nov 2024 05:12:51 +0000 (+0000) Subject: binutils: fix -std=gnu23 compatibility wrt _Bool X-Git-Tag: gdb-16-branchpoint~413 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7;p=thirdparty%2Fbinutils-gdb.git binutils: fix -std=gnu23 compatibility wrt _Bool GCC trunk now defaults to -std=gnu23. We return false in a few places which can't work when true/false are a proper type (_Bool). Return NULL where appropriate instead of false. All callers handle this appropriately. ChangeLog: PR ld/32372 * prdbg.c (visibility_name): Return NULL. --- diff --git a/binutils/prdbg.c b/binutils/prdbg.c index 3941d6e1791..d6e828ee545 100644 --- a/binutils/prdbg.c +++ b/binutils/prdbg.c @@ -2818,7 +2818,7 @@ visibility_name (enum debug_visibility visibility) break; default: abort (); - return false; + return NULL; } return s; }