mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 22:52:43 +00:00
Tried compiling with ICC9 on Linux, which raised various issues:
* Fixed some bugs with incorrect macro usage (SDL_BYTE_ORDER vs
SDL_BYTEORDER, {MSC,GCC}_VER vs {MSC,GCC}_VERSION, OS_WIN/OS_UNIX in
projects where they're not defined).
* Removed some redundant declarations of g_Console.
* Removed some unnecessary semicolons.
* Removed some unused variables.
* Added throw specification to operator new.
This was SVN commit r4698.
This commit is contained in:
@@ -27,8 +27,7 @@ JSBool JSI_Selection::setSelection( JSContext* cx, JSObject* UNUSED(obj),
|
||||
}
|
||||
|
||||
JSObject* selectionArray = JSVAL_TO_OBJECT( *vp );
|
||||
UNUSED2(selectionArray);
|
||||
EntityCollection::CJSCollectionData* Info = (EntityCollection::CJSCollectionData*)JS_GetInstancePrivate( cx, JSVAL_TO_OBJECT( *vp ), &EntityCollection::JSI_class, NULL );
|
||||
EntityCollection::CJSCollectionData* Info = (EntityCollection::CJSCollectionData*)JS_GetInstancePrivate( cx, selectionArray, &EntityCollection::JSI_class, NULL );
|
||||
|
||||
if( !Info )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user