From acf3d34bc50f65ddfebb037ab9e377e6236dd960 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 14 Nov 2017 23:23:44 +0100 Subject: [PATCH] Silence an unused variable warning with a cast l2 cache size is not universally needed to assign default unrolling limits, but neither putting its declaration inside an ifdef nor cloning it into all ifdef sections that need it really makes sense here. --- kernel/setparam-ref.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/setparam-ref.c b/kernel/setparam-ref.c index 9320cb56c..b6c5b54de 100644 --- a/kernel/setparam-ref.c +++ b/kernel/setparam-ref.c @@ -684,6 +684,9 @@ static void init_parameter(void) { int l2 = get_l2_size(); + (void) l2; /* dirty trick to suppress unused variable warning for targets */ + /* where the GEMM unrolling parameters do not depend on l2 */ + TABLE_NAME.sgemm_q = SGEMM_DEFAULT_Q; TABLE_NAME.dgemm_q = DGEMM_DEFAULT_Q; TABLE_NAME.cgemm_q = CGEMM_DEFAULT_Q;