From adf3dde510088ef8dc46d04df05baf36adb0ed1e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 13 May 2017 11:10:00 +0300 Subject: [PATCH] Avoid compiler warning in MinGW build gdb: 2017-05-13 Eli Zaretskii * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a C++ compiler warning. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 71aea523fe5..8c07086ac24 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-05-13 Eli Zaretskii + + * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a + C++ compiler warning. + 2017-05-12 Tom Tromey PR rust/21483: diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index eb489b15332..c918f3e2364 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -427,7 +427,7 @@ tui_enable (void) /* The MinGW port of ncurses requires $TERM to be unset in order to activate the Windows console driver. */ if (s == NULL) - s = newterm ("unknown", stdout, stdin); + s = newterm ((char *) "unknown", stdout, stdin); #endif if (s == NULL) { -- 2.30.2