From 63b71d11881c9c076a41d636f77ed997e43541f0 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Tue, 13 Nov 2007 13:20:50 +0000 Subject: INTEGRATION: CWS pj87 (1.22.18); FILE MERGED 2007/10/26 16:28:42 pjanik 1.22.18.1: #i82983#: Prevent warning on unxlngx6. --- jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'jvmfwk') diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx index 098206bbd6e3..6e7f5119a823 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx @@ -4,9 +4,9 @@ * * $RCSfile: sunjavaplugin.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: obo $ $Date: 2007-06-13 07:57:06 $ + * last change: $Author: rt $ $Date: 2007-11-13 14:20:50 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -450,7 +450,9 @@ javaPluginError jfw_plugin_startJavaVirtualMachine( JavaVM ** ppVm, JNIEnv ** ppEnv) { - osl::MutexGuard guard(PluginMutex::get()); + // unless guard is volatile the following warning occurs on gcc: + // warning: variable 't' might be clobbered by `longjmp' or `vfork' + volatile osl::MutexGuard guard(PluginMutex::get()); // unless errcode is volatile the following warning occurs on gcc: // warning: variable 'errcode' might be clobbered by `longjmp' or `vfork' volatile javaPluginError errcode = JFW_PLUGIN_E_NONE; -- cgit