Fix some GCC warnings

This was SVN commit r7048.
This commit is contained in:
Ykkrosh
2009-07-28 16:59:19 +00:00
parent 4ee7e26776
commit 008d894dd7
20 changed files with 39 additions and 29 deletions
+2 -2
View File
@@ -77,9 +77,9 @@ bool IEventTarget::_DispatchEvent( CScriptEvent* evt, IEventTarget* target )
// returns: whether the event arrived (i.e. wasn't cancelled) [bool]
bool IEventTarget::DispatchEvent( CScriptEvent* evt )
{
char* data;
const char* data;
PROFILE_START( "intern string" );
data = (char*) g_Profiler.InternString( "script: " + (CStr8)evt->m_Type );
data = g_Profiler.InternString( "script: " + (CStr8)evt->m_Type );
PROFILE_END( "intern string" );
g_Profiler.StartScript( data );
evt->m_Target = this;
+5
View File
@@ -15,6 +15,9 @@
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef INCLUDED_SPIDERMONKEY
#define INCLUDED_SPIDERMONKEY
// Master header for the SpiderMonkey Javascript library.
//
// Include this instead of accessing any <js*.h> headers directly.
@@ -58,3 +61,5 @@
#ifndef NDEBUG
# define JS_AddRoot(cx, rp) JS_AddNamedRoot((cx), (rp), __FILE__ )
#endif
#endif // INCLUDED_SPIDERMONKEY