Skip to content

Commit

Permalink
Turns out we still needed that one for shared builds ;).
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed Sep 29, 2024
1 parent 21cce10 commit 32b6baf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ ifeq "$(MOAR_WARNIGS)" "1"
EXTRA_CFLAGS+=-Wformat-truncation=1
EXTRA_CFLAGS+=-Wnull-dereference
EXTRA_CFLAGS+=-Wuninitialized
ifeq (flto,$(findstring flto,$(CFLAGS)))
# NOTE: Inlining put_pixel in fbink_print_ot triggers a few -Wmaybe-uninitialized when we pass grayscale pixels...
# Actually harmless, because they trip in an RGB565 codepath, which we make sure always get fed RGB32.
# Unfortunately, since they're tripped at link-time, I can't pragma'em away :/.
# Doesn't happen on static builds.
EXTRA_CFLAGS+=-Wno-maybe-uninitialized
endif
EXTRA_CFLAGS+=-Wduplicated-branches -Wduplicated-cond
EXTRA_CFLAGS+=-Wundef
EXTRA_CFLAGS+=-Wbad-function-cast
Expand Down

0 comments on commit 32b6baf

Please sign in to comment.