680 | | || C4996||'putenv': The POSIX name for this item is deprecated.||Many other messages about using secure versions.Unless you believe that the 'secure' versions are useful, suppress.||# pragma warning(disable: 4996) // '' was declared deprecated.|| |
681 | | |
682 | | ||C4127|| conditional expression is constant||Very common and many believe unhelpful, but a few find it informative, so do not suppress globally. Even while(true) can trigger this! Suppress.|| # pragma warning(disable: 4127) // conditional expression is constant.|| |
683 | | |
684 | | ||C4100|| unreferenced formal parameter||Either surround the parameter with C comments, for example: int */ my_variable */)or just delete if the variable name is uninformative.|||| |
685 | | |
686 | | || C4701|| local variable may be used without having been initialized||Best is to recode to avoid the message, but if you are '''very''' sure the message is misleading, suppress.|| # pragma warning(disable: 4701) // local variable may be used without having been initialized|| |
687 | | |
688 | | || c4511|| copy constructor could not be generated||This can almost certainly be suppressed.|| # pragma warning(disable: 4511) // copy constructor could not be generated|| |
689 | | |
690 | | || C4180|| qualifier applied to function type has no meaning; ignored||This can always be suppressed - but check that you didn't mean to put the const somewhere else.||# pragma warning(disable: 4180) // qualifier applied to function type has no meaning; ignored|| |
691 | | |
692 | | || C4702|| unreachable code||Be very cautious about suppressing this, but use of macros may make this troublesome, so suppress with care, and always locally.|| #pragma warning(disable: 4702) // unreachable code|| |
693 | | |
694 | | || C4189|| local variable is initialized but not referenced||This probably indicates a redundant variable and assignment, so probably remove it.If you sure it is required (or has negligible cost for some documentation benefit), suppress.|||| |
695 | | |
696 | | || C4224|| nonstandard extension used : formal parameter 'arg' was previously defined as a type.||This will bite users who try to compile with Microsoft extensions disabled. So is most undesirable, but may be a major nuisance to change the names in code.However fixing is the Right Thing, but meanwhile suppressing may be helpful.|| # pragma warning(disable: 4224) // formal parameter 'arg' was previously defined as a type.|| |
697 | | |
698 | | || C4510|| default constructor could not be generated||Suppress.||# pragma warning(disable: 4510)|| |
699 | | |
700 | | || C4800|| int' : forcing value to bool 'true' or 'false'||Suppress.||# pragma warning(disable: 4800) // int' : forcing value to bool 'true' or 'false' |
701 | | |
702 | | || C4244 || // Conversion: possible loss of data.||Fix, for example changing type or using static_cast is best, suppress with much caution.|| # pragma warning(disable:4244) // Conversion: possible loss of data.|| |
703 | | |
704 | | || C4324|| structure was padded due to __declspec(align())||Suppress||#pragma warning(disable:4324) // structure was padded due to __declspec(align())|| |
| 699 | ||c4511|| copy constructor could not be generated||This can almost certainly be suppressed.|| # pragma warning(disable: 4511) // copy constructor could not be generated|| |
| 700 | |
| 701 | ||C4701|| local variable may be used without having been initialized||Best is to recode to avoid the message, but if you are '''very''' sure the message is misleading, suppress.|| # pragma warning(disable: 4701) // local variable may be used without having been initialized|| |
| 702 | |
| 703 | ||C4702|| unreachable code||Be very cautious about suppressing this, but use of macros may make this troublesome, so suppress with care, and always locally.|| #pragma warning(disable: 4702) // unreachable code|| |
| 704 | |
| 705 | ||C4189|| local variable is initialized but not referenced||This probably indicates a redundant variable and assignment, so probably remove it. If you are sure it is required (or has negligible cost for some documentation benefit), suppress.|||| |
| 706 | |
| 707 | ||C4224|| nonstandard extension used : formal parameter 'arg' was previously defined as a type.||This will bite users who try to compile with Microsoft extensions disabled. So is most undesirable, but may be a major nuisance to change the names in code.However fixing is the Right Thing, but meanwhile suppressing may be helpful.|| # pragma warning(disable: 4224) // formal parameter 'arg' was previously defined as a type.|| |
| 708 | |
| 709 | ||C4244 || // Conversion: possible loss of data.||Fix, for example changing type or using static_cast is best, suppress with much caution.|| # pragma warning(disable:4244) // Conversion: possible loss of data.|| |
| 710 | |
| 711 | ||C4324|| structure was padded due to __declspec(align())||Suppress||#pragma warning(disable:4324) // structure was padded due to __declspec(align())|| |
| 712 | |
| 713 | ||C4510|| default constructor could not be generated||Suppress.||# pragma warning(disable: 4510) // default constructor could not be generated|| |
| 714 | |
| 715 | ||C4800|| int' : forcing value to bool 'true' or 'false'||Suppress.||# pragma warning(disable: 4800) // int' : forcing value to bool 'true' or 'false' |
| 716 | |
| 717 | ||C4996||'putenv': The POSIX name for this item is deprecated.||Many other messages about using secure versions.Unless you believe that the 'secure' versions are useful, suppress.||# pragma warning(disable: 4996) // '' was declared deprecated.|| |
| 718 | |