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.
This commit is contained in:
Eli Zaretskii 2017-05-13 11:10:00 +03:00
parent c0c05aad81
commit adf3dde510
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-05-13 Eli Zaretskii <eliz@gnu.org>
* tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
C++ compiler warning.
2017-05-12 Tom Tromey <tom@tromey.com>
PR rust/21483:

View File

@ -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)
{