We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5296 - Compilation error with clang 12.0.0 due to missing include
Summary: Compilation error with clang 12.0.0 due to missing include
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 1.2.12
Hardware: x86_64 macOS 10.15
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-23 00:35 UTC by kreeblah
Modified: 2020-09-23 02:32 UTC (History)
1 user (show)

See Also:


Attachments
Fixes compilation error due to missing include in mixer.c (300 bytes, patch)
2020-09-23 00:35 UTC, kreeblah
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kreeblah 2020-09-23 00:35:59 UTC
Created attachment 4468 [details]
Fixes compilation error due to missing include in mixer.c

Compilation fails in clang 12.0.0 on mixer.c due to a missing include:

mixer.c:153:46: error: implicit declaration of function 'Mix_InitFluidSynth' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
                if ((initialized & MIX_INIT_FLUIDSYNTH) || Mix_InitFluid...
                                                           ^
mixer.c:205:3: error: implicit declaration of function 'Mix_QuitFluidSynth' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
                Mix_QuitFluidSynth();
                ^
It looks like dynamic_fluidsynth.h should have been included as well, so this patch adds that.
Comment 1 Ozkan Sezer 2020-09-23 02:32:16 UTC
Fixed. Thanks.
https://hg.libsdl.org/SDL_mixer/rev/33a3817d1066