Fixed a few warnings.
This commit is contained in:
parent
7f76fb2cbd
commit
701658dd96
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ MTUNE ?= native
|
|||||||
# FLags
|
# FLags
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
CFLAGS = -IlibMCrypt/include -march=$(MARCH) -mtune=$(MTUNE)
|
CFLAGS = -IlibMCrypt/include -Wall -Wno-trigraphs -march=$(MARCH) -mtune=$(MTUNE)
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
ifeq ($(DEBUG),1)
|
||||||
CFLAGS += -Og -g
|
CFLAGS += -Og -g
|
||||||
|
@ -368,7 +368,7 @@ static int run_test(const char *const message)
|
|||||||
if (mcrypt_generate_seed(&seed) != 0)
|
if (mcrypt_generate_seed(&seed) != 0)
|
||||||
{
|
{
|
||||||
FPUTS(T("error!\n\nWhoops: Failed to generate seed!\n\n"), stderr);
|
FPUTS(T("error!\n\nWhoops: Failed to generate seed!\n\n"), stderr);
|
||||||
goto clean_up;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* const text_temp = strdup(message);
|
char* const text_temp = strdup(message);
|
||||||
@ -564,4 +564,5 @@ exiting:
|
|||||||
}
|
}
|
||||||
|
|
||||||
mcrypt_bzero((CHR*)passphrase, STRLEN(passphrase) * sizeof(CHR));
|
mcrypt_bzero((CHR*)passphrase, STRLEN(passphrase) * sizeof(CHR));
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user