Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(soundsourceflac): Fix -Wswitch when building with FLAC >= 1.4.0 #10921

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

Holzhaus
Copy link
Member

@Holzhaus Holzhaus commented Sep 28, 2022

Fixes the following warning:

src/sources/soundsourceflac.cpp: In member function ‘void mixxx::SoundSourceFLAC::flacError(FLAC__StreamDecoderErrorStatus)’:
src/sources/soundsourceflac.cpp:571:12: error: enumeration value ‘FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA’ not handled in switch [-Werror=switch]
  571 |     switch (status) {
      |            ^

The enumeration value has been mentioned in the FLAC 1.3.4 to 1.4.0 porting guide:
https://xiph.org/flac/api/group__porting__1__3__4__to__1__4__0.html

@Holzhaus Holzhaus marked this pull request as ready for review September 28, 2022 11:56
@Holzhaus Holzhaus changed the base branch from main to 2.3 September 28, 2022 12:01
@Holzhaus Holzhaus added this to the 2.3.4 milestone Sep 28, 2022
Fixes the following warning:

    src/sources/soundsourceflac.cpp: In member function ‘void mixxx::SoundSourceFLAC::flacError(FLAC__StreamDecoderErrorStatus)’:
    src/sources/soundsourceflac.cpp:571:12: error: enumeration value ‘FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA’ not handled in switch [-Werror=switch]
      571 |     switch (status) {
          |            ^

The enumeration value has been mentioned in the FLAC 1.3.4 to 1.4.0
porting guide:
https://xiph.org/flac/api/group__porting__1__3__4__to__1__4__0.html
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you.

@daschuer daschuer merged commit 9b79576 into mixxxdj:2.3 Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants