Skip to content

Commit

Permalink
Makefile: Fix build with Clang
Browse files Browse the repository at this point in the history
It doesn't know -Wdiscarded-qualifiers. Reported by @pjonsson on #247.

I really need to switch to CMake - #242

Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
  • Loading branch information
thiagomacieira committed Nov 27, 2023
1 parent fd2f6cf commit 0d55382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ cflags += -std=gnu99 $(CFLAGS)

ifneq ($(DISABLE_WERROR),1)
cflags += \
-Werror=discarded-qualifiers \
$(shell $(CC) -S -Werror -Wdiscarded-qualifiers -o - -xc /dev/null >/dev/null 2>&1 && echo -Werror=discarded-qualifiers) \
-Werror=incompatible-pointer-types \
-Werror=implicit-function-declaration \
-Werror=int-conversion
Expand Down

0 comments on commit 0d55382

Please sign in to comment.