From cc2a3552065524d17dc9b033a176dd78ef9b215f Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Thu, 8 Nov 2018 18:36:40 +0100
Subject: [PATCH] Silent warning for unused variables

---
 cudablas/compute/cuda_ztsmlq.c | 9 ---------
 cudablas/compute/cuda_ztsmqr.c | 4 +---
 cudablas/compute/cuda_zttmlq.c | 9 ---------
 cudablas/compute/cuda_zttmqr.c | 4 +---
 4 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/cudablas/compute/cuda_ztsmlq.c b/cudablas/compute/cuda_ztsmlq.c
index fa949538f..2dcfc2415 100644
--- a/cudablas/compute/cuda_ztsmlq.c
+++ b/cudablas/compute/cuda_ztsmlq.c
@@ -33,7 +33,6 @@ int CUDA_ztsmlq(
     CUBLAS_STREAM_PARAM)
 {
     int i, i1, i3;
-    int NW;
     int kb;
     int ic = 0;
     int jc = 0;
@@ -45,14 +44,6 @@ int CUDA_ztsmlq(
         return -1;
     }
 
-    /* NW is the minimum dimension of WORK */
-    if (side == ChamLeft) {
-        NW = IB;
-    }
-    else {
-        NW = N1;
-    }
-
     if ((trans != ChamNoTrans) && (trans != ChamConjTrans)) {
         return -2;
     }
diff --git a/cudablas/compute/cuda_ztsmqr.c b/cudablas/compute/cuda_ztsmqr.c
index 6a655a540..e731dfbf4 100644
--- a/cudablas/compute/cuda_ztsmqr.c
+++ b/cudablas/compute/cuda_ztsmqr.c
@@ -33,7 +33,7 @@ int CUDA_ztsmqr(
     CUBLAS_STREAM_PARAM)
 {
     int i, i1, i3;
-    int NQ, NW;
+    int NQ;
     int kb;
     int ic = 0;
     int jc = 0;
@@ -48,11 +48,9 @@ int CUDA_ztsmqr(
     /* NQ is the order of Q */
     if (side == ChamLeft) {
         NQ = M2;
-        NW = IB;
     }
     else {
         NQ = N2;
-        NW = M1;
     }
 
     if ((trans != ChamNoTrans) && (trans != ChamConjTrans)) {
diff --git a/cudablas/compute/cuda_zttmlq.c b/cudablas/compute/cuda_zttmlq.c
index ddde1ed38..c194adfe7 100644
--- a/cudablas/compute/cuda_zttmlq.c
+++ b/cudablas/compute/cuda_zttmlq.c
@@ -33,7 +33,6 @@ int CUDA_zttmlq(
         CUBLAS_STREAM_PARAM)
 {
     int i, i1, i3;
-    int NW;
     int kb, l;
     int ic = 0;
     int jc = 0;
@@ -47,14 +46,6 @@ int CUDA_zttmlq(
         return -1;
     }
 
-    /* NQ is the order of Q */
-    if (side == ChamLeft) {
-        NW = IB;
-    }
-    else {
-        NW = N1;
-    }
-
     if ((trans != ChamNoTrans) && (trans != ChamConjTrans)) {
         return -2;
     }
diff --git a/cudablas/compute/cuda_zttmqr.c b/cudablas/compute/cuda_zttmqr.c
index e2a91ee81..8664d0675 100644
--- a/cudablas/compute/cuda_zttmqr.c
+++ b/cudablas/compute/cuda_zttmqr.c
@@ -33,7 +33,7 @@ int CUDA_zttmqr(
         CUBLAS_STREAM_PARAM)
 {
     int i, i1, i3;
-    int NQ, NW;
+    int NQ;
     int kb, l;
     int ic = 0;
     int jc = 0;
@@ -50,11 +50,9 @@ int CUDA_zttmqr(
     /* NQ is the order of Q */
     if (side == ChamLeft) {
         NQ = M2;
-        NW = IB;
     }
     else {
         NQ = N2;
-        NW = M1;
     }
 
     if ((trans != ChamNoTrans) && (trans != ChamConjTrans)) {
-- 
GitLab