4 dnl Copyright (C) 2012 Intel Corporation. All rights reserved.
6 dnl This program is free software; you can redistribute it and/or modify it
7 dnl under the terms and conditions of the GNU Lesser General Public License,
8 dnl version 2.1, as published by the Free Software Foundation.
10 dnl This program is distributed in the hope it will be useful, but WITHOUT
11 dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15 dnl You should have received a copy of the GNU Lesser General Public License
16 dnl along with this program; if not, write to the Free Software Foundation, Inc.,
17 dnl 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
19 dnl Ludovic Ferrandis <ludovic.ferrandis@intel.com>
22 AC_DEFUN_ONCE([MSU_COMPILER_FLAGS], [
23 if (test x"${CFLAGS}" = x""); then
26 CFLAGS+=" -D_FORTIFY_SOURCE=2"
29 if (test x"$USE_MAINTAINER_MODE" = x"yes"); then
31 CFLAGS+=" -Wno-unused-parameter"
32 CFLAGS+=" -Wno-missing-field-initializers"
33 CFLAGS+=" -Wdeclaration-after-statement"
34 CFLAGS+=" -Wmissing-declarations"
35 CFLAGS+=" -Wredundant-decls"
36 CFLAGS+=" -Wcast-align"
38 CFLAGS+=" -Wstrict-prototypes"
39 CFLAGS+=" -Wmissing-prototypes"
40 CFLAGS+=" -Wnested-externs"
43 CFLAGS+=" -Winit-self"
47 CFLAGS+=" -Wno-overlength-strings"
49 CFLAGS+=" -DG_DISABLE_DEPRECATED"
50 CFLAGS+=" -DGLIB_DISABLE_DEPRECATION_WARNINGS"
53 CFLAGS+=" -Wno-format-extra-args"