summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-31 18:38:50 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-31 18:38:55 +0100
commit34f465add2c95aaba012d0f6444ad7478c420327 (patch)
treee31a4c40a17e1ce2e7f511c5af74825817615051 /src/drivers/WinAPI
parentbdb5972504cf99ddf04a675a1d04d773b1b7c578 (diff)
Windows: fix compiler warning [-Wstrict-aliasing]
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.
Diffstat (limited to 'src/drivers/WinAPI')
0 files changed, 0 insertions, 0 deletions