libselinux: use -W and -Werror in utils

Add the flags and fix the one build break.

Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
Eric Paris 2011-12-05 13:44:51 -05:00
parent 426d624723
commit 85cfd2fe2e
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ LIBDIR ?= $(PREFIX)/lib
BINDIR ?= $(PREFIX)/sbin
_BINDIR ?= $(DESTDIR)/sbin
CFLAGS ?= -Wall
CFLAGS ?= -Werror -Wall -W
override CFLAGS += -I../include -D_GNU_SOURCE $(EMFLAGS)
LDLIBS += -L../src -lselinux -L$(LIBDIR)

View File

@ -3,7 +3,8 @@
#include <stdlib.h>
#include <selinux/selinux.h>
int main(int argc __attribute__ ((unused)), char **argv)
int main(int argc __attribute__ ((unused)),
char **argv __attribute__ ((unused)))
{
int rc;