From 0a31ccfbd84660a91b133a9915e6f63c30033189 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 12 Apr 2017 10:46:13 -0400 Subject: 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 *. --- gdb/aix-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/aix-thread.c') 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) -- cgit v1.1