[Tizen] Fix build error for Clang-16+ (#399)
This commit is a mix of upstream commits specific to tizen unified.
* [release/7.0] Suppress clang-16 warnings (backport #81573) (#84444)
Fix DBI loading problem on Linux (#82461)
* Use logical and for boolean operation in bstr (#67858)
This seems like a mistake and recent versions of clang even complain
about it:
/runtime/src/coreclr/palrt/bstr.cpp:50:13: error: use of bitwise '&' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
if (SUCCEEDED(ULongMult(cchSize, sizeof(WCHAR), &temp)) &
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&&
/runtime/src/coreclr/pal/inc/pal.h:5144:27: note: expanded from macro 'SUCCEEDED'
#define SUCCEEDED(Status) ((HRESULT)(Status) >= 0)
^
/runtime/src/coreclr/palrt/bstr.cpp:50:13: note: cast one or both operands to int to silence this warning
/runtime/src/coreclr/pal/inc/pal.h:5144:27: note: expanded from macro 'SUCCEEDED'
#define SUCCEEDED(Status) ((HRESULT)(Status) >= 0)
^
1 error generated.
* Fix Wunqualified-std-cast-call in singlefilehost (#72305)
Modified by hand due to mingling w/ other commits
---------
Co-authored-by: Antoine Martin <dev@ayakael.net>
Co-authored-by: Omair Majid <omajid@redhat.com>