|
|
Comparison between const and non-const pointer:
patch_src_Fl_Terminal.cxx.txt
Although the warning is "correct" (technically) I'm not sure if the patch is really useful or if it is only due to an incorrect implementation of (later?) standards.
IMHO you should be able to compare pointers types Fl_Widget* with Fl_Terminal* because Fl_Terminal is a Fl_Widget.
The remaining question is: why would it need a cast to compare a const pointer to a non-const pointer?
I tend to not apply this specific patch because it adds an ugly cast for no real reason (except this old, no longer supported compiler from the FLTK POV). Michael, comments?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/939/2010073663@github.com>
[ Direct Link to Message ] | |
|
| |