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

@ -27,6 +27,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <limits.h>
#include <libgen.h>

View File

@ -27,6 +27,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <limits.h>

View File

@ -27,6 +27,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <limits.h>
#include <libgen.h>

View File

@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include <xbps_api.h>

View File

@ -35,6 +35,8 @@
#include <unistd.h>
#include <string.h>
#include <xbps_api.h>
static int vfcexec(const char *, int, const char *, va_list);
static int pfcexec(const char *, const char *, const char **);

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