Files
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
..
2025-12-05 14:23:30 +00:00
2025-04-25 14:38:11 -06:00
2025-07-04 21:13:13 -04:00
2025-07-04 21:44:21 -04:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-11-03 10:59:50 +10:30
2022-09-01 10:15:09 -04:00