From 259604f63dba5f958b879813d1eaed9a59991d1e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Mar 2025 20:59:57 +0100 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gamma-drm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gamma-drm.c') diff --git a/src/gamma-drm.c b/src/gamma-drm.c index e912f85..8c7bcec 100644 --- a/src/gamma-drm.c +++ b/src/gamma-drm.c @@ -73,6 +73,8 @@ drm_start(struct gamma_state *state, enum program_mode mode) int crtc_count; struct drm_crtc_state *crtcs; + (void) mode; + sprintf(pathname, DRM_DEV_NAME, DRM_DIR_NAME, state->card_num); state->fd = open(pathname, O_RDWR | O_CLOEXEC); @@ -267,6 +269,8 @@ drm_set_temperature( uint16_t value; uint32_t i, ramp_size; + (void) preserve; /* TODO */ + for (; crtcs->crtc_num >= 0; crtcs++) { if (crtcs->gamma_size <= 1) continue; -- cgit v1.2.3-70-g09d2