Quote:
Originally Posted by raconteur
Though I do agree with Sergei, I might have pointed out the specific error in the arguments and format specifier for printf.
...
|
Well, it's the case that I believe in "no pain, no gain". I.e. the person who had the problem should apply some effort to correct the mistake and to realize that the effort wasn't in vain.
From my very long career I know that achieving the state when developers around finally accept that they
can make and
do make mistakes, and that's why compilers and other tools that report developers' mistakes (especially the subtle ones) should be used is often much more difficult than solving technical problems.
So, my goal was to show the OP that compiler is smart and that the smartness should be utilized.
I always say that if compiler issues a warning, either the compiler or I am not right, but typically it's me who isn't right.
On the same note - however much I love Perl, I hate even more Perl users who don't use
Code:
use strict;
use warnings;
in their code.