summaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-10-27 02:16:05 +0600
committerdrkhsh <me@drkhsh.at>2022-10-26 23:32:43 +0200
commit0c2b3e5b5c499b1de566fd4bef49c5e6b5254d1a (patch)
tree770d6bf46d2e1e9821ec528e1826b9753b2dee86 /config.mk
parent28ef0b242c32e8ae8b4df2b4b380e30bf581130f (diff)
do not rely on obsolete feature
function prototype with unspecified argument is obsolete since c99. additionally some of these function which don't take any argument were being called with a `const char *` arg, which is UB. fix both these issues by declararing ALL the components to accept a `const char *`, and name the arg "unused" if it's meant to be ignored.
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 6cce683..ead1859 100644
--- a/config.mk
+++ b/config.mk
@@ -12,7 +12,7 @@ X11LIB = /usr/X11R6/lib
# flags
CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE
-CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
+CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Os
LDFLAGS = -L$(X11LIB) -s
# OpenBSD: add -lsndio
# FreeBSD: add -lkvm -lsndio