How to debug uninitialized variables in release mode in C ++.
Uninitialized variables are an unpleasant search error. Some static checkers will probably be able to find your uninitialized variable. There are open source. You can also get a trial version of the commercial version.
There is a warning there. You should always try to compile cleanly at the highest level of warning. For VC ++, this is level 4. Disable certain annoying warnings selectively.
, , , V++ /RTCu ( /RTCsu), strong > .
/RTCu
/RTCsu
, ( ) .
, , , / ctors, .
- int, , ( , , ).
int
, , , . , . : , , / .
V++, gcc -Wuninitialized, . : http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
-Wuninitialized
: -Wuninitialized -Wall, .. , . , -Werror , .
-Wall
-Werror
, , , , .
. , .
. - , , Visual Studio.
- .
- CPPcheck (open-source) PC-Lint (), . .
Source: https://habr.com/ru/post/1765556/More articles:JavaScript / jQuery: change monitor to element? - javascriptHow to detect error panel in matlab - matlabSummarizing inside a Django template - pythonIncluding a decimal number in the latex section number - latexUse custom font - iphoneHow to find out what items are listed in an enumeration? - genericsExtend Url Route to apply Url Encoding for each parameter - asp.net-mvcConvert list to string to populate web page in JSP - javaAnother method for repeating an enumeration is enumsНастройка свойств выравнивания TabControl. С# Winforms - c#All Articles