summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2023-04-30 00:43:25 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2023-04-30 00:43:25 +0200
commit2cabcc44858627f0951d9b702baf8120be7c5cf3 (patch)
treedd634dd1813c0b5b40a9aaf2ef420883703d5fc2 /Makefile
parent9f034b4ebfe15844ea610ec2dd2fca1a9f7ce338 (diff)
style: Add -Wmissing-declarations to CC CFLAGS
The refactoring also replace a if statement by switch statement. Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d416dfc..6152ece 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
TARGET := pipac
SRC_DIR := src
BUILD_DIR := build
-CFLAGS := -Werror -Wall -Wextra -pedantic -std=c11 -ggdb
+CFLAGS := -Werror -Wall -Wextra -Wmissing-declarations -pedantic -std=c11 -ggdb
SRCS := $(wildcard $(SRC_DIR)/*.c)
HEADERS := $(wildcard $(SRC_DIR)/*.h)