More compiler warnings

* Adding a missing local function definition.
 * Ensured a var only used during certain #ifdef was only declared under
   that situation.
This commit is contained in:
Bill Kendrick 2017-10-15 15:05:20 -07:00
parent 41e9fbd0c4
commit 1576935455

View file

@ -114,6 +114,7 @@
static unsigned draw_colors(unsigned action); static unsigned draw_colors(unsigned action);
/* hide all scale-related values here */ /* hide all scale-related values here */
typedef struct scaleparams typedef struct scaleparams
{ {
@ -549,6 +550,10 @@ static void mtw(wchar_t * wtok, char *tok)
#endif #endif
#endif #endif
int TP_EventFilter(const SDL_Event * event);
/* #define fmemopen_alternative */ /* Uncomment this to test the fmemopen alternative in systems were fmemopen exists */ /* #define fmemopen_alternative */ /* Uncomment this to test the fmemopen alternative in systems were fmemopen exists */
#if defined (WIN32) || defined (__APPLE__) || defined(__NetBSD__) || defined(__sun) /* MINGW/MSYS, NetBSD, and MacOSX need it, at least for now */ #if defined (WIN32) || defined (__APPLE__) || defined(__NetBSD__) || defined(__sun) /* MINGW/MSYS, NetBSD, and MacOSX need it, at least for now */
@ -12879,7 +12884,10 @@ static void do_png_embed_data(png_structp png_ptr)
unsigned char *chunk_data; unsigned char *chunk_data;
Bytef *compressed_data; Bytef *compressed_data;
char *ldata, *fname; #ifdef fmemopen_alternative
char *fname;
#endif
char *ldata;
FILE *lfi; FILE *lfi;
int list_ctr = 0; int list_ctr = 0;
Uint32 pix; Uint32 pix;