From f24f84b48d9f8ef736716d633e7a527fca7d1569 Mon Sep 17 00:00:00 2001 From: kpl Date: Tue, 30 Apr 2013 12:28:57 -0700 Subject: [PATCH] cmScore.c:Remove 'foundFl' from release build in 2 places to prevent compiler warnings. --- app/cmScore.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/cmScore.c b/app/cmScore.c index 8e10bf2..84e765e 100644 --- a/app/cmScore.c +++ b/app/cmScore.c @@ -1719,9 +1719,11 @@ bool _cmScSetPerfEvent( cmSc_t* p, unsigned locIdx, unsigned smpIdx, unsigned p { assert(locIdx < p->locCnt ); cmScoreLoc_t* lp = p->loc + locIdx; - bool foundFl = false; bool doneFl = true; unsigned i; +#ifndef NDEBUG + bool foundFl = false; +#endif // locate the event at the loc[locIdx] for(i=0; ievtCnt; ++i) @@ -1735,7 +1737,9 @@ bool _cmScSetPerfEvent( cmSc_t* p, unsigned locIdx, unsigned smpIdx, unsigned p ep->perfSmpIdx = smpIdx; ep->perfVel = vel; +#ifndef NDEBUG foundFl = true; +#endif } // check if all notes have arrived for this location