summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2022-01-18 14:29:11 +0100
committerbakkeby <[email protected]>2022-01-18 14:29:11 +0100
commit2c5f877bd20497b188b5859b2cd88ab11068b554 (patch)
tree8e791f366010264cf94dbcb25e5dc1294dc61996
parente6dc6a30167818f6254e98a6d7a8f9762c0c9d59 (diff)
downloaddwm-flexipatch-2c5f877bd20497b188b5859b2cd88ab11068b554.tar.gz
dwm-flexipatch-2c5f877bd20497b188b5859b2cd88ab11068b554.zip
Ignoring unused functions warnings.
This is achieved by adding the -Wno-unused-function flag to the compiler. The warnings are suppressed to avoid confusion for users new to dwm. Removing the static declaration from the header files works too, but adds unnecessary data into the compiled object.
-rw-r--r--config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index fb2310c..6829536 100644
--- a/config.mk
+++ b/config.mk
@@ -58,7 +58,7 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} ${XRENDER} ${MPDCLIENT
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wall -Wno-unused-function -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
# Solaris