Pārlūkot izejas kodu

cmScore.c:Remove 'foundFl' from release build in 2 places to prevent compiler warnings.

master
kpl 11 gadus atpakaļ
vecāks
revīzija
f24f84b48d
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5
    1
      app/cmScore.c

+ 5
- 1
app/cmScore.c Parādīt failu

@@ -1719,9 +1719,11 @@ bool  _cmScSetPerfEvent( cmSc_t* p, unsigned locIdx, unsigned smpIdx, unsigned p
1719 1719
 {
1720 1720
   assert(locIdx < p->locCnt );
1721 1721
   cmScoreLoc_t* lp       = p->loc + locIdx;
1722
-  bool          foundFl  = false;
1723 1722
   bool          doneFl   = true;
1724 1723
   unsigned      i;
1724
+#ifndef NDEBUG
1725
+  bool          foundFl  = false;
1726
+#endif
1725 1727
 
1726 1728
   // locate the event at the loc[locIdx]
1727 1729
   for(i=0; i<lp->evtCnt; ++i)
@@ -1735,7 +1737,9 @@ bool  _cmScSetPerfEvent( cmSc_t* p, unsigned locIdx, unsigned smpIdx, unsigned p
1735 1737
       
1736 1738
         ep->perfSmpIdx = smpIdx;
1737 1739
         ep->perfVel    = vel;
1740
+#ifndef NDEBUG
1738 1741
         foundFl        = true;
1742
+#endif
1739 1743
       }
1740 1744
 
1741 1745
       // check if all notes have arrived for this location

Notiek ielāde…
Atcelt
Saglabāt