From 5f95db72b336d55554bee5f5f7f7fa16095513b0 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Mon, 21 Sep 2020 23:07:25 +0200 Subject: [PATCH] got rid of compilation warnings --- Makefile | 2 +- tools/similarity.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 171ef80f..ae8691d2 100644 --- a/Makefile +++ b/Makefile @@ -212,7 +212,7 @@ $(DIR_ACME) $(SRC_ACME) $(HDR_ACME): $(TOOL_ASSEMBLER): $(DIR_ACME) $(SRC_ACME) $(HDR_ACME) @mkdir -p build/tools echo $(OUT_ACME) - $(CC) -o $(TOOL_ASSEMBLER) $(SRC_ACME) -lm -I./assembler/acme/src + $(CC) -o $(TOOL_ASSEMBLER) $(SRC_ACME) -lm -w -I./assembler/acme/src $(TOOL_PNGPREPARE): tools/pngprepare.c @mkdir -p build/tools diff --git a/tools/similarity.c b/tools/similarity.c index 0a34d5da..235b5ceb 100644 --- a/tools/similarity.c +++ b/tools/similarity.c @@ -245,7 +245,7 @@ int main(int argc,char **argv) if (f) { // Get explanation why this match is irrelevant char line[1024]; line[0]=0; - fgets(line,1024,f); + if (0 == fgets(line,1024,f)) fprintf(stderr,"Warning: null fgets result\n"); while (line[0]&&line[strlen(line)-1]=='\r') line[strlen(line)-1]=0; while (line[0]&&line[strlen(line)-1]=='\n') line[strlen(line)-1]=0; if (verbose)