4 # Copyright 2011, Juniper Networks, Inc.
6 # This SOFTWARE is licensed under the LICENSE provided in the
7 # ../Copyright file. By downloading, installing, copying, or otherwise
8 # using the SOFTWARE, you agree to be bound by the terms of that
11 # Commonly used sets of warnings
14 MIN_WARNINGS?= -W -Wall
16 LOW_WARNINGS?= ${MIN_WARNINGS} \
18 -Wmissing-prototypes \
21 MEDIUM_WARNINGS?= ${LOW_WARNINGS} -Werror
23 HIGH_WARNINGS?= ${MEDIUM_WARNINGS} \
31 -Wmissing-declarations \
42 HIGHER_WARNINGS?= ${HIGH_WARNINGS} \
49 ifeq "${LIBXO_WARNINGS}" "HIGH"
50 WARNINGS += ${HIGH_WARNINGS}
52 WARNINGS += ${LOW_WARNINGS}
55 ifeq "${GCC_WARNINGS}" "yes"
56 WARNINGS += -fno-inline-functions-called-once