Browse Source

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

master
kpl 11 years ago
parent
commit
f24f84b48d
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      app/cmScore.c

+ 5
- 1
app/cmScore.c View File

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

Loading…
Cancel
Save