Skip to content

Commit

Permalink
Suppress deprecation warnins for shuffle/swizzle in WASM
Browse files Browse the repository at this point in the history
The new macros are only available in LLVM13, which is way too new to be
practical to require.
  • Loading branch information
zeux committed Sep 17, 2021
1 parent 60e1ce6 commit 0b57092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vertexcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
#endif

#ifdef SIMD_WASM
#undef __DEPRECATED
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#include <wasm_simd128.h>
#endif

Expand Down
1 change: 1 addition & 0 deletions src/vertexfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#endif

#ifdef SIMD_WASM
#undef __DEPRECATED
#include <wasm_simd128.h>
#endif

Expand Down

0 comments on commit 0b57092

Please sign in to comment.