Skip to content
Snippets Groups Projects
Commit cf63f2a6 authored by rswindell's avatar rswindell
Browse files

Fix warnings and errors found in msvc build.

parent 5ef9bc35
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#define XP_WIN #define XP_WIN
#endif #endif
#define JS_THREADSAFE
#include <jsapi.h> #include <jsapi.h>
#include "threadwrap.h" #include "threadwrap.h"
#include "js_request.h" #include "js_request.h"
...@@ -16,7 +17,6 @@ ...@@ -16,7 +17,6 @@
#ifdef DEBUG_JS_REQUESTS #ifdef DEBUG_JS_REQUESTS
#define DEBUG #define DEBUG
#define JS_THREADSAFE
#include <jscntxt.h> #include <jscntxt.h>
enum last_request_type { enum last_request_type {
...@@ -199,7 +199,7 @@ jsrefcount js_debug_suspendrequest(JSContext *cx, const char *file, unsigned lon ...@@ -199,7 +199,7 @@ jsrefcount js_debug_suspendrequest(JSContext *cx, const char *file, unsigned lon
if(req==NULL) { if(req==NULL) {
strcpy(str,"Missing req in Suspend\n"); strcpy(str,"Missing req in Suspend\n");
logstr(); logstr();
return; return -1;
} }
switch(req->type) { switch(req->type) {
case LAST_REQUEST_TYPE_BEGIN: case LAST_REQUEST_TYPE_BEGIN:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment