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 *.
This commit is contained in:
parent
e9bb3fbbe8
commit
0a31ccfbd8
|
@ -1,3 +1,7 @@
|
||||||
|
2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
|
* aix-thread.c (pd_status2str): Change return type to const char *.
|
||||||
|
|
||||||
2017-04-12 Pedro Alves <palves@redhat.com>
|
2017-04-12 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
|
* i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
|
||||||
|
|
|
@ -155,7 +155,7 @@ static pthdb_session_t pd_session;
|
||||||
/* Return a printable representation of pthdebug function return
|
/* Return a printable representation of pthdebug function return
|
||||||
STATUS. */
|
STATUS. */
|
||||||
|
|
||||||
static char *
|
static const char *
|
||||||
pd_status2str (int status)
|
pd_status2str (int status)
|
||||||
{
|
{
|
||||||
switch (status)
|
switch (status)
|
||||||
|
|
Loading…
Reference in New Issue