In function ‘void innards(...)’:
src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx:132:23:
dereferencing type-punned pointer will break strict-aliasing rules
BITMAPINFO &bmi = *((BITMAPINFO*)bmibuffer);
~^~~~~~~~~~~~~~~~~~~~~~~
Found with gcc 12 (MinGW cross compiler)
Also: use correct sizes (sizeof) rather than hardcoded values.
|
||
|---|---|---|
| .. | ||
| Fl_Font.H | ||
| Fl_GDI_Copy_Surface_Driver.cxx | ||
| Fl_GDI_Copy_Surface_Driver.H | ||
| Fl_GDI_Graphics_Driver_arci.cxx | ||
| Fl_GDI_Graphics_Driver_color.cxx | ||
| Fl_GDI_Graphics_Driver_font.cxx | ||
| Fl_GDI_Graphics_Driver_image.cxx | ||
| Fl_GDI_Graphics_Driver_line_style.cxx | ||
| Fl_GDI_Graphics_Driver_rect.cxx | ||
| Fl_GDI_Graphics_Driver_vertex.cxx | ||
| Fl_GDI_Graphics_Driver.cxx | ||
| Fl_GDI_Graphics_Driver.H | ||
| Fl_GDI_Image_Surface_Driver.cxx | ||
| Fl_GDI_Image_Surface_Driver.H | ||