Make the code build with another bunch of warning flags.
--HG-- extra : convert_revision : 1c5b66b58e4c66ff61e9cef2cb3760ac675c1626
This commit is contained in:
6
vars.mk
6
vars.mk
@@ -8,5 +8,7 @@ TOPDIR ?= ..
|
||||
INSTALL_STRIPPED ?= -s
|
||||
|
||||
LDFLAGS += -L$(TOPDIR)/lib -L$(PREFIX)/lib -lxbps
|
||||
CPPFLAGS += -I$(TOPDIR)/include
|
||||
CFLAGS += -O2 -Wall -Wextra -Werror -fPIC -DPIC
|
||||
CPPFLAGS += -I$(TOPDIR)/include -D_XOPEN_SOURCE=600
|
||||
WARNFLAGS ?= -pedantic -std=c99 -Wall -Wextra -Werror -Wshadow -Wformat=2
|
||||
WARNFLAGS += -Wmissing-declarations -Wcomment -Wunused-macros -Wendif-labels
|
||||
CFLAGS += $(WARNFLAGS) -O2 -fPIC -DPIC
|
||||
|
||||
Reference in New Issue
Block a user