Skip to content

Commit

Permalink
reenable warnings for softfloat and wasm-jit, and fix a warning in wa…
Browse files Browse the repository at this point in the history
…sm-jit
  • Loading branch information
linh2931 committed Sep 30, 2022
1 parent ced3542 commit 3b83c1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions libraries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ set(EOSVM_INSTALL_COMPONENT "dev")

add_subdirectory( libfc )
add_subdirectory( builtins )

# Suppress warnings on 3rdParty Library
add_definitions( -w )
add_subdirectory( softfloat )
add_subdirectory( wasm-jit )
remove_definitions( -w )

add_subdirectory( chainbase )
set(APPBASE_ENABLE_AUTO_VERSION OFF CACHE BOOL "enable automatic discovery of version via 'git describe'")
add_subdirectory( appbase )
Expand Down
4 changes: 2 additions & 2 deletions libraries/wasm-jit/Source/WAST/NFA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ namespace NFA
std::set<StateIndex> terminalStates;

CharSet* classCharSets = (CharSet*)alloca(sizeof(CharSet) * numClasses);
memset(classCharSets,0,sizeof(CharSet) * numClasses);
memset((char*)classCharSets,0,sizeof(CharSet) * numClasses);
for(Uptr charIndex = 0;charIndex < 256;++charIndex)
{
const Uptr classIndex = charToOffsetMap[charIndex] / numStates;
Expand Down Expand Up @@ -598,4 +598,4 @@ namespace NFA
result += "}\n";
return result;
}
}
}

0 comments on commit 3b83c1b

Please sign in to comment.