no bug: Warning fix at predeclaration of AutoCompartment; r=jorendorff
authorTerrence Cole <terrence@mozilla.com>
Thu, 05 Apr 2012 16:31:26 -0700
changeset 94448 a57ee6d20b76bfbfbde2686b14aa49457a11f2f0
parent 94447 b173abb25ebd9d39a96363b1044ca9e81bfac383
child 94449 2f84376063fe9b6fd302c7eabd0ff2daafc7e371
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
no bug: Warning fix at predeclaration of AutoCompartment; r=jorendorff
js/src/jsapi.h
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -2731,17 +2731,17 @@ js_TransplantObjectWithWrapper(JSContext
                                JSObject *origwrapper,
                                JSObject *targetobj,
                                JSObject *targetwrapper);
 
 #ifdef __cplusplus
 JS_END_EXTERN_C
 
 namespace js {
-struct AutoCompartment;
+class AutoCompartment;
 }
 
 class JS_PUBLIC_API(JSAutoEnterCompartment)
 {
     /*
      * This is a poor man's Maybe<AutoCompartment>, because we don't have
      * access to the AutoCompartment definition here.  We statically assert in
      * jsapi.cpp that we have the right size here.