From 3e3032cfa044268cee76735823755db274025021 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 13 Jun 2023 18:27:10 -0700 Subject: *: smattering of random small fixes to silence -Wall I thought the build was already using -Wall but that seems to not be the case, maybe got lost somewhere along the line or messed up in configure.ac After forcing a build with -Wall -Werror, these showed up. Fixed up in the obvious way, nothing too scary. --- src/drm_fb.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/drm_fb.c') diff --git a/src/drm_fb.c b/src/drm_fb.c index 7c0aadc..de43bd9 100644 --- a/src/drm_fb.c +++ b/src/drm_fb.c @@ -149,7 +149,7 @@ static void free_strv(const char **strv) static int connector_desc_generator(const til_settings_t *settings, til_setup_t *setup_context, const til_setting_desc_t **res_desc) { drm_fb_setup_t *s = (drm_fb_setup_t *)setup_context; - const char **connectors; + const char **connectors = NULL; int r; assert(s); @@ -251,7 +251,7 @@ _out_con: drmModeFreeConnector(con); _out_fd: close(fd); -_out: + return r; } @@ -259,7 +259,7 @@ _out: static int mode_desc_generator(const til_settings_t *settings, til_setup_t *setup_context, const til_setting_desc_t **res_desc) { drm_fb_setup_t *s = (drm_fb_setup_t *)setup_context; - const char **modes; + const char **modes = NULL; int r; assert(s); @@ -357,9 +357,6 @@ static int drm_fb_init(const til_setup_t *setup, void **res_context) { drm_fb_setup_t *s = (drm_fb_setup_t *)setup; drm_fb_t *c; - const char *dev; - const char *connector; - const char *mode; drmModeEncoder *enc; int r; -- cgit v1.2.1