Explicitly disable some level 4 warnings in Windows SDK headers
Some level 4 warnings are somehow not disabled by switching to level 1, so disable them explicitly. Closes #23716.
This commit is contained in:
parent
aef7df6c9f
commit
44e857c012
1 changed files with 12 additions and 0 deletions
|
|
@ -30,6 +30,18 @@
|
|||
// Disable any warnings inside Windows headers.
|
||||
#ifdef __VISUALC__
|
||||
#pragma warning(push, 1)
|
||||
|
||||
// Some warnings, which are disabled by default but could be enabled by the
|
||||
// application code before including wx headers, are somehow not disabled
|
||||
// even by switching to warning level 1, so disable them explicitly.
|
||||
|
||||
// expression before comma has no effect; expected expression with
|
||||
// side-effect
|
||||
#pragma warning(disable:4548)
|
||||
|
||||
// 'symbol' is not defined as a preprocessor macro, replacing with '0' for
|
||||
// 'directives'
|
||||
#pragma warning(disable:4668)
|
||||
#endif
|
||||
|
||||
// When the application wants to use <winsock2.h> (this is required for IPv6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue