summaryrefslogtreecommitdiffstats
path: root/jvmfwk
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2007-11-13 13:20:50 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2007-11-13 13:20:50 +0000
commit63b71d11881c9c076a41d636f77ed997e43541f0 (patch)
tree9faf1108e99e273e3ca12de8185e0060410af688 /jvmfwk
parentINTEGRATION: CWS pj87 (1.4.50); FILE MERGED (diff)
downloadcore-63b71d11881c9c076a41d636f77ed997e43541f0.tar.gz
core-63b71d11881c9c076a41d636f77ed997e43541f0.zip
INTEGRATION: CWS pj87 (1.22.18); FILE MERGED
2007/10/26 16:28:42 pjanik 1.22.18.1: #i82983#: Prevent warning on unxlngx6.
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx8
1 files changed, 5 insertions, 3 deletions
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;