Fixed clang -Weverything warnings
This commit is contained in:
parent
ea4e328e39
commit
9c9a5abe82
2 changed files with 7 additions and 5 deletions
|
@ -114,9 +114,10 @@ enum
|
||||||
#define SDL_DEFINE_PIXELFOURCC(A, B, C, D) SDL_FOURCC(A, B, C, D)
|
#define SDL_DEFINE_PIXELFOURCC(A, B, C, D) SDL_FOURCC(A, B, C, D)
|
||||||
|
|
||||||
#define SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes) \
|
#define SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes) \
|
||||||
((1 << 31) | ((type) << 24) | ((order) << 20) | ((layout) << 16) | \
|
((1 << 28) | ((type) << 24) | ((order) << 20) | ((layout) << 16) | \
|
||||||
((bits) << 8) | ((bytes) << 0))
|
((bits) << 8) | ((bytes) << 0))
|
||||||
|
|
||||||
|
#define SDL_PIXELFLAG(X) (((X) >> 28) & 0x0F)
|
||||||
#define SDL_PIXELTYPE(X) (((X) >> 24) & 0x0F)
|
#define SDL_PIXELTYPE(X) (((X) >> 24) & 0x0F)
|
||||||
#define SDL_PIXELORDER(X) (((X) >> 20) & 0x0F)
|
#define SDL_PIXELORDER(X) (((X) >> 20) & 0x0F)
|
||||||
#define SDL_PIXELLAYOUT(X) (((X) >> 16) & 0x0F)
|
#define SDL_PIXELLAYOUT(X) (((X) >> 16) & 0x0F)
|
||||||
|
@ -140,8 +141,9 @@ enum
|
||||||
(SDL_PIXELORDER(format) == SDL_PACKEDORDER_ABGR) || \
|
(SDL_PIXELORDER(format) == SDL_PACKEDORDER_ABGR) || \
|
||||||
(SDL_PIXELORDER(format) == SDL_PACKEDORDER_BGRA)))
|
(SDL_PIXELORDER(format) == SDL_PACKEDORDER_BGRA)))
|
||||||
|
|
||||||
|
/* The flag is set to 1 because 0x1? is not in the printable ASCII range */
|
||||||
#define SDL_ISPIXELFORMAT_FOURCC(format) \
|
#define SDL_ISPIXELFORMAT_FOURCC(format) \
|
||||||
((format) && !((format) & 0x80000000))
|
((format) && (SDL_PIXELFLAG(format) != 1))
|
||||||
|
|
||||||
/* Note: If you modify this list, update SDL_GetPixelFormatName() */
|
/* Note: If you modify this list, update SDL_GetPixelFormatName() */
|
||||||
enum
|
enum
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include "SDL_stdinc.h"
|
#include "SDL_stdinc.h"
|
||||||
|
|
||||||
#if __IPHONEOS__
|
#if defined(__IPHONEOS__) && __IPHONEOS__
|
||||||
#include "SDL_video.h"
|
#include "SDL_video.h"
|
||||||
#include "SDL_keyboard.h"
|
#include "SDL_keyboard.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -44,7 +44,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Platform specific functions for iOS */
|
/* Platform specific functions for iOS */
|
||||||
#if __IPHONEOS__
|
#if defined(__IPHONEOS__) && __IPHONEOS__
|
||||||
|
|
||||||
extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
|
extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
|
||||||
extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
|
extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
|
||||||
|
@ -53,7 +53,7 @@ extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
|
||||||
|
|
||||||
|
|
||||||
/* Platform specific functions for Android */
|
/* Platform specific functions for Android */
|
||||||
#if __ANDROID__
|
#if defined(__ANDROID__) && __ANDROID__
|
||||||
|
|
||||||
/* Get the JNI environment for the current thread
|
/* Get the JNI environment for the current thread
|
||||||
This returns JNIEnv*, but the prototype is void* so we don't need jni.h
|
This returns JNIEnv*, but the prototype is void* so we don't need jni.h
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue