Add more warning CFLAGS
This commit is contained in:
parent
efae5a79cd
commit
6d0a225420
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.65 2012/05/01 20:11:40 nanard Exp $
|
||||
# $Id: Makefile,v 1.68 2012/05/23 08:46:14 nanard Exp $
|
||||
# MiniUPnP project
|
||||
# http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||
# Author: Thomas Bernard
|
||||
|
@ -20,6 +20,10 @@ CFLAGS ?= -pipe -Os
|
|||
CFLAGS += -ansi
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -W
|
||||
CFLAGS += -Wstrict-prototypes
|
||||
#CFLAGS += -Wdeclaration-after-statement
|
||||
#CFLAGS += -Wno-missing-field-initializers
|
||||
CFLAGS += -fno-common
|
||||
CC ?= gcc
|
||||
RM = rm -f
|
||||
MV = mv
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile.linux,v 1.69 2012/05/01 20:13:34 nanard Exp $
|
||||
# $Id: Makefile.linux,v 1.71 2012/05/23 08:46:14 nanard Exp $
|
||||
# MiniUPnP project
|
||||
# (c) 2006-2012 Thomas Bernard
|
||||
# http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||
|
@ -27,6 +27,7 @@ CFLAGS += -fno-common
|
|||
CFLAGS += -D_GNU_SOURCE
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -Wextra -Wstrict-prototypes -Wdeclaration-after-statement
|
||||
#CFLAGS += -Wno-missing-field-initializers
|
||||
CFLAGS += -ansi
|
||||
CC ?= gcc
|
||||
RM = rm -f
|
||||
|
|
Loading…
Reference in New Issue