This is the mail archive of the gdb-prs@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]

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


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.

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