From 388c5580cbb032c9e5c3a9b2b578f0e0e27fc97b Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Fri, 25 Dec 2020 01:33:55 -0500 Subject: consolidate some of the ugliness into a separate file Similar to Linux kernel approach, encapsulate some of the uglier conditional compilation into inline functions in header files. The goal is to make dwl.c more attractive to people who embrace the suckless philosophy - simple, short, hackable, and easy to understand. We want dwm users to feel comfortable here, not scare them off. Plus, if we do this right, the main dwl.c code should require only minimal changes once XWayland is no longer a necessary evil. According to `cloc`, this also brings dwl.c down below 2000 lines of non-blank, non-comment code. --- config.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.mk') diff --git a/config.mk b/config.mk index d84f14d..9a886cc 100644 --- a/config.mk +++ b/config.mk @@ -2,7 +2,7 @@ PREFIX = /usr/local # Default compile flags (overridable by environment) -CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-error=unused-function -Wdeclaration-after-statement +CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wdeclaration-after-statement # Uncomment to build XWayland support -#CFLAGS += -DXWAYLAND +CFLAGS += -DXWAYLAND -- cgit v1.2.3