summaryrefslogtreecommitdiff
path: root/config/bootstrap-time.mk
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-04-05 19:21:33 +0100
committerPedro Alves <palves@redhat.com>2017-04-05 19:21:33 +0100
commitb38ef47f47bda5509babd768092ceb09ab98828d (patch)
tree942e46dacce698570ced2f31c67bafae911810e8 /config/bootstrap-time.mk
parentf995bbe8e62fdb5607acb1ee127240cfe50d2b8f (diff)
downloadbinutils-gdb-b38ef47f47bda5509babd768092ceb09ab98828d.tar.gz
-Wwrite-strings: Constify macroexp.c:init_shared_buffer
There's one call in the file that passes a string literal, like: init_shared_buffer (&va_arg_name, "__VA_ARGS__", strlen ("__VA_ARGS__")); Instead of adding a cast here, make init_shared_buffer take a 'const char *', and remove the several casts in the file that are made obsolete. gdb/ChangeLog: 2017-04-05 Pedro Alves <palves@redhat.com> * macroexp.c (macro_buffer::shared): Now a bool. (init_buffer): Update. (init_shared_buffer): Constify 'addr' parameter. (substitute_args, expand, macro_expand, macro_expand_next): Remove casts.
Diffstat (limited to 'config/bootstrap-time.mk')
0 files changed, 0 insertions, 0 deletions