diff options
author | walkingeyerobot <mitch@thefoley.net> | 2021-02-16 13:37:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 10:37:16 -0800 |
commit | a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6 (patch) | |
tree | 87ef32b833cb2cae2b2a755eafb4dea407fa8337 /src/emscripten-optimizer | |
parent | 3a368f480bcdc36564650f3c0236818613e5d510 (diff) | |
download | binaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.tar.gz binaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.tar.bz2 binaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.zip |
cleanup to allow binaryen to be built in more strict environments (#3566)
Diffstat (limited to 'src/emscripten-optimizer')
-rw-r--r-- | src/emscripten-optimizer/istring.h | 4 | ||||
-rw-r--r-- | src/emscripten-optimizer/optimizer-shared.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/emscripten-optimizer/istring.h b/src/emscripten-optimizer/istring.h index af3386162..69df761fd 100644 --- a/src/emscripten-optimizer/istring.h +++ b/src/emscripten-optimizer/istring.h @@ -48,11 +48,11 @@ struct IString { return (size_t)hash; } - class CStringHash : public std::hash<const char*> { + class CStringHash { public: size_t operator()(const char* str) const { return IString::hash_c(str); } }; - class CStringEqual : public std::equal_to<const char*> { + class CStringEqual { public: bool operator()(const char* x, const char* y) const { return strcmp(x, y) == 0; diff --git a/src/emscripten-optimizer/optimizer-shared.cpp b/src/emscripten-optimizer/optimizer-shared.cpp index d763dc17d..720ac858e 100644 --- a/src/emscripten-optimizer/optimizer-shared.cpp +++ b/src/emscripten-optimizer/optimizer-shared.cpp @@ -205,7 +205,8 @@ AsmSign detectSign(Ref node, IString minifiedFround) { if (op == TRSHIFT) { return ASM_UNSIGNED; } - } // fallthrough + [[fallthrough]]; + } case '|': case '&': case '^': |