mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-28 16:22:45 +00:00
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:
parent
426d624723
commit
85cfd2fe2e
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user