From: Simon Marchi Date: Wed, 12 Apr 2017 14:46:13 +0000 (-0400) Subject: Fix build error in aix-thread.c X-Git-Tag: gdb-8.0-branchpoint~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a31ccfbd84660a91b133a9915e6f63c30033189;p=thirdparty%2Fbinutils-gdb.git Fix build error in aix-thread.c Obvious fix for: aix-thread.c: In function 'char* pd_status2str(int)': aix-thread.c:163:33: error: deprecated conversion from string constant to 'char*' [-Werror=write-strings] case PTHDB_SUCCESS: return "SUCCESS"; ^ gdb/ChangeLog: * aix-thread.c (pd_status2str): Change return type to const char *. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa210bb0db5..41ed80b3a04 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-04-12 Simon Marchi + + * aix-thread.c (pd_status2str): Change return type to const char *. + 2017-04-12 Pedro Alves * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 05024dfcc7e..ced62035936 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -155,7 +155,7 @@ static pthdb_session_t pd_session; /* Return a printable representation of pthdebug function return STATUS. */ -static char * +static const char * pd_status2str (int status) { switch (status)