Skip to content
Browse files

fix warnings due to -Wunused-variable

  • Loading branch information...
1 parent f08bd8d commit 5d5cdce6f29731ef9801bf546f4886eb6a56233b @Jojo-Schmitz Jojo-Schmitz committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 aeolus/model.cpp
  2. +1 −1 mscore/pm.cpp
View
2 aeolus/model.cpp
@@ -372,7 +372,6 @@ int Model::read_instr ()
bool instr;
int d, k, r, s;
char c, *p, *q;
- char buff [1024];
char t1 [256];
char t2 [256];
Keybd *K;
@@ -408,6 +407,7 @@ int Model::read_instr ()
break;
p = bb.data();
#else
+ char buff [1024];
while (!stat && f.readLine(buff, 1024)) {
line++;
p = buff;
View
2 mscore/pm.cpp
@@ -222,7 +222,7 @@ void PortMidiDriver::read()
}
else if (type == ME_NOTEOFF) {
int pitch = Pm_MessageData1(buffer[0].message);
- int velo = Pm_MessageData2(buffer[0].message);
+ (void)Pm_MessageData2(buffer[0].message); // read but ignore
mscore->midiNoteReceived(channel, pitch, 0);
}
}

0 comments on commit 5d5cdce

Please sign in to comment.
Something went wrong with that request. Please try again.