diff --git a/testing/testing_zgenm2.c b/testing/testing_zgenm2.c
index 80762826354f7eb0612e82ab16b64163cd893dd9..d2317d359efdd79dfd4e49deec99d09daaf26e67 100644
--- a/testing/testing_zgenm2.c
+++ b/testing/testing_zgenm2.c
@@ -75,6 +75,8 @@ testing_zgenm2( run_arg_list_t *args, int check )
     /* Save the largest absolute value */
     hres = cblas_idamax( minMN, D, 1 );
     dmax = fabs( D[hres] );
+#else
+    (void)mode;
 #endif
 
     /* Creates the matrix */