|
Description
Full Compilation warnings when building fluid:
Compiling widget_panel.cxx...
widget_panel.cxx:541:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
{"GRID_LEFT", 0, 0, (void*)(FL_GRID_LEFT), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
^
widget_panel.cxx:542:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
{"GRID_CENTER", 0, 0, (void*)(FL_GRID_CENTER), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
^
widget_panel.cxx:543:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
{"GRID_RIGHT", 0, 0, (void*)(FL_GRID_RIGHT), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
^
widget_panel.cxx:544:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
{"GRID_FILL", 0, 0, (void*)(FL_GRID_HORIZONTAL), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
^
widget_panel.cxx:549:41: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
{"GRID_TOP", 0, 0, (void*)(FL_GRID_TOP), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
^
widget_panel.cxx:550:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
{"GRID_CENTER", 0, 0, (void*)(FL_GRID_CENTER), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
^
widget_panel.cxx:551:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
{"GRID_BOTTOM", 0, 0, (void*)(FL_GRID_BOTTOM), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
^
widget_panel.cxx:552:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
{"GRID_FILL", 0, 0, (void*)(FL_GRID_VERTICAL), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
^
Linking fluid...
To Reproduce
Default build (./configure + make ) on my Raspi (based on an old Debian Buster) issued these warnings.
FLTK Version
FLTK Configure / Build Options
- make distclean
- autoconf
- ./configure
- make [-jN]
Operating System / Platform:
- Raspberry Pi
- Raspbian GNU/Linux 10 (based on Debian 10/Buster)
- g++ (Raspbian 8.3.0-6+rpi1) 8.3.0
Linux/Unix Runtime, if applicable:
Additional context
We may want to add another cast, e.g. (void*)(fl_intptr_t)(FL_GRID_TOP) , or we may use fl_voidptr(FL_GRID_TOP) (see FL/fl_casts.H ).
The code in question is generated by fluid from fluid/widget_panel.fl .
I noticed these warnings on my old RPi3 (see above) but can't see them on my current Debian 12 (Bookworm) with gcc 12.2.0 .
— 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/956@github.com>
[ Direct Link to Message ] | |