mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-24 23:47:27 +00:00
Fix GCC 4.6 "set but not used" warnings
This was SVN commit r9194.
This commit is contained in:
@@ -449,6 +449,7 @@ ScriptInterface_impl::ScriptInterface_impl(const char* nativeScopeName, const sh
|
||||
|
||||
m_glob = JS_NewGlobalObject(m_cx, &global_class);
|
||||
ok = JS_InitStandardClasses(m_cx, m_glob);
|
||||
debug_assert(ok);
|
||||
|
||||
JS_DefineProperty(m_cx, m_glob, "global", OBJECT_TO_JSVAL(m_glob), NULL, NULL, JSPROP_ENUMERATE | JSPROP_READONLY
|
||||
| JSPROP_PERMANENT);
|
||||
|
||||
Reference in New Issue
Block a user