Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % cat test1.cpp
- class myClass
- {
- public:
- myClass()
- {
- #ifdef USE_UNKNOWN_FUNC
- boo();
- #endif
- }
- private:
- uint32_t myvar;
- };
- % cppcheck --enable=warning test1.cpp
- Checking test1.cpp...
- [test1.cpp:4]: (warning) Member variable 'myClass::myvar' is not initialized in the constructor.
- Checking test1.cpp: USE_UNKNOWN_FUNC...
- % cppcheck --version
- Cppcheck 1.72
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement