Skip to content

Commit

Permalink
[MSVC] Suppress warning C4805: 'operation' : unsafe mix of type 'type…
Browse files Browse the repository at this point in the history
…' and type 'type' in operation

https://bugs.webkit.org/show_bug.cgi?id=247024

Reviewed by Don Olmstead.

WinCairo EWS was failing to compile due to the following warning.

> WebCore\platform\graphics\angle\ANGLEUtilities.cpp(155): error C2220: the following warning is treated as an error
> WebCore\platform\graphics\angle\ANGLEUtilities.cpp(155): warning C4805: '==': unsafe mix of type 'GLboolean' and type 'bool' in operation

Other ports don't complain that. Suppress the warning C4805.

* Source/cmake/OptionsMSVC.cmake:

Canonical link: https://commits.webkit.org/255981@main
  • Loading branch information
fujii committed Oct 25, 2022
1 parent 8084f69 commit fbeb80e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/cmake/OptionsMSVC.cmake
Expand Up @@ -94,6 +94,9 @@ add_compile_options(
/wd4722 # 'function' : destructor never returns, potential memory leak
# https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4722

/wd4805 # 'operation' : unsafe mix of type 'type' and type 'type' in operation
# https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4805

/wd4838 # conversion from 'type_1' to 'type_2' requires a narrowing conversion
# https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4838

Expand Down

0 comments on commit fbeb80e

Please sign in to comment.