aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-05-13 11:10:00 +0300
committerEli Zaretskii <eliz@gnu.org>2017-05-13 11:10:00 +0300
commitadf3dde510088ef8dc46d04df05baf36adb0ed1e (patch)
tree3738a77ab661a4f9ba43bee5f7dfd881e2ea50bf /gdb/tui
parentc0c05aad81ef32899e809570c18932bcfb588009 (diff)
downloadgdb-adf3dde510088ef8dc46d04df05baf36adb0ed1e.zip
gdb-adf3dde510088ef8dc46d04df05baf36adb0ed1e.tar.gz
gdb-adf3dde510088ef8dc46d04df05baf36adb0ed1e.tar.bz2
Avoid compiler warning in MinGW build
gdb: 2017-05-13 Eli Zaretskii <eliz@gnu.org> * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a C++ compiler warning.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index eb489b1..c918f3e 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)
{