Skip to content

Commit

Permalink
Fix compile time error variable 'metadataBytesRead' set but not used
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Nov 16, 2023
1 parent 208177e commit ccf9005
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/StftPitchShift/dr_libs/dr_wav.h
Original file line number Diff line number Diff line change
Expand Up @@ -3559,6 +3559,9 @@ DRWAV_PRIVATE drwav_bool32 drwav_init__internal(drwav* pWav, drwav_chunk_proc on
metadataBytesRead = drwav__metadata_process_chunk(&metadataParser, &header, drwav_metadata_type_all_including_unknown);
DRWAV_ASSERT(metadataBytesRead <= header.sizeInBytes);

/* Fix compile time error variable 'metadataBytesRead' set but not used. */
if (metadataBytesRead) {;}

/* Go back to the start of the chunk so we can normalize the position of the cursor. */
if (drwav__seek_from_start(pWav->onSeek, cursor, pWav->pUserData) == DRWAV_FALSE) {
break; /* Failed to seek. Can't reliable read the remaining chunks. Get out. */
Expand Down

0 comments on commit ccf9005

Please sign in to comment.