Bug 622647: (basically NPODB) Add 'ifdef MOZ_ENABLE_LIBXUL' guard around libxul-only function, to fix 'not used' build warning in non-libxul builds. r=dwitte
☠☠ backed out by e9e69afea722 ☠ ☠
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 06 Jan 2011 11:54:59 -0800
changeset 60177 2215b740bca4c03f8ec8e90070ef48693982c306
parent 60176 2025b4eeca14c61c730462e1faa068c5673d6ffe
child 60178 d58e45442c87bdae66439ebb7a726dd2dd5ea70c
child 60196 e9e69afea7220f0526ab7acb763d2aac05cd2a65
push id17881
push usercleary@mozilla.com
push dateFri, 07 Jan 2011 19:57:21 +0000
treeherdermozilla-central@54576be62860 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdwitte
bugs622647
milestone2.0b9pre
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
Bug 622647: (basically NPODB) Add 'ifdef MOZ_ENABLE_LIBXUL' guard around libxul-only function, to fix 'not used' build warning in non-libxul builds. r=dwitte
js/src/xpconnect/loader/mozJSComponentLoader.cpp
--- a/js/src/xpconnect/loader/mozJSComponentLoader.cpp
+++ b/js/src/xpconnect/loader/mozJSComponentLoader.cpp
@@ -346,16 +346,17 @@ ReportOnCaller(JSCLContextHelper &helper
     JSContext *cx = helper.Pop();
     if (!cx) {
         return NS_ERROR_FAILURE;
     }
 
     return OutputError(cx, format, ap);
 }
 
+#ifdef MOZ_ENABLE_LIBXUL
 static nsresult
 ReadScriptFromStream(JSContext *cx, nsIObjectInputStream *stream,
                      JSScript **script)
 {
     *script = nsnull;
 
     PRUint32 size;
     nsresult rv = stream->Read32(&size);
@@ -447,16 +448,17 @@ WriteScriptToStream(JSContext *cx, JSScr
         }
     } else {
         rv = NS_ERROR_FAILURE; // likely to be a principals serialization error
     }
 
     JS_XDRDestroy(xdr);
     return rv;
 }
+#endif // MOZ_ENABLE_LIBXUL
 
 mozJSComponentLoader::mozJSComponentLoader()
     : mRuntime(nsnull),
       mContext(nsnull),
       mInitialized(PR_FALSE)
 {
     NS_ASSERTION(!sSelf, "mozJSComponentLoader should be a singleton");