forked from Juniper/yangc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
warnings.mk
44 lines (37 loc) · 840 Bytes
/
warnings.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# $Id$
#
# Commonly used sets of warnings
#
MIN_WARNINGS?= -W -Wall
LOW_WARNINGS?= ${MIN_WARNINGS} \
-Wstrict-prototypes \
-Wmissing-prototypes \
-Wpointer-arith
MEDIUM_WARNINGS?= ${LOW_WARNINGS} -Werror
HIGH_WARNINGS?= ${MEDIUM_WARNINGS} \
-Waggregate-return \
-Wcast-align \
-Wcast-qual \
-Wchar-subscripts \
-Wcomment \
-Wformat \
-Wimplicit \
-Wmissing-declarations \
-Wnested-externs \
-Wparentheses \
-Wreturn-type \
-Wshadow \
-Wswitch \
-Wtrigraphs \
-Wuninitialized \
-Wunused \
-Wwrite-strings
HIGHER_WARNINGS?= ${HIGH_WARNINGS} \
-Winline \
-Wbad-function-cast \
-Wpacked \
-Wpadded \
-Wstrict-aliasing
WARNINGS += $(if ${YANGC_WARNINGS}, ${HIGH_WARNINGS}, ${LOW_WARNINGS})
WARNINGS += -fno-inline-functions-called-once