diff options
author | Sven Gothel <[email protected]> | 2011-09-06 03:52:39 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-06 03:52:39 +0200 |
commit | b8bca22927dfecf6ccee790fa14df78023367ad2 (patch) | |
tree | 2829690bbf7a3894162430bb9dcb2a509d5138e8 /src | |
parent | 282048672d1aca5e647fe661ef6b2ddd9ad992c4 (diff) |
_NET_FRAME_EXTENTS: Remove annoying Warning message. 1 Compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/native/X11Window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index 43ff6b3bc..95ce7b91c 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -409,7 +409,7 @@ static jobject getJavaWindowProperty(JNIEnv *env, Display *dpy, Window window, j XFree(jogl_java_object_data_pp); if(True==showWarning) { fprintf(stderr, "Warning: NEWT X11Window: Fetched invalid Atom NEWT_JAVA_OBJECT window property (res %d) nitems %ld, bytes_after %ld, actual_type %ld, NEWT_JAVA_OBJECT %ld, result 0!\n", - res, nitems, bytes_after, (long)actual_type, javaObjectAtom); + res, nitems, bytes_after, (long)actual_type, (long)javaObjectAtom); } return NULL; } @@ -484,15 +484,15 @@ static Status NewtWindows_getFrameExtends(Display *dpy, Window window, int *left &nitems, &bytes_after, &frame_extends_data_pp); if ( Success != res ) { - fprintf(stderr, "Warning: NEWT X11Window: Could not fetch Atom _NET_FRAME_EXTENTS window property (res %d) nitems %ld, bytes_after %ld, result 0!\n", res, nitems, bytes_after); + fprintf(stderr, "Error: NEWT X11Window: Could not fetch Atom _NET_FRAME_EXTENTS window property (res %d) nitems %ld, bytes_after %ld, result 0!\n", res, nitems, bytes_after); return 0; // Error } if(nitems<nitems_32 || NULL==frame_extends_data_pp) { XFree(frame_extends_data_pp); - fprintf(stderr, "Warning: NEWT X11Window: Fetched invalid Atom _NET_FRAME_EXTENTS window property (res %d) nitems %ld, bytes_after %ld, actual_type %ld, actual_format %d, _NET_FRAME_EXTENTS %ld, result 0!\n", + DBG_PRINT( "Warning: NEWT X11Window: Fetched invalid Atom _NET_FRAME_EXTENTS window property (res %d) nitems %ld, bytes_after %ld, actual_type %ld, actual_format %d, _NET_FRAME_EXTENTS %ld, result 0!\n", res, nitems, bytes_after, (long)actual_type, actual_format, _NET_FRAME_EXTENTS); - return 0; // Error + return 0; // Error, but ok - ie window not mapped } } long * extends = (long*) frame_extends_data_pp; |