projects
/
platform
/
upstream
/
flac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compiler warnings from new compiler flags.
[platform/upstream/flac.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
ac35de2
..
b99f402
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-356,6
+356,10
@@
fi
XIPH_GCC_VERSION
XIPH_GCC_VERSION
+XIPH_ADD_CFLAGS([-Wextra])
+XIPH_ADD_CFLAGS([-D_FORTIFY_SOURCE=2])
+XIPH_ADD_CFLAGS([-fstack-protector --param ssp-buffer-size=4])
+
if test x$ac_cv_c_compiler_gnu = xyes ; then
if test x$enable_gcc_werror = "xyes" ; then
CFLAGS="-Wall -Wextra -Werror $CFLAGS"
if test x$ac_cv_c_compiler_gnu = xyes ; then
if test x$enable_gcc_werror = "xyes" ; then
CFLAGS="-Wall -Wextra -Werror $CFLAGS"