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 "include.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <functional>
|
||||||
#include "begin_code.h"
|
#include "begin_code.h"
|
||||||
class SharedLibrary
|
class SharedLibrary
|
||||||
{
|
{
|
||||||
|
|
|
@ -236,6 +236,8 @@ Uint32 getUint32FromSDLInitFlag(SDLInitFlag flag)
|
||||||
return SDL_INIT_EVENTS;
|
return SDL_INIT_EVENTS;
|
||||||
case SDLInitFlag::All:
|
case SDLInitFlag::All:
|
||||||
return SDL_INIT_EVERYTHING;
|
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;
|
return IMG_INIT_WEBP;
|
||||||
case IMGInitFlag::ALL:
|
case IMGInitFlag::ALL:
|
||||||
return ( IMG_INIT_JPG | IMG_INIT_PNG | IMG_INIT_TIF | IMG_INIT_WEBP );
|
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;
|
return MIX_INIT_OGG;
|
||||||
case MixInitFlag::FLUIDSYNTH:
|
case MixInitFlag::FLUIDSYNTH:
|
||||||
return MIX_INIT_FLUIDSYNTH;
|
return MIX_INIT_FLUIDSYNTH;
|
||||||
|
default:
|
||||||
|
return 0; /// Return 0 by default. (Fix warning)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user