Skip to content
Snippets Groups Projects
Commit b36afc39 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

make: Clean up WERROR handling

parent 68dc5b0d
No related branches found
No related tags found
No related merge requests found
...@@ -129,13 +129,13 @@ endif ...@@ -129,13 +129,13 @@ endif
WERROR ?= 1 WERROR ?= 1
export WERROR export WERROR
ifeq ($(WERROR),1) ifeq ($(WERROR),1)
CFLAGS += -Wall -Werror -Wextra CFLAGS += -Werror
endif endif
WPEDANTIC ?= 0 WPEDANTIC ?= 0
export WPEDANTIC export WPEDANTIC
ifeq ($(WPEDANTIC),1) ifeq ($(WPEDANTIC),1)
CFLAGS += -Wpedantic -pedantic-errors CFLAGS += -Wpedantic
endif endif
# remove this once codebase is adapted # remove this once codebase is adapted
......
...@@ -57,8 +57,8 @@ endif ...@@ -57,8 +57,8 @@ endif
# Forbid common symbols to prevent accidental aliasing. # Forbid common symbols to prevent accidental aliasing.
CFLAGS += -fno-common CFLAGS += -fno-common
# Enable all default warnings # Enable all default warnings and all extra warnings
CFLAGS += -Wall CFLAGS += -Wall -Wextra
# Warn if a user-supplied include directory does not exist. # Warn if a user-supplied include directory does not exist.
CFLAGS += -Wmissing-include-dirs CFLAGS += -Wmissing-include-dirs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment