From a1027bceebb36afc4fa9d082277478abd8101eda Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Fri, 20 Apr 2018 22:31:18 -0600 Subject: Enabled and then cleaned up warnings --- redist/json_helpers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'redist/json_helpers.c') diff --git a/redist/json_helpers.c b/redist/json_helpers.c index ebacd2c..0741c84 100644 --- a/redist/json_helpers.c +++ b/redist/json_helpers.c @@ -120,8 +120,9 @@ char* load_file_to_mem(const char* path) { int len = ftell( f ); fseek( f, 0, SEEK_SET ); char * JSON_STRING = malloc( len + 1); - memset(JSON_STRING,0,len+1); - size_t i = fread( JSON_STRING, len, 1, f ); i = i; //Ignore return value. + memset(JSON_STRING,0,len+1); + size_t i = fread(JSON_STRING, len, 1, f); + (void)i; // Ignore return value. fclose( f ); return JSON_STRING; } -- cgit v1.2.3