Make the code build with another bunch of warning flags.

--HG--
extra : convert_revision : 1c5b66b58e4c66ff61e9cef2cb3760ac675c1626
This commit is contained in:
Juan RP
2009-03-13 00:21:55 +01:00
parent 16ed8945b7
commit aee08a7f8f
6 changed files with 10 additions and 2 deletions

View File

@@ -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