Skip to content

Commit

Permalink
Silence more false positive warnings in llvm.
Browse files Browse the repository at this point in the history
  • Loading branch information
landley committed Mar 6, 2022
1 parent 7a5cb95 commit 2037651
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lib.h
Expand Up @@ -16,7 +16,7 @@ struct ptr_len {

struct string_list {
struct string_list *next;
char str[0];
char str[];
};

struct arg_list {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2037651

Please sign in to comment.