mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Fix Compile Error and warning
This commit is contained in:
parent
1ca4e2bc3f
commit
e080389709
|
@ -2,6 +2,7 @@
|
|||
#include "include.h"
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include "begin_code.h"
|
||||
class SharedLibrary
|
||||
{
|
||||
|
|
|
@ -236,6 +236,8 @@ Uint32 getUint32FromSDLInitFlag(SDLInitFlag flag)
|
|||
return SDL_INIT_EVENTS;
|
||||
case SDLInitFlag::All:
|
||||
return SDL_INIT_EVERYTHING;
|
||||
default:
|
||||
return 0; /// Return 0 by default. (Fix warning)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -254,6 +256,8 @@ int getIntFromIMGInitFlag(IMGInitFlag flag)
|
|||
return IMG_INIT_WEBP;
|
||||
case IMGInitFlag::ALL:
|
||||
return ( IMG_INIT_JPG | IMG_INIT_PNG | IMG_INIT_TIF | IMG_INIT_WEBP );
|
||||
default:
|
||||
return 0; /// Return 0 by default. (Fix warning)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -273,6 +277,8 @@ int getIntFromMixInitFlag(MixInitFlag flag)
|
|||
return MIX_INIT_OGG;
|
||||
case MixInitFlag::FLUIDSYNTH:
|
||||
return MIX_INIT_FLUIDSYNTH;
|
||||
default:
|
||||
return 0; /// Return 0 by default. (Fix warning)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user