From 701658dd96b71f82d317980097206a78f858d9e5 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Thu, 15 Oct 2020 22:41:28 +0200 Subject: [PATCH] Fixed a few warnings. --- Makefile | 2 +- frontend/src/main.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7d28f90..e6621dc 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ MTUNE ?= native # FLags # --------------------------------------------------------------------------- -CFLAGS = -IlibMCrypt/include -march=$(MARCH) -mtune=$(MTUNE) +CFLAGS = -IlibMCrypt/include -Wall -Wno-trigraphs -march=$(MARCH) -mtune=$(MTUNE) ifeq ($(DEBUG),1) CFLAGS += -Og -g diff --git a/frontend/src/main.c b/frontend/src/main.c index a4ad399..6102489 100644 --- a/frontend/src/main.c +++ b/frontend/src/main.c @@ -368,7 +368,7 @@ static int run_test(const char *const message) if (mcrypt_generate_seed(&seed) != 0) { FPUTS(T("error!\n\nWhoops: Failed to generate seed!\n\n"), stderr); - goto clean_up; + return 1; } char* const text_temp = strdup(message); @@ -564,4 +564,5 @@ exiting: } mcrypt_bzero((CHR*)passphrase, STRLEN(passphrase) * sizeof(CHR)); + return result; }