diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-12-28 23:21:53 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-12-28 23:21:53 +0000 |
commit | 8d9a91afca42e6d270f8503756eac7659ddb6f0a (patch) | |
tree | 9dfeb3c8a05e95bb725bb49948172b8522c02fb4 | |
parent | 287b549ce0e473e91dcf0e06e5f20a1c3b966aea (diff) | |
parent | a160a82b91657bb119140b4cf4e4640a47a20c3e (diff) | |
download | imv-8d9a91afca42e6d270f8503756eac7659ddb6f0a.tar.gz |
Merge pull request #70 from czarkoff/general
Hide functions that are not exposed via headers
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/loader.c | 2 | ||||
-rw-r--r-- | src/main.c | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -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 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) { @@ -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; |