diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-04-12 10:46:13 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-04-12 10:46:48 -0400 |
commit | 0a31ccfbd84660a91b133a9915e6f63c30033189 (patch) | |
tree | 0cc604f0b6ece9324208eb965996f999756dbb61 /gdb/aix-thread.c | |
parent | e9bb3fbbe81115b196b436cf513f0fd7b41d6a4a (diff) | |
download | gdb-0a31ccfbd84660a91b133a9915e6f63c30033189.zip gdb-0a31ccfbd84660a91b133a9915e6f63c30033189.tar.gz gdb-0a31ccfbd84660a91b133a9915e6f63c30033189.tar.bz2 |
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 *.
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r-- | gdb/aix-thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 05024df..ced6203 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) |