Workaround for FLAC__MAX_METADATA_TYPE not defined.

This commit is contained in:
James Crook 2017-03-18 19:44:12 +00:00
parent 7b6b6ef037
commit 748e718395
2 changed files with 4 additions and 2 deletions

View File

@ -222,7 +222,8 @@ void MyFLACFile::metadata_callback(const FLAC__StreamMetadata *metadata)
case FLAC__METADATA_TYPE_PICTURE: // ignore pictures
case FLAC__METADATA_TYPE_UNDEFINED: // do nothing with this either
case FLAC__MAX_METADATA_TYPE: // quiet compiler warning with this line
// FIXME: not declared when compiling on Ubuntu.
//case FLAC__MAX_METADATA_TYPE: // quiet compiler warning with this line
break;
}

View File

@ -81,7 +81,8 @@ void ODFLACFile::metadata_callback(const FLAC__StreamMetadata *metadata)
case FLAC__METADATA_TYPE_PICTURE: // ignore pictures
case FLAC__METADATA_TYPE_UNDEFINED: // do nothing with this either
case FLAC__MAX_METADATA_TYPE: // quiet compiler warning with this line
// FIXME: not declared when compiling on Ubuntu.
//case FLAC__MAX_METADATA_TYPE: // quiet compiler warning with this line
break;
}