aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-drm.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-05 20:59:57 +0100
committerMattias Andrée <m@maandree.se>2025-03-05 20:59:57 +0100
commit259604f63dba5f958b879813d1eaed9a59991d1e (patch)
tree15aec3fced6f925fb3dd9d6c5907cf5aaa2a22d0 /src/gamma-drm.c
parentMention after fork that SIGCHLD is ignored (diff)
downloadredshift-ng-259604f63dba5f958b879813d1eaed9a59991d1e.tar.gz
redshift-ng-259604f63dba5f958b879813d1eaed9a59991d1e.tar.bz2
redshift-ng-259604f63dba5f958b879813d1eaed9a59991d1e.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/gamma-drm.c')
-rw-r--r--src/gamma-drm.c4
1 files changed, 4 insertions, 0 deletions
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;