diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-01 11:12:56 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-08 11:01:07 +0000 |
commit | b9fe995797542ac6a2bd05c1864eeb53dbfdebf7 (patch) | |
tree | c7557b6bb2ab942a9f1c3b49b06412b8426c37c8 /sim/rx/ChangeLog | |
parent | 4b426396368fd250a502a9c547da7143af4afbe0 (diff) | |
download | binutils-gdb-b9fe995797542ac6a2bd05c1864eeb53dbfdebf7.tar.gz |
sim/rx: provide a format string for printf
Calling printf with the format being a non constant string results in
a GCC warning:
warning: format not a string literal and no format arguments [-Wformat-nonliteral]
Provide a constant format string to printf in the few places this
warning is triggered.
sim/rx/ChangeLog:
* reg.c (fpsw2str): Provide a format string to printf.
(trace_register_changes): Likewise.
Diffstat (limited to 'sim/rx/ChangeLog')
-rw-r--r-- | sim/rx/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index b89926950a8..320d164e9df 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,5 +1,10 @@ 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> + * reg.c (fpsw2str): Provide a format string to printf. + (trace_register_changes): Likewise. + +2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> + * err.c (execution_error_exit_all): Delete. 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |