summaryrefslogtreecommitdiff
path: root/java/Context.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.com>2009-09-08 13:55:13 +0200
committerMartin Sustrik <sustrik@fastmq.com>2009-09-08 13:55:13 +0200
commit3069b6bd54486346f7bfcce58d6a5e34d129965c (patch)
treecdef109605b657baa1abc28cada66425dda438c5 /java/Context.cpp
parentec6822a477b89ac77afc90425bf36c4829dbef3d (diff)
win port of java binding + java perf tests
Diffstat (limited to 'java/Context.cpp')
-rw-r--r--java/Context.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/Context.cpp b/java/Context.cpp
index 3fc66bd..67094e8 100644
--- a/java/Context.cpp
+++ b/java/Context.cpp
@@ -34,7 +34,14 @@ static void raise_exception (JNIEnv *env, int err)
assert (exception_class);
// Get text description of the exception.
+#if defined _MSC_VER
+#pragma warning (push)
+#pragma warning (disable:4996)
+#endif
const char *err_msg = strerror (err);
+#if defined _MSC_VER
+#pragma warning (pop)
+#endif
// Raise the exception.
int rc = env->ThrowNew (exception_class, err_msg);