[Bug tui/21482] gdb 8.0 tui doesn't build with native curses on Solaris

ro at CeBiTec dot Uni-Bielefeld.DE sourceware-bugzilla@sourceware.org
Wed May 17 08:39:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21482

--- Comment #3 from Rainer Orth <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #2 from Rainer Orth <ro at CeBiTec dot Uni-Bielefeld.DE> ---
[...]
> However (as I wasn't aware initially), you can simply cast the constness
> away in all calls to mvwaddstr.  I'll give that a whirl.

The attached patch worked for me, allowing a sparc-sun-solaris2.10
compilation to succeed on the 8.0 branch.  Comparing gdb/tui on the
branch and mainline, I noticed that the only difference between the two
is this fix:

2017-05-13  Eli Zaretskii  <eliz@gnu.org>

        * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
        C++ compiler warning.

for exactly the same problem (well, same problem, different function).

        Rainer

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list