mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 11:32:45 +00:00
Fix some GCC warnings
This was SVN commit r7048.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user