Skip to content

Commit 38fea5d

Browse files
authored
Add lines to avoid warning about unused var
When using a template instance in two different ways (for example, different settings struct for differents objects), a lot of lines of warning appear due to some variables being unused. Using these lines, those variables are used for doing nothing and the warnings go away.
1 parent a1ec137 commit 38fea5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BLEMIDI_Transport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ class BLEMIDI_Transport
256256
byte headerByte = buffer[lPtr++];
257257

258258
auto timestampHigh = 0x3f & headerByte;
259-
259+
timestampHigh = timestampHigh; // <-- This line is for avoid Warning message due it is unused
260260
byte timestampByte = buffer[lPtr++];
261261
uint16_t timestamp = 0;
262-
262+
timestamp = timestamp; // <-- This line is for avoid Warning message due it is unused
263263
bool sysExContinuation = false;
264264
bool runningStatusContinuation = false;
265265

0 commit comments

Comments
 (0)