summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/native
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-07-06 01:58:09 +0200
committerSven Gothel <[email protected]>2012-07-06 01:58:09 +0200
commit627a27581688e0b12300370c751e3823b1afe44b (patch)
treeff2f2bf763f74127611a7b96daa402b56b2de342 /src/nativewindow/native
parent049eb333756f4f673411b43d47a993a5df9fc58d (diff)
C code: remove warnings
Diffstat (limited to 'src/nativewindow/native')
-rw-r--r--src/nativewindow/native/x11/Xmisc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nativewindow/native/x11/Xmisc.c b/src/nativewindow/native/x11/Xmisc.c
index 5cbf5c04a..21771c9aa 100644
--- a/src/nativewindow/native/x11/Xmisc.c
+++ b/src/nativewindow/native/x11/Xmisc.c
@@ -188,8 +188,8 @@ static int x11ErrorHandler(Display *dpy, XErrorEvent *e)
XGetErrorText(dpy, e->error_code, errCodeStr, sizeof(errCodeStr));
fprintf(stderr, "Info: Nativewindow X11 Error (Thread: %s): %d - %s, dpy %p, id %x, # %d: %d:%d %s\n",
- threadName, e->error_code, errCodeStr, e->display, e->resourceid, e->serial,
- e->request_code, e->minor_code, reqCodeStr);
+ threadName, e->error_code, errCodeStr, e->display, (int)e->resourceid, (int)e->serial,
+ (int)e->request_code, (int)e->minor_code, reqCodeStr);
if( errorHandlerDebug ) {
(*jniEnv)->CallStaticVoidMethod(jniEnv, X11UtilClazz, dumpStackID);
@@ -198,8 +198,8 @@ static int x11ErrorHandler(Display *dpy, XErrorEvent *e)
if(errorHandlerThrowException) {
if(NULL != jniEnv) {
NativewindowCommon_throwNewRuntimeException(jniEnv, "Nativewindow X11 Error (Thread: %s): %d - %s, dpy %p, id %x, # %d: %d:%d %s\n",
- threadName, e->error_code, errCodeStr, e->display, e->resourceid, e->serial,
- e->request_code, e->minor_code, reqCodeStr);
+ threadName, e->error_code, errCodeStr, e->display, (int)e->resourceid, (int)e->serial,
+ (int)e->request_code, (int)e->minor_code, reqCodeStr);
} else {
fprintf(stderr, "Nativewindow X11 Error: null JNIEnv");
#if 0