From 8bfa79289a7895896554349ae4b3a4f3d1380041 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Wed, 4 Dec 2013 18:42:36 +0100 Subject: [PATCH] Add stricter default CFLAGS to Makefile. https://fedorahosted.org/freeipa/ticket/3896 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 0664ddd8e..a7226341e 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,9 @@ endif PYTHON ?= $(shell rpm -E %__python || echo /usr/bin/python) +CFLAGS := -g -O2 -Werror -Wall -Wextra -Wformat-security -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers $(CFLAGS) +export CFLAGS + all: bootstrap-autogen server tests @for subdir in $(SUBDIRS); do \ (cd $$subdir && $(MAKE) $@) || exit 1; \