From 6cba71ede1a5696d464723f6973983b9d37445f8 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 17 Aug 2024 08:00:00 +0800 Subject: Respect CFLAGS, move static to front --- Makefile | 2 +- sha256.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0f7cb9b..1264020 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: all .PHONY: clean -CFLAGS = -Ofast -Wall -Wextra -std=c++23 +CFLAGS += -Ofast -Wall -Wextra -std=c++23 all: mtafk diff --git a/sha256.c b/sha256.c index 492335f..8f730b1 100644 --- a/sha256.c +++ b/sha256.c @@ -15,7 +15,7 @@ const char SHA256_version[] = "SHA-256" OPENSSL_VERSION_PTEXT; /* mem_clr.c */ -unsigned static char cleanse_ctr = 0; +static unsigned char cleanse_ctr = 0; static void OPENSSL_cleanse(void *ptr, size_t len) { unsigned char *p = (unsigned char *)ptr; -- cgit v1.2.3