Once we fix a minor const warning we can enable -Werror in here.
+2021-05-04 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Delete SIM_AC_OPTION_WARNINGS call.
+ * interp.c (sim_create_inferior): Add const to avp.
+ * configure: Regenerate.
+
2021-05-04 Mike Frysinger <vapier@gentoo.org>
* interp.c: Delete sys/times.h include.
fi
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror; case "${enableval}" in
fi
WERROR_CFLAGS=""
+ if test "${ERROR_ON_WARNING}" = yes ; then
+ WERROR_CFLAGS="-Werror"
+ fi
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
-Wpointer-sign \
fi
-
hardware="cfi core pal glue "
sim_hw_cflags="-DWITH_HW=1"
sim_hw="$hardware"
SIM_AC_OPTION_ENDIAN
SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT,STRICT_ALIGNMENT)
-SIM_AC_OPTION_WARNINGS(no)
SIM_AC_OUTPUT
char * const *argv, char * const *env)
{
SIM_CPU *cpu = STATE_CPU (sd, 0);
- char ** avp;
+ char * const *avp;
int nargs = 0;
int nenv = 0;
int s_length;