3cc644eb52
gcc-7 needs an additional cf_assert to inform it that e.idx is constrained. Without this, it assumes e.idx could have any positive value, then issues a fatal warning when INT_MAX does not fit in the provided buffer. common/arch/sdl/joy.cpp: In function 'void dcx::joy_init()': common/arch/sdl/joy.cpp:281:6: error: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size between 0 and 4 [-Werror=format-truncation=] common/arch/sdl/joy.cpp:281:6: note: directive argument in the range [1, 2147483647] common/arch/sdl/joy.cpp:333:13: note: 'snprintf' output between 6 and 24 bytes into a destination of size 8 |
||
---|---|---|
.. | ||
carbon | ||
cocoa | ||
ogl | ||
sdl | ||
win32 |