Fixed a few warnings.

This commit is contained in:
LoRd_MuldeR 2020-10-15 22:41:28 +02:00
parent 7f76fb2cbd
commit 701658dd96
Signed by: mulder
GPG Key ID: 2B5913365F57E03F
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;
}