Browse Source

Use "UNUSED" to squash compiler warnings

Scott Lahteine 8 years ago
parent
commit
6fa7e24af3
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      Marlin/configuration_store.cpp
  2. 2
    2
      Marlin/qr_solve.cpp

+ 2
- 2
Marlin/configuration_store.cpp View File

@@ -410,7 +410,7 @@ void Config_RetrieveSettings() {
410 410
 
411 411
     EEPROM_READ_VAR(i, dummy); // bedKp
412 412
     if (dummy != DUMMY_PID_VALUE) {
413
-      bedKp = dummy;
413
+      bedKp = dummy; UNUSED(bedKp);
414 414
       EEPROM_READ_VAR(i, bedKi);
415 415
       EEPROM_READ_VAR(i, bedKd);
416 416
     }
@@ -540,7 +540,7 @@ void Config_ResetDefault() {
540 540
     #if ENABLED(PID_PARAMS_PER_EXTRUDER)
541 541
       for (int e = 0; e < EXTRUDERS; e++)
542 542
     #else
543
-      int e = 0; // only need to write once
543
+      int e = 0; UNUSED(e); // only need to write once
544 544
     #endif
545 545
     {
546 546
       PID_PARAM(Kp, e) = DEFAULT_Kp;

+ 2
- 2
Marlin/qr_solve.cpp View File

@@ -1024,7 +1024,7 @@ void dqrlss(double a[], int lda, int m, int n, int kr, double b[], double x[],
1024 1024
 
1025 1025
   if (kr != 0) {
1026 1026
     job = 110;
1027
-    info = dqrsl(a, lda, m, kr, qraux, b, rsd, rsd, x, rsd, rsd, job);
1027
+    info = dqrsl(a, lda, m, kr, qraux, b, rsd, rsd, x, rsd, rsd, job); UNUSED(info);
1028 1028
   }
1029 1029
 
1030 1030
   for (i = 0; i < n; i++)
@@ -1569,7 +1569,7 @@ void qr_solve(double x[], int m, int n, double a[], double b[])
1569 1569
   tol = r8_epsilon() / r8mat_amax(m, n, a_qr);
1570 1570
   itask = 1;
1571 1571
 
1572
-  ind = dqrls(a_qr, lda, m, n, tol, &kr, b, x, r, jpvt, qraux, itask);
1572
+  ind = dqrls(a_qr, lda, m, n, tol, &kr, b, x, r, jpvt, qraux, itask); UNUSED(ind);
1573 1573
 }
1574 1574
 /******************************************************************************/
1575 1575
 

Loading…
Cancel
Save