Merge pull request #5940 from Jojo-Schmitz/compiler-warnings

fix compiler warnings in Release mode
This commit is contained in:
anatoly-os 2020-04-15 12:53:09 +03:00 committed by GitHub
commit 65c5bc520f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -818,7 +818,7 @@ void findChordRangeEnds(
const ReducedFraction &beatLen)
{
#ifdef NDEBUG
(void)rangeStart;
Q_UNUSED(rangeStart);
#endif
for (auto it = data.rbegin(); it != data.rend(); ++it) {
QuantData &d = *it;

View file

@ -456,7 +456,7 @@ void setVoicesFromPrevBars(
const ReducedFraction &barStart)
{
#ifdef NDEBUG
(void)pendingNonTuplets;
Q_UNUSED(pendingNonTuplets);
#endif
bool loopAgain = false;
do {