From 20376512ae99be103875a1605ad69a7c876b818a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 6 Mar 2022 00:24:43 -0600 Subject: [PATCH] Silence more false positive warnings in llvm. --- lib/lib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lib.h b/lib/lib.h index 6ab312e3..6e9a2640 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -16,7 +16,7 @@ struct ptr_len { struct string_list { struct string_list *next; - char str[0]; + char str[]; }; struct arg_list { @@ -199,8 +199,8 @@ void perror_exit(char *msg, ...) printf_format __attribute__((__noreturn__)); void help_exit(char *msg, ...) printf_format __attribute__((__noreturn__)); void error_msg_raw(char *msg); void perror_msg_raw(char *msg); -void error_exit_raw(char *msg); -void perror_exit_raw(char *msg); +void error_exit_raw(char *msg) __attribute__((__noreturn__)); +void perror_exit_raw(char *msg) __attribute__((__noreturn__)); ssize_t readall(int fd, void *buf, size_t len); ssize_t writeall(int fd, void *buf, size_t len); off_t lskip(int fd, off_t offset); -- 2.39.2