diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-07-07 11:13:14 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2018-07-07 11:14:57 -0400 |
commit | e83f4d97504515f8c5f290eeb25eac87cca6892f (patch) | |
tree | c9404d18c14e79097efff464e740d73c9c7dd761 /.gitignore | |
parent | 674e55f7b11e4d3ac6d321cdb0b70c68f24fe564 (diff) | |
download | gdb-e83f4d97504515f8c5f290eeb25eac87cca6892f.zip gdb-e83f4d97504515f8c5f290eeb25eac87cca6892f.tar.gz gdb-e83f4d97504515f8c5f290eeb25eac87cca6892f.tar.bz2 |
ia64-tdep.c: Fix -Wwrite-strings errors
Simply add const where necessary to get rid of errors like:
/home/simark/src/binutils-gdb/gdb/ia64-libunwind-tdep.c:114:1: error: ISO C++ forbids converting a string constant to ‘char*’ [-Werror=write-strings]
static char *get_reg_name = STRINGIFY(UNW_OBJ(get_reg));
^~~~~~~~~~~~~~
/home/simark/src/binutils-gdb/gdb/common/preprocessor.h:28:25: note: in definition of macro ‘STRINGIFY_1’
#define STRINGIFY_1(x) #x
^
/home/simark/src/binutils-gdb/gdb/ia64-libunwind-tdep.c:114:29: note: in expansion of macro ‘STRINGIFY’
static char *get_reg_name = STRINGIFY(UNW_OBJ(get_reg));
^~~~~~~~~
gdb/ChangeLog:
* ia64-tdep.c (get_reg_name, get_fpreg_name, get_saveloc_name,
is_signal_frame_name, step_name, init_remote_name,
create_addr_space_name, destroy_addr_space_name,
search_unwind_table_name, find_dyn_list_name): Constify.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions