test_library: suppress size_t -> int warning

getopt: suppress `-Wdeprecated-non-prototype` warnings
This commit is contained in:
gitlost 2024-05-28 02:39:49 +01:00
parent eb035a6372
commit a1aefdc50b
3 changed files with 5 additions and 3 deletions

View file

@ -135,7 +135,8 @@ struct option
arguments to the option '\0'. This behavior is specific to the GNU
`getopt'. */
#ifdef __GNU_LIBRARY__
/* zint: prototype it always to avoid warning `-Wdeprecated-non-prototype` (will be error in C2x) */
#ifdef 1 /* was __GNU_LIBRARY__ */
/* Many other libraries have conflicting prototypes for getopt, with
differences in the consts, in stdlib.h. To avoid compilation
errors, only prototype getopt for the GNU C library. */