This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB 7.99.91 MinGW compilation warning in tui.c


On Mon, May 8, 2017 at 4:01 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>        tui/tui.c: In function 'void tui_enable()':
>        tui/tui.c:430:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>          s = newterm ("unknown", stdout, stdin);
>                                               ^
> I fixed this by explicitly casting "unknown" to 'char *' -- is that
> the right fix?  Is it OK to push that fix?
>

Yes, I think so, we've done this before
https://sourceware.org/ml/gdb-patches/2017-04/msg00032.html

-- 
Yao (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]