Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed -Wmissing-prototypes (and subsequent) compiler warnings #2829

Merged
merged 4 commits into from
Apr 24, 2024

Commits on Apr 23, 2024

  1. enabled and fixed -Wmissing-prototypes compiler warnings

    Co-authored-by: matt335672 <[email protected]>
    firewave and matt335672 committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    fb9c175 View commit details
    Browse the repository at this point in the history
  2. 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;
          |         ^
    firewave committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    5db9456 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5eed76f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c7070b9 View commit details
    Browse the repository at this point in the history