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:
parent
c0f0d8128a
commit
7506f86012
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue