sim: mcore: fix build time warnings
Once we fix a minor const warning we can enable -Werror in here.
This commit is contained in:
parent
a147f3ff8c
commit
91eea12156
4 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
5
sim/mcore/configure
vendored
5
sim/mcore/configure
vendored
|
@ -11943,6 +11943,7 @@ fi
|
|||
fi
|
||||
|
||||
|
||||
|
||||
# Check whether --enable-werror was given.
|
||||
if test "${enable_werror+set}" = set; then :
|
||||
enableval=$enable_werror; case "${enableval}" in
|
||||
|
@ -11959,6 +11960,9 @@ if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
|
|||
fi
|
||||
|
||||
WERROR_CFLAGS=""
|
||||
if test "${ERROR_ON_WARNING}" = yes ; then
|
||||
WERROR_CFLAGS="-Werror"
|
||||
fi
|
||||
|
||||
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
|
||||
-Wpointer-sign \
|
||||
|
@ -12040,7 +12044,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
|
|||
fi
|
||||
|
||||
|
||||
|
||||
hardware="cfi core pal glue "
|
||||
sim_hw_cflags="-DWITH_HW=1"
|
||||
sim_hw="$hardware"
|
||||
|
|
|
@ -6,6 +6,5 @@ SIM_AC_COMMON
|
|||
|
||||
SIM_AC_OPTION_ENDIAN
|
||||
SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT,STRICT_ALIGNMENT)
|
||||
SIM_AC_OPTION_WARNINGS(no)
|
||||
|
||||
SIM_AC_OUTPUT
|
||||
|
|
|
@ -1417,7 +1417,7 @@ sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue