Skip to content

Instantly share code, notes, and snippets.

@Cleroth
Created August 16, 2018 11:26
Show Gist options
  • Save Cleroth/aac8a45613c6fa1b1f16b2bf681810de to your computer and use it in GitHub Desktop.
Save Cleroth/aac8a45613c6fa1b1f16b2bf681810de to your computer and use it in GitHub Desktop.
VS warnings
// level 1
#pragma warning (default : 4546) // function call before comma missing argument list
#pragma warning (default : 4547) // operator before comma has no effect; expected operator with side-effect
#pragma warning (default : 4548) // expression before comma has no effect; expected expression with side-effect
#pragma warning (default : 4549) // operator before comma has no effect; did you intend 'operator'?
#pragma warning (default : 4555) // expression has no effect; expected expression with side-effect
#pragma warning (default : 4906) // string literal cast to 'LPWSTR'
#pragma warning (default : 4946) // Do not use reinterpret_cast to cast between related types. Use static_cast instead, or for polymorphic types, use dynamic_cast.
// level 4
//#pragma warning (default : 4242) // conversion from 'type1' to 'type2', possible loss of data
//#pragma warning (default : 4254) // conversion from 'type1' to 'type2', possible loss of data
#pragma warning (default : 4289) // nonstandard extension used : 'var' : loop control variable declared in the for-loop is used outside the for-loop scope
#pragma warning (default : 4296) // expression is always false
//#pragma warning (default : 4365) // conversion from 'type_1' to 'type_2', signed/unsigned mismatch
#pragma warning (default : 4388) // signed/unsigned mismatch
#pragma warning (default : 4574) // 'identifier' is defined to be '0': did you mean to use '#if identifier'?
#pragma warning (default : 4582) // 'type': constructor is not implicitly called
#pragma warning (default : 4583) // 'type': destructor is not implicitly called
#pragma warning (default : 4837) // trigraph detected: '??character' replaced by 'character'
#pragma warning (default : 4986) // exception specification does not match previous declaration
#pragma warning (default : 5024) // move constructor was implicitly defined as deleted
#pragma warning (default : 5026) // move constructor was implicitly defined as deleted
#pragma warning (default : 5025) // move assignment operator was implicitly defined as deleted
#pragma warning (default : 5027) // move assignment operator was implicitly defined as deleted
#pragma warning (default : 5038) // data member 'member1' will be initialized after data member 'member2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment