diff options
author | Nathan Froyd <froydnj@gmail.com> | 2018-01-25 13:40:29 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2018-01-25 10:40:29 -0800 |
commit | 4ef6655e887e4088b8faf0cf5857fd49edbcd498 (patch) | |
tree | ff974983eb02321b387fbce5c1677e58c4199eaa /test/example/cpp-threads.txt | |
parent | f9e49c05050723ee1be717d725e649a269f6807e (diff) | |
download | binaryen-4ef6655e887e4088b8faf0cf5857fd49edbcd498.tar.gz binaryen-4ef6655e887e4088b8faf0cf5857fd49edbcd498.tar.bz2 binaryen-4ef6655e887e4088b8faf0cf5857fd49edbcd498.zip |
address some MSVC warnings (#1386)
* fix unused variable warnings in wasm2asm.cpp
No need to give the bad_alloc exception a name when we do nothing with it.
* add appropriate casts for shift operands
MSVC complains about implicitly converting results from 32 bits to 64
bits here, so we might as well make it clear that we intended the 64-bit
shift to happen in the first place.
* disable C4722 on MSVC
We annotated Fatal::~Fatal with WASM_NORETURN, yet MSVC still warns, so
take the next step and silence the warning completely.
* don't warn about "deprecated" POSIX functions with MSVC
Non-Windows platforms don't have the names MSVC recommends using, and
everybody understands the POSIX names, so just silence the warning.
Diffstat (limited to 'test/example/cpp-threads.txt')
0 files changed, 0 insertions, 0 deletions