From fe46955421f8d32bd0141eebec1e6e3fb1b46e37 Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Mon, 28 Dec 2015 21:10:49 +0100 Subject: Hide functions that are not exposed via headers --- src/loader.c | 2 +- src/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/loader.c b/src/loader.c index 6021170..599b80d 100644 --- a/src/loader.c +++ b/src/loader.c @@ -140,7 +140,7 @@ void imv_loader_time_passed(struct imv_loader *ldr, double dt) } } -void imv_loader_error_occurred(struct imv_loader *ldr) +static void imv_loader_error_occurred(struct imv_loader *ldr) { pthread_mutex_lock(&ldr->lock); if(ldr->out_err) { diff --git a/src/main.c b/src/main.c index 6683a3b..9a25dfb 100644 --- a/src/main.c +++ b/src/main.c @@ -63,7 +63,7 @@ struct { .font = "Monospace:24", }; -void print_usage(const char* name) +static void print_usage(const char* name) { fprintf(stdout, "imv %s\n" @@ -123,7 +123,7 @@ void print_usage(const char* name) , IMV_VERSION, name); } -void parse_args(int argc, char** argv) +static void parse_args(int argc, char** argv) { /* Do not print getopt errors */ opterr = 0; -- cgit v1.2.3 From a160a82b91657bb119140b4cf4e4640a47a20c3e Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Mon, 28 Dec 2015 23:15:30 +0100 Subject: Add -Wmissing-prototypes to default CFLAGS --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0768a7f..94b78e7 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ ifeq ($(V),) MUTE := @ endif -CFLAGS ?= -W -Wall -Wpedantic +CFLAGS ?= -W -Wall -Wpedantic -Wmissing-prototypes CFLAGS += -std=gnu11 $(shell sdl2-config --cflags) LDFLAGS += $(shell sdl2-config --libs) -lfreeimage -lSDL2_ttf -lfontconfig -lpthread -- cgit v1.2.3