Makefile: add "-O3" to WARN_UNUSED options.

This finds more errors

Also remove some trailing spaces.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2013-06-19 10:02:17 +10:00
parent c0f0d8128a
commit 7506f86012
1 changed files with 6 additions and 5 deletions

View File

@ -2,6 +2,7 @@
# mdadm - manage Linux "md" devices aka RAID arrays.
#
# Copyright (C) 2001-2002 Neil Brown <neilb@cse.unsw.edu.au>
# Copyright (C) 2013 Neil Brown <neilb@suse.de>
#
#
# This program is free software; you can redistribute it and/or modify
@ -44,7 +45,7 @@ CC = $(CROSS_COMPILE)gcc
CXFLAGS = -ggdb
CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
ifdef WARN_UNUSED
CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O
CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3
endif
ifdef DEBIAN