Fix compiler warnings in Native Client and Linux builds.

This commit is contained in:
Sam Clegg 2014-06-20 11:10:16 -03:00
parent b9b706f832
commit 1925fe9cf9
10 changed files with 34 additions and 7 deletions

View file

@ -20,7 +20,9 @@
*/
#include "../../SDL_internal.h"
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <pthread.h>
#include <errno.h>

View file

@ -57,11 +57,13 @@
#include "SDL_assert.h"
#ifndef __NACL__
/* List of signals to mask in the subthreads */
static const int sig_list[] = {
SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH,
SIGVTALRM, SIGPROF, 0
};
#endif
static void *
RunThread(void *data)
@ -115,8 +117,10 @@ SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
void
SDL_SYS_SetupThread(const char *name)
{
#ifndef __NACL__
int i;
sigset_t mask;
#endif
if (name != NULL) {
#if defined(__MACOSX__) || defined(__IPHONEOS__) || defined(__LINUX__)