hi, I need some help with my lint in vc5, see the code below.// program fragment class ttt { public: int a;main() { class ttt *p; p = new ttt; if( p == 0) { p- } else { p- } delete p ; return 0;My lint, Gimpel 7.5ab (with co-msc50.lnt lib-w32.lnt lib-mfc.lnt ), decides that there are all kinds the 'if' always be true . PC-lint for C/C++ (NT) Ver. 7.50ab, Copyright Gimpel Software 1985-2000--- Module: C:\temp\test.cpp if( p == 0) C:\temp\test.cpp(19): error 774: (Info -- Boolean within 'if' always evaluates to False) VC5 compiles my code with no warnings.Does anyone know what wrong in the code and how to get Lint not to hate this?Thanks, Rubens
Tags: