Florian Westphal bc33091478 src: fix fmt string warnings
for some reason several functions had a __gmp_fmtstring annotation,
but that was an empty macro.

After fixing it up, we get several new warnings:

In file included from src/datatype.c:28:
src/datatype.c:174:24: note: in expansion of macro 'error'
  174 |                 return error(&sym->location,
      |                        ^~~~~
src/datatype.c:405:24: note: in expansion of macro 'error'
  405 |                 return error(&sym->location, "Could not parse %s; did you mean `%s'?",
      |                        ^~~~~

Fmt string says '%s', but unqailified void *, add 'const char *' cast,
it is safe in both cases.

In file included from src/evaluate.c:29:
src/evaluate.c: In function 'byteorder_conversion':
src/evaluate.c:232:35: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
  232 |                                   "Byteorder mismatch: %s expected %s, %s got %s",
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Actual bug, fmt string has one '%s' too many, remove it.

All other warnings were due to '%u' instead of '%lu' / '%zu'.

Signed-off-by: Florian Westphal <fw@strlen.de>
2025-10-23 14:53:50 +02:00
..
2025-06-23 18:41:05 +02:00
2025-10-23 14:53:50 +02:00
2025-10-23 14:53:50 +02:00
2021-12-07 12:23:21 +01:00
2018-03-31 20:31:26 +02:00
2019-08-09 13:46:51 +02:00
2025-08-27 23:50:50 +02:00
2021-05-03 00:18:04 +02:00
2025-10-23 14:53:50 +02:00
2018-09-21 12:06:27 +02:00