binutils-gdb/sim
Andrew Burgess 36a4bbcec4 sim: make local variable 'const'
This build error was reported to me off list:

  common/callback.c:993:13: error: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
    993 |       char *q = strchr (m, ',');
        |             ^   ~~~~~~~~~~~~~~~

This is because with C23, strchr returns 'const char *' if a 'const
char *' is passed as an argument.

In this case M is 'const char *', so Q should also be 'const char *'.
And indeed, we don't write via Q at any time, so lets make it 'const'.

There should be no user visible changes after this commit.
2025-12-05 14:23:30 +00:00
..
aarch64 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
avr Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
bfin Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
bpf Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
common sim: make local variable 'const' 2025-12-05 14:23:30 +00:00
cr16 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
cris Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
d10v Fix d10v sim build with GCC 15 2025-04-25 14:38:11 -06:00
erc32 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
example-synacor Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
frv Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
ft32 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
h8300 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
igen Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
iq2000 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
lm32 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m4 sim: configury: fix obsolete macros 2025-07-04 21:13:13 -04:00
m32c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m32r Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m68hc11 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
mcore Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
microblaze Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
mips Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
mn10300 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
moxie Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
msp430 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
or1k or1k: Add support for numcores and coreid sprs 2025-06-14 06:10:57 +01:00
ppc sim: ppc: use correct macros 2025-07-04 21:44:21 -04:00
pru Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
riscv sim: riscv: Fix build issue due to INSN_CLASS_C was changed to INSN_CLASS_ZCA 2025-07-10 21:50:19 +08:00
rl78 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
rx Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
sh Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
testsuite sim: testsuite: Fix build with host GCC15 2025-05-19 21:12:51 +03:00
v850 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
.gitignore sim: drop unused gentmap & nltvals.def logic 2021-11-28 13:24:00 -05:00
aclocal.m4 GDB: Regenerate configure for libtool.m4 change 2025-09-25 12:30:13 +08:00
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
config.h.in sim: configury: fix obsolete macros 2025-07-04 21:13:13 -04:00
configure tidy m4 plugin config support 2025-11-03 10:59:50 +10:30
configure.ac Delete the ARM sub-directory of the SIM directory. 2025-03-25 13:30:32 +00:00
COPYING sim: clarify license text via COPYING file 2021-11-06 01:44:06 -04:00
gdbinit.in sim: gdbinit: hoist setup to common code 2022-02-21 13:57:33 -05:00
MAINTAINERS sim: Update mailing list address 2022-09-01 10:15:09 -04:00
Makefile.am Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
Makefile.in GDB: Regenerate configure for libtool.m4 change 2025-09-25 12:30:13 +08:00
README-HACKING sim: build: delete Make-common.in logic 2023-01-13 17:34:53 -05:00