mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
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:
parent
c0c05aad81
commit
adf3dde510
@ -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:
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user