[Build] Fix latest MSVC and CLang compiler errors (#1008)

* Explicit cast specification

* Explicit cast specification

* Suppress -Wno-tautological-compare in Clang 10 and above

https://reviews.llvm.org/rG8b0d14a8f0cc085afa2a9c86c237da81c74517fc

* Explicit cast specification

* Add HAVE_STDINT_H compiler flag

* Explicit casting mechanism type specification

* typo
This commit is contained in:
Harsha Raghu
2021-10-08 05:41:49 +05:30
committed by GitHub
parent cac80584a0
commit c61735130d
11 changed files with 35 additions and 5 deletions

View File

@ -231,6 +231,8 @@ class AMXXConfig(object):
cxx.cflags += ['-Wno-address-of-packed-member']
if have_clang:
cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch']
if cxx.version >= '10.0':
cxx.cxxflags += ['-Wno-tautological-compare']
if cxx.version >= 'apple-clang-10.0':
cxx.cxxflags += [
'-Wno-inconsistent-missing-override',