Avoid implicit gcc nonnull attribute in vwarnx().
We removed the nonnull attributes from our headers long ago, but still __printflike() includes it implicitly. This will cause the NULL check to be optimized away in higher -O levels and it will also trigger a -Wnonnull-compare warning. Avoid warning with it in vwarnx(). Obtained from: DragonfLyBSD (git 6329e2f68af73662a1960240675e796ab586bcb1)
This commit is contained in:
parent
1419515b1e
commit
7982612fd5
@ -60,7 +60,7 @@ void vwarn(const char *, __va_list) __printf0like(1, 0);
|
||||
void warnc(int, const char *, ...) __printf0like(2, 3);
|
||||
void vwarnc(int, const char *, __va_list) __printf0like(2, 0);
|
||||
void warnx(const char *, ...) __printflike(1, 2);
|
||||
void vwarnx(const char *, __va_list) __printflike(1, 0);
|
||||
void vwarnx(const char *, __va_list) __printf0like(1, 0);
|
||||
void err_set_file(void *);
|
||||
void err_set_exit(void (* _Nullable)(int));
|
||||
__END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user