public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH obv] Fix build error in aix-thread.c
@ 2017-04-12 14:47 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2017-04-12 14:47 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

FYI, I pushed this as obvious.

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/ChangeLog    | 4 ++++
 gdb/aix-thread.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index aa210bb0db..41ed80b3a0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
 
 	* 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 05024dfcc7..ced6203593 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)
-- 
2.11.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-12 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-12 14:47 [PATCH obv] Fix build error in aix-thread.c Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).