diff --git a/testing/testing_zgemm_batch.c b/testing/testing_zgemm_batch.c
index c3a61d0349eb78b1a55d78e44578bbe09e6338ef..fbc65a546b59c5e821c074046ca85e262b56fb06 100644
--- a/testing/testing_zgemm_batch.c
+++ b/testing/testing_zgemm_batch.c
@@ -40,7 +40,6 @@ testing_zgemm_batch_desc( run_arg_list_t *args, int check )
     int                   async  = parameters_getvalue_int( "async" );
     int                   nb     = run_arg_get_int( args, "nb", 10 );
     int                   ib     = run_arg_get_int( args, "ib", 10 );
-    int                   P      = parameters_getvalue_int( "P" );
     cham_trans_t          transA = run_arg_get_trans( args, "transA", ChamNoTrans );
     cham_trans_t          transB = run_arg_get_trans( args, "transB", ChamNoTrans );
     int                   N      = run_arg_get_int( args, "N", 320 );
diff --git a/testing/testing_zherk_batch.c b/testing/testing_zherk_batch.c
index 4f149ea7032754f1774dd6a08a5c4a3f87962c28..076812827fc1c0543f978ff25a5cddee591a4f62 100644
--- a/testing/testing_zherk_batch.c
+++ b/testing/testing_zherk_batch.c
@@ -40,7 +40,6 @@ testing_zherk_batch_desc( run_arg_list_t *args, int check )
     int           async = parameters_getvalue_int( "async" );
     int           nb    = run_arg_get_int( args, "nb", 10 );
     int           ib    = run_arg_get_int( args, "ib", 10 );
-    int           P     = parameters_getvalue_int( "P" );
     cham_trans_t  trans = run_arg_get_trans( args, "trans", ChamNoTrans );
     cham_uplo_t   uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
     int           N     = run_arg_get_int( args, "N", 320 );
diff --git a/testing/testing_zpotrf_batch.c b/testing/testing_zpotrf_batch.c
index 27d17b301669c7069fbad63525e8a34ba890011c..29ef3b2f855a5794c4d80bdbd55a83096c20d89f 100644
--- a/testing/testing_zpotrf_batch.c
+++ b/testing/testing_zpotrf_batch.c
@@ -40,11 +40,9 @@ testing_zpotrf_batch_desc( run_arg_list_t *args, int check )
     int           async = parameters_getvalue_int( "async" );
     int           nb    = run_arg_get_int( args, "nb", 10 );
     int           ib    = run_arg_get_int( args, "ib", 10 );
-    int           P     = parameters_getvalue_int( "P" );
     cham_uplo_t   uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
     int           N     = run_arg_get_int( args, "N", 320 );
     int           seedA = run_arg_get_int( args, "seedA", testing_ialea() );
-    int           Q     = parameters_compute_q( P );
 
     /* Descriptors */
     CHAM_desc_t *descA;
diff --git a/testing/testing_ztrsm_batch.c b/testing/testing_ztrsm_batch.c
index 318aa33bd7636af7a518f28ebf48e3222058d22c..2c496065376c551469034f389ac491493b4868b4 100644
--- a/testing/testing_ztrsm_batch.c
+++ b/testing/testing_ztrsm_batch.c
@@ -40,7 +40,6 @@ testing_ztrsm_batch_desc( run_arg_list_t *args, int check )
     int                   async = parameters_getvalue_int( "async" );
     int                   nb    = run_arg_get_int( args, "nb", 10 );
     int                   ib    = run_arg_get_int( args, "ib", 10 );
-    int                   P     = parameters_getvalue_int( "P" );
     cham_trans_t          trans = run_arg_get_trans( args, "trans", ChamNoTrans );
     cham_side_t           side  = run_arg_get_side( args, "side", ChamLeft );
     cham_uplo_t           uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
@@ -52,8 +51,8 @@ testing_ztrsm_batch_desc( run_arg_list_t *args, int check )
     int                   seedB = run_arg_get_int( args, "seedB", testing_ialea() );
 
     /* Descriptors */
-    int          Am, An, Bm, Bn;
-    CHAM_desc_t *descA, *descB, *descC;
+    int          Am, An;
+    CHAM_desc_t *descA, *descB;
 
     alpha = run_arg_get_complex64( args, "alpha", alpha );