diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | printf.c | 2 | ||||
-rw-r--r-- | util.c | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -29,7 +29,7 @@ INSTALL ?= install MKDIR ?= mkdir -p RM ?= rm -f -WFLAGS ?= -Wall -Wmissing-declarations +WFLAGS ?= -Wall -Wmissing-declarations -Wstrict-prototypes CFLAGS ?= -g $(WFLAGS) LDFLAGS ?= DEPFLAGS ?= -MD -MP -MF $(@:.o=.d) @@ -28,7 +28,7 @@ * future open() calls may use those file descriptors, and std{in,out,err} will * use them unintentionally. */ -static int open_std_streams() { +static int open_std_streams(void) { #ifdef O_PATH const int inflags = O_PATH, outflags = O_PATH; #else @@ -420,7 +420,7 @@ static void free_directive(struct bfs_printf_directive *directive) { /** * Create a new printf directive. */ -static struct bfs_printf_directive *new_directive() { +static struct bfs_printf_directive *new_directive(void) { struct bfs_printf_directive *directive = malloc(sizeof(*directive)); if (!directive) { perror("malloc()"); @@ -272,7 +272,7 @@ bool is_nonexistence_error(int error) { } /** Read a line from standard input. */ -static char *xgetline() { +static char *xgetline(void) { char *line = dstralloc(0); if (!line) { return NULL; |