NiLuJe / FBInk

FrameBuffer eInker, a small tool & library to print text & images to an eInk Linux framebuffer
https://www.mobileread.com/forums/showthread.php?t=299110
GNU General Public License v3.0
332 stars 23 forks source link

Getting a few warnings when building with Clang #73

Closed baskerville closed 1 year ago

baskerville commented 1 year ago
In file included from fbink.c:39:
./fbink_internal.h:478:26: warning: missing field 'enable' initializer [-Wmissing-field-initializers]
        .layer        = { { 0 } },
                                ^
fbink.c:4338:64: warning: implicit conversion changes signedness: 'uint64_t' (aka 'unsigned long') to 'long long' [-Wsign-conversion]
                sunxiCtx.layer.info.fb.crop.width    = (uint64_t) vInfo.xres << 32U;
                                                     ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
fbink.c:4339:64: warning: implicit conversion changes signedness: 'uint64_t' (aka 'unsigned long') to 'long long' [-Wsign-conversion]
                sunxiCtx.layer.info.fb.crop.height   = (uint64_t) vInfo.yres << 32U;
                                                     ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
3 warnings generated.
NiLuJe commented 1 year ago

It had been a while since I'd done a Clang build, thanks ;).

(There was another trivial one re: syntax to zero-init a nested struct w/ Clang 15.0.6 over here).