mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +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:
@ -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>
|
2017-05-12 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
PR rust/21483:
|
PR rust/21483:
|
||||||
|
@ -427,7 +427,7 @@ tui_enable (void)
|
|||||||
/* The MinGW port of ncurses requires $TERM to be unset in order
|
/* The MinGW port of ncurses requires $TERM to be unset in order
|
||||||
to activate the Windows console driver. */
|
to activate the Windows console driver. */
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
s = newterm ("unknown", stdout, stdin);
|
s = newterm ((char *) "unknown", stdout, stdin);
|
||||||
#endif
|
#endif
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user