From a4be30c59cd6452ab595d221bc4e97bab00517a7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Aug 2012 00:01:07 +0000 Subject: Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/sord/trunk@244 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sordi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sordi.c') diff --git a/src/sordi.c b/src/sordi.c index 9e4ed3a..a609194 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -36,8 +36,8 @@ typedef struct { SordModel* sord; } State; -int -print_version() +static int +print_version(void) { printf("sordi " SORD_VERSION " \n"); printf("Copyright 2011-2012 David Robillard .\n" @@ -47,7 +47,7 @@ print_version() return 0; } -int +static int print_usage(const char* name, bool error) { FILE* const os = error ? stderr : stdout; @@ -62,7 +62,7 @@ print_usage(const char* name, bool error) return error ? 1 : 0; } -bool +static bool set_syntax(SerdSyntax* syntax, const char* name) { if (!strcmp(name, "turtle")) { @@ -76,7 +76,7 @@ set_syntax(SerdSyntax* syntax, const char* name) return true; } -uint8_t* +static uint8_t* absolute_path(const uint8_t* path) { #ifdef _WIN32 -- cgit v1.2.1