From: <mil...@us...> - 2008-01-08 16:18:25
|
Revision: 2725 http://selinux.svn.sourceforge.net/selinux/?rev=2725&view=rev Author: millertc Date: 2008-01-08 08:18:23 -0800 (Tue, 08 Jan 2008) Log Message: ----------- Subject: Use -Werror Add -Werror to Makefiles that currently lack it. We can't turn on -Werror for libsemanage yet due to warnings from the generated scanner. Signed-off-by: Todd C. Miller <tm...@tr...> Acked-by: Stephen Smalley <sd...@ty...> Modified Paths: -------------- trunk/Makefile trunk/checkpolicy/Makefile trunk/libselinux/src/Makefile trunk/libsemanage/src/Makefile trunk/libsepol/src/Makefile trunk/libsepol/utils/Makefile trunk/policycoreutils/secon/Makefile trunk/policycoreutils/setfiles/Makefile Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2008-01-08 16:16:39 UTC (rev 2724) +++ trunk/Makefile 2008-01-08 16:18:23 UTC (rev 2725) @@ -2,7 +2,7 @@ PYSUBDIRS=libselinux libsemanage ifeq ($(DEBUG),1) - export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow + export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror export LDFLAGS = -g endif Modified: trunk/checkpolicy/Makefile =================================================================== --- trunk/checkpolicy/Makefile 2008-01-08 16:16:39 UTC (rev 2724) +++ trunk/checkpolicy/Makefile 2008-01-08 16:18:23 UTC (rev 2725) @@ -10,7 +10,7 @@ YACC = bison -y -CFLAGS ?= -g -Wall -O2 -pipe -fno-strict-aliasing +CFLAGS ?= -g -Wall -Werror -O2 -pipe -fno-strict-aliasing override CFLAGS += -I. -I${INCLUDEDIR} Modified: trunk/libselinux/src/Makefile =================================================================== --- trunk/libselinux/src/Makefile 2008-01-08 16:16:39 UTC (rev 2724) +++ trunk/libselinux/src/Makefile 2008-01-08 16:18:23 UTC (rev 2725) @@ -32,7 +32,7 @@ OBJS= $(patsubst %.c,%.o,$(SRCS)) LOBJS= $(patsubst %.c,%.lo,$(SRCS)) -CFLAGS ?= -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute +CFLAGS ?= -Werror -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(EMFLAGS) RANLIB=ranlib Modified: trunk/libsemanage/src/Makefile =================================================================== --- trunk/libsemanage/src/Makefile 2008-01-08 16:16:39 UTC (rev 2724) +++ trunk/libsemanage/src/Makefile 2008-01-08 16:18:23 UTC (rev 2725) @@ -10,7 +10,7 @@ DEFAULT_SEMANAGE_CONF_LOCATION=$(DESTDIR)/etc/selinux/semanage.conf ifeq ($(DEBUG),1) - export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow + export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror export LDFLAGS = -g endif Modified: trunk/libsepol/src/Makefile =================================================================== --- trunk/libsepol/src/Makefile 2008-01-08 16:16:39 UTC (rev 2724) +++ trunk/libsepol/src/Makefile 2008-01-08 16:18:23 UTC (rev 2725) @@ -10,7 +10,7 @@ LIBSO=$(TARGET).$(LIBVERSION) OBJS= $(patsubst %.c,%.o,$(wildcard *.c)) LOBJS= $(patsubst %.c,%.lo,$(wildcard *.c)) -CFLAGS ?= -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute +CFLAGS ?= -Werror -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute override CFLAGS += -I. -I../include -D_GNU_SOURCE all: $(LIBA) $(LIBSO) Modified: trunk/libsepol/utils/Makefile =================================================================== --- trunk/libsepol/utils/Makefile 2008-01-08 16:16:39 UTC (rev 2724) +++ trunk/libsepol/utils/Makefile 2008-01-08 16:18:23 UTC (rev 2725) @@ -2,7 +2,7 @@ PREFIX ?= $(DESTDIR)/usr BINDIR ?= $(PREFIX)/bin -CFLAGS ?= -Wall +CFLAGS ?= -Wall -Werror override CFLAGS += -I../include LDLIBS += -L../src -lsepol Modified: trunk/policycoreutils/secon/Makefile =================================================================== --- trunk/policycoreutils/secon/Makefile 2008-01-08 16:16:39 UTC (rev 2724) +++ trunk/policycoreutils/secon/Makefile 2008-01-08 16:18:23 UTC (rev 2725) @@ -5,7 +5,7 @@ MANDIR ?= $(PREFIX)/share/man LIBDIR ?= ${PREFIX}/lib -WARNS=-W -Wall -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-format-zero-length -Wformat-nonliteral -Wformat-security -Wfloat-equal +WARNS=-Werror -W -Wall -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-format-zero-length -Wformat-nonliteral -Wformat-security -Wfloat-equal VERSION = $(shell cat ../VERSION) CFLAGS ?= $(WARNS) -O1 override CFLAGS += -DVERSION=\"$(VERSION)\" -I$(INCLUDEDIR) Modified: trunk/policycoreutils/setfiles/Makefile =================================================================== --- trunk/policycoreutils/setfiles/Makefile 2008-01-08 16:16:39 UTC (rev 2724) +++ trunk/policycoreutils/setfiles/Makefile 2008-01-08 16:18:23 UTC (rev 2725) @@ -6,7 +6,7 @@ AUDITH = $(shell ls /usr/include/libaudit.h 2>/dev/null) -CFLAGS = -Werror -Wall -W +CFLAGS = -Werror -Wall -W override CFLAGS += -D_FILE_OFFSET_BITS=64 -I$(PREFIX)/include LDLIBS = -lselinux -lsepol -L$(LIBDIR) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |