From c72a8b8cc998b1b86a945c4a9ea4926fc073ff7c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 5 Feb 2012 22:41:37 +1100 Subject: [PATCH] Silence ADL warnings. --- adl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adl.c b/adl.c index 048b1776..d1cd50e5 100644 --- a/adl.c +++ b/adl.c @@ -963,7 +963,7 @@ static int set_powertune(int gpu, int iPercentage) return ret; } -static void fan_autotune(int gpu, int temp, int fanpercent, bool *fan_optimal) +static void fan_autotune(int gpu, int temp, int fanpercent, bool __maybe_unused *fan_optimal) { struct cgpu_info *cgpu = &gpus[gpu]; struct gpu_adl *ga = &cgpu->adl; @@ -1271,7 +1271,7 @@ updated: goto updated; } -void clear_adl(nDevs) +void clear_adl(int nDevs) { struct gpu_adl *ga; int i;