ref: 42765792bcf3f79b850edaad6738d49303199437
parent: 3973419cef3c0f13ba3634b369f973d9d4f73af4
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Jul 31 00:41:46 EDT 2019
Shut up some warnings
--- a/src/Backends/Rendering/SDLSurface.cpp
+++ b/src/Backends/Rendering/SDLSurface.cpp
@@ -106,7 +106,7 @@
void Backend_Unlock(Backend_Surface *surface)
{
-
+ (void)surface;
}
void Backend_Blit(Backend_Surface *source_surface, const RECT *rect, Backend_Surface *destination_surface, long x, long y, BOOL colour_key)
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -207,7 +207,7 @@
SDL_Rect source_rect;
RectToSDLRect(rect, &source_rect);
- SDL_Rect destination_rect = {x, y, source_rect.w, source_rect.h};
+ SDL_Rect destination_rect = {(int)x, (int)y, source_rect.w, source_rect.h};
// Blit the surface
SDL_SetSurfaceBlendMode(source_surface->sdl_surface, colour_key ? SDL_BLENDMODE_BLEND : SDL_BLENDMODE_NONE);
@@ -234,7 +234,7 @@
SDL_Rect source_rect;
RectToSDLRect(rect, &source_rect);
- SDL_Rect destination_rect = {x, y, source_rect.w, source_rect.h};
+ SDL_Rect destination_rect = {(int)x, (int)y, source_rect.w, source_rect.h};
// Blit the texture
SDL_SetTextureBlendMode(source_surface->texture, colour_key ? SDL_BLENDMODE_BLEND : SDL_BLENDMODE_NONE);
@@ -398,7 +398,7 @@
if (glyph == NULL || surface == NULL)
return;
- SDL_Rect destination_rect = {x, y, glyph->surface->sdl_surface->w, glyph->surface->sdl_surface->h};
+ SDL_Rect destination_rect = {(int)x, (int)y, glyph->surface->sdl_surface->w, glyph->surface->sdl_surface->h};
SDL_SetSurfaceColorMod(glyph->surface->sdl_surface, colours[0], colours[1], colours[2]);
SDL_SetSurfaceBlendMode(glyph->surface->sdl_surface, SDL_BLENDMODE_BLEND);
--- a/src/Backends/Rendering/Software.cpp
+++ b/src/Backends/Rendering/Software.cpp
@@ -111,7 +111,7 @@
void Backend_Unlock(Backend_Surface *surface)
{
-
+ (void)surface;
}
void Backend_Blit(Backend_Surface *source_surface, const RECT *rect, Backend_Surface *destination_surface, long x, long y, BOOL colour_key)
--- a/src/NpcTbl.cpp
+++ b/src/NpcTbl.cpp
@@ -17,7 +17,7 @@
FILE *fp;
long n;
long num;
- unsigned long size;
+ long size;
size = GetFileSizeLong(path);
if (size == -1)