From 6c718b59d47cdcfa6a4d4d26b6d84dc0e608f25d Mon Sep 17 00:00:00 2001 From: ishmal Date: Sun, 4 May 2008 17:04:55 +0000 Subject: [PATCH] Remove warnings --- src/bind/javabind.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp index fe9cff4df..af287dc7e 100644 --- a/src/bind/javabind.cpp +++ b/src/bind/javabind.cpp @@ -732,11 +732,14 @@ jstring JNICALL documentGet(JNIEnv *env, jobject /*obj*/, jlong /*ptr*/) * This is provided to scripts can load an XML tree into Inkscape. * If anyone has a smarter way of doing this, please implement. */ -jboolean JNICALL documentSet(JNIEnv *env, jobject /*obj*/, jlong /*ptr*/, jstring jstr) +jboolean JNICALL documentSet(JNIEnv *env, jobject /*obj*/, jlong /*ptr*/, jstring /*jstr*/) { - //JavaBinderyImpl *bind = (JavaBinderyImpl *)ptr; + /* + JavaBinderyImpl *bind = (JavaBinderyImpl *)ptr; String s = getString(env, jstr); SPDocument *doc = sp_document_new_from_mem(s.c_str(), s.size(), true); + */ + return JNI_TRUE; } /** @@ -856,6 +859,7 @@ bool JavaBinderyImpl::showConsole() static int JNICALL vfprintfHook(FILE* /*f*/, const char *fmt, va_list args) { g_logv(G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, fmt, args); + return JNI_TRUE; } -- 2.30.2