Skip to content

Commit 4c32815

Browse files
committed
add comments to compiler warning flags for clarity
1 parent d035057 commit 4c32815

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

cmake/CompilerWarnings.cmake

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,28 @@ function(set_compiler_warnings target)
2424
/utf-8
2525
/diagnostics:caret
2626
/sdl
27-
/w14165
28-
/w44242
29-
/w44254
30-
/w44263
31-
/w34265
32-
/w34287
33-
/w44296
34-
/w44388
35-
/w44464
36-
/w14545
37-
/w14546
38-
/w14547
39-
/w14549
40-
/w14555
41-
/w34619
42-
/w34640
43-
/w24826
44-
/w14905
45-
/w14906
46-
/w14928
47-
/w45038
4827
/W4
28+
/w14165 # 'HRESULT' is being converted to 'bool'; are you sure this is what you want?
29+
/w44242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data
30+
/w44254 # 'operator': conversion from 'type1':'field_bits' to 'type2':'field_bits', possible loss of data
31+
/w44263 # 'function' : member function does not override any base class virtual member function
32+
/w34265 # 'classname': class has virtual functions, but its non-trivial destructor is not virtual; instances of this class may not be destructed correctly
33+
/w34287 # 'operator' : unsigned/negative constant mismatch
34+
/w44296 # 'operator' : expression is always false
35+
/w44388 # 'token' : signed/unsigned mismatch
36+
/w44464 # relative include path contains '..'
37+
/w14545 # expression before comma evaluates to a function which is missing an argument list
38+
/w14546 # function call before comma missing argument list
39+
/w14547 # 'operator' : operator before comma has no effect; expected operator with side-effect
40+
/w14549 # 'operator' : operator before comma has no effect; did you intend 'operator'?
41+
/w14555 # expression has no effect; expected expression with side-effect
42+
/w34619 # #pragma warning : there is no warning number 'number'
43+
/w34640 # 'instance' : construction of local static object is not thread-safe
44+
/w24826 # Conversion from 'type' to 'type' is sign-extended. This may cause unexpected runtime behavior.
45+
/w14905 # wide string literal cast to 'LPSTR'
46+
/w14906 # string literal cast to 'LPWSTR'
47+
/w14928 # illegal copy-initialization; more than one user-defined conversion has been implicitly applied
48+
/w45038 # data member 'member1' will be initialized after data member 'member2', data member 'member' will be initialized after base class 'base_class'
4949
/permissive-
5050
/volatile:iso
5151
/Zc:inline

0 commit comments

Comments
 (0)