diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-20 11:15:16 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-20 11:15:16 +0300 |
commit | 7d9e25efd6a6bd95e503adbc3b4e66788ccdebd0 (patch) | |
tree | 3489e109e8a630dc639a1854330a693236910665 | |
parent | 8a98b46ef2b5673fcdf0a9a466857a5de044dfc5 (diff) | |
download | posthaste-7d9e25efd6a6bd95e503adbc3b4e66788ccdebd0.tar.gz posthaste-7d9e25efd6a6bd95e503adbc3b4e66788ccdebd0.zip |
silence some warnings
-rw-r--r-- | deps/lightening/lightening/lightening.c | 1 | ||||
-rw-r--r-- | scripts/makefile | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/deps/lightening/lightening/lightening.c b/deps/lightening/lightening/lightening.c index 937fd14..6dfdfe3 100644 --- a/deps/lightening/lightening/lightening.c +++ b/deps/lightening/lightening/lightening.c @@ -28,6 +28,7 @@ #include "../lightening.h" +#undef ASSERT #define ASSERT(x) do { if (!(x)) abort(); } while (0) #if defined(__GNUC__) diff --git a/scripts/makefile b/scripts/makefile index 2f2d8d9..9d79525 100644 --- a/scripts/makefile +++ b/scripts/makefile @@ -1,7 +1,7 @@ # this could be done better RELEASE ?= 0 OPTFLAGS != [ "$(RELEASE)" != "0" ] \ - && echo "-O2 -flto" \ + && echo "-O2 -flto=auto" \ || echo "-O0" DEBUG ?= 1 @@ -29,7 +29,7 @@ all: posthaste OBFLAGS = -g -WARNFLAGS = -Wall -Wextra -Wvla +WARNFLAGS = -Wall COMPILE_FLAGS = $(CFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(OBFLAGS) $(ASSERTFLAGS) \ $(DEBUGFLAGS) $(JITFLAGS) |