Skip to content

Commit

Permalink
Fix unused var warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
spathiwa authored and cglzaguilar committed Jan 22, 2019
1 parent 32e7e6b commit a277d03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions source/core/Events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,7 @@ VIREO_FUNCTION_SIGNATURE2(RegisterForJSEvent, JavaScriptRefNum, UInt32)
THREAD_EXEC()->LogEvent(EventLog::kSoftDataError, "JavaScriptRefNum must not be null");
return THREAD_EXEC()->Stop();
}
#if kVireoOS_emscripten
UInt32 eventType = _Param(1);
VirtualInstrument *owningVI = THREAD_CLUMP()->OwningVI();
STACK_VAR(String, viNameVar);
Expand All @@ -1248,10 +1249,9 @@ VIREO_FUNCTION_SIGNATURE2(RegisterForJSEvent, JavaScriptRefNum, UInt32)
eventOracleIdx = ecInfo->eventOracleIndex;
controlID = ecInfo->controlID;

#if kVireoOS_emscripten
jsRegisterForControlEvent(viName, controlID, eventType, eventOracleIdx);
#endif
}
#endif

return _NextInstruction();
}
Expand Down
10 changes: 5 additions & 5 deletions source/core/JavaScriptRef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ extern "C" {

VIREO_FUNCTION_SIGNATURE2(IsNotAJavaScriptRefnum, JavaScriptRefNum, Boolean)
{
Boolean isNotARefnum = false;
JavaScriptRefNum* refnumPtr = _ParamPointer(0);
#if kVireoOS_emscripten
TypeRef typeRefJavaScriptRefNum = TypeManagerScope::Current()->FindType(tsJavaScriptRefNumType);
TypeRef typeRefIsNotARefNum = TypeManagerScope::Current()->FindType(tsBooleanType);
JavaScriptRefNum* refnumPtr = _ParamPointer(0);
Boolean isNotARefnum = false;
#if kVireoOS_emscripten
jsIsNotAJavaScriptRefnum(typeRefJavaScriptRefNum, refnumPtr, typeRefIsNotARefNum, &isNotARefnum);
#else
#else
isNotARefnum = *refnumPtr == 0;
#endif
#endif
_Param(1) = isNotARefnum;
return _NextInstruction();
}
Expand Down

0 comments on commit a277d03

Please sign in to comment.