Also changed way that warning flags are defined in autoconf files.
AC_TYPE_PID_T
AC_TYPE_SIZE_T
-dnl Basic CFLAGS values
-CFLAGS="${CFLAGS} -Wall"
+dnl Basic warning CFLAGS values
+WARNINGCFLAGS="-Wall -Wextra -Wformat -Wformat-security"
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.26.0])
AC_SUBST(GLIB_CFLAGS)
AM_CONDITIONAL([USE_AS504],[test x"$AS504_CHECK" = x"yes"])
AM_CONDITIONAL([USE_AS51],[test x"$ASEM51_CHECK" = x"yes"])
-AC_SUBST(CFLAGS)
+AC_SUBST(WARNINGCFLAGS)
AC_SUBST(LIBS)
AC_SUBST(ac_aux_dir)
# This file is processed by GNU automake to generate Makefile.in
AM_CPPFLAGS = \
- -Wall \
+ $(WARNINGCFLAGS) \
-I@top_srcdir@ \
-I@top_srcdir@/src/common
# This file is processed by GNU automake to generate Makefile.in
AM_CPPFLAGS = \
- -Wall \
+ $(WARNINGCFLAGS) \
-I$(top_srcdir)
noinst_LIBRARIES = libemu8051.a
# This file is processed by GNU automake to generate Makefile.in
AM_CPPFLAGS = \
- -Wall \
+ $(WARNINGCFLAGS) \
-I@top_srcdir@ \
-I@top_srcdir@/src/common \
-I$(top_srcdir)/pixmaps \