vnc/vnc.c: fixed -Wmaybe-uninitialized
warnings
vnc.c: In function ‘lib_framebuffer_update’: vnc.c:816:37: error: ‘b’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 816 | return (r << 16) | (g << 8) | b; | ~~~~~~~~~~~~~~~~~~~~~^~~ vnc.c:1301:9: note: ‘b’ was declared here 1301 | int b; | ^ vnc.c:816:31: error: ‘g’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 816 | return (r << 16) | (g << 8) | b; | ~~~^~~~~ vnc.c:1300:9: note: ‘g’ was declared here 1300 | int g; | ^ vnc.c:816:19: error: ‘r’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 816 | return (r << 16) | (g << 8) | b; | ~~~^~~~~~ vnc.c:1299:9: note: ‘r’ was declared here 1299 | int r; | ^
This commit is contained in:
parent
fb9c175b11
commit
5db94568ec
Loading…
Reference in New Issue
Block a user