aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-drm.c
diff options
context:
space:
mode:
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;