Make the code build with another bunch of warning flags.
--HG-- extra : convert_revision : 1c5b66b58e4c66ff61e9cef2cb3760ac675c1626
This commit is contained in:
parent
16ed8945b7
commit
aee08a7f8f
|
@ -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>
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <ctype.h>
|
||||
#include <xbps_api.h>
|
||||
|
||||
|
|
|
@ -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 **);
|
||||
|
||||
|
|
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
|
||||
|
|
Loading…
Reference in New Issue