projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
025bb21
)
Added -ansi -pedantic with gcc.
author
David Levine
<levinedl@acm.org>
Mon, 7 May 2012 22:25:43 +0000
(17:25 -0500)
committer
David Levine
<levinedl@acm.org>
Mon, 7 May 2012 22:25:43 +0000
(17:25 -0500)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
ece8090
..
ee79a0a
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-208,16
+208,18
@@
dnl also use -Wno-pointer-sign, because gcc 4 now produces a lot of new
dnl warnings which are probably mostly spurious and which in any case we
dnl don't want to deal with now.
if test "$nmh_cv_has_noptrsign" = "yes"; then
dnl warnings which are probably mostly spurious and which in any case we
dnl don't want to deal with now.
if test "$nmh_cv_has_noptrsign" = "yes"; then
+ nmh_gcc_common_flags="-ansi -pedantic -Wall"
if test "$nmh_cv_has_wextra" = "yes"; then
if test "$nmh_cv_has_wextra" = "yes"; then
- nmh_gcc_warnflags="-Wall -Wextra -Wno-clobbered -Wno-pointer-sign"
+ nmh_gcc_warnflags="${nmh_gcc_common_flags} -Wextra -Wno-clobbered "\
+"-Wno-pointer-sign"
else
else
- nmh_gcc_warnflags="-Wall -Wno-pointer-sign"
+ nmh_gcc_warnflags="${nmh_gcc_common_flags} -Wno-pointer-sign"
fi
else
if test "$nmh_cv_has_wextra" = "yes"; then
fi
else
if test "$nmh_cv_has_wextra" = "yes"; then
- nmh_gcc_warnflags="-Wall -Wextra -Wno-clobbered"
+ nmh_gcc_warnflags="${nmh_gcc_common_flags} -Wextra -Wno-clobbered"
else
else
- nmh_gcc_warnflags="-Wall"
+ nmh_gcc_warnflags="${nmh_gcc_common_flags}"
fi
fi
fi
fi