File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,18 @@ def set_compiler_options(options):
151151 # function "public: virtual bool __thiscall
152152 # ClientHandler::OnProcessMessageReceived
153153 #
154+ # /wd4305 - disable warnnings such as this:
155+ #
156+ # warning C4305: '=' : truncation from 'int' to 'bool'
157+ # Code: > cdef public cpp_bool ExecutePythonCallback(...) except *:
158+ # > return True
159+ # Discussed on cython group error 4800 which is similar to this,
160+ # but there is no other way to fix this warning:
161+ # https://groups.google.com/d/topic/cython-users/X_X0lfIBCqo/discussion
162+ #
154163 # The above warning LNK4217 is caused by the warning below which occurs
155164 # when building the client_handler.lib static library:
156- extra_compile_args .extend (["/EHsc" ])
165+ extra_compile_args .extend (["/EHsc" , "/wd4305" ])
157166 extra_link_args .extend (["/ignore:4217" ])
158167
159168 if LINUX or MAC :
You can’t perform that action at this time.
0 commit comments