Question:

Problem of Lint in VC5

by  |  earlier

0 LIKES UnLike

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:

   Report
Please Login to view 3 answers to this question
You're reading: Problem of Lint in VC5

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions