]> Savannah Git Hosting - gnulib.git/commit
libc-config: avoid Clang’s __diagnose_if__
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Aug 2020 21:45:38 +0000 (14:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Aug 2020 21:58:05 +0000 (14:58 -0700)
commita1433e1b1f692c6ae062305d4c683efafb087b38
tree6f21620eae725c5b7821c0d139575b9af03bf20f
parent2a3468c9f263596815a3383c0157ba9a81cf2d24
libc-config: avoid Clang’s __diagnose_if__

* lib/cdefs.h (__warndecl, __warnattr, __errordecl):
For now, do not use __diagnose_if__ here, as this fails
on Fedora 31 with Clang 9.0.1, with diagnostic
"/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
size than length of destination buffer
[-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
for functions that are not called?
ChangeLog
lib/cdefs.h