D
David Rasmussen
Mark said:And I agree with August that lint is incorrect - lint should not be
complaining about legal constructs.
Then you don't understand what lint is about.
/David
Mark said:And I agree with August that lint is incorrect - lint should not be
complaining about legal constructs.
Mark McIntyre said:And I agree with August that lint is incorrect - lint should not be
complaining about legal constructs.
And I agree with August that lint is incorrect - lint should not be
complaining about legal constructs.
Mark said:.... snip ...
And I agree with August that lint is incorrect - lint should not
be complaining about legal constructs.
Then you don't understand what lint is about.
I think you're confusing the roles of lint and the compiler.
It is not. It is warning about possibly suspicious constructs,
which is a different world.
Mark said:I don't. I don't espcially care to argue about it but I'd just make
the point that a tool that ostensibly is intended to help clean up
your code, but which fills stdout with reams of inaccurate or
misleading error messages, is worse than useless.
Mark said:???
I can understand complaining about
if(x=11)
but whats suspicious about
if(x)
lint and lint-like programs are annoying to the point of uselessness.
They consistently warn about things that /are not wrong/, /never have
been wrong/, and /are not even dangerous/. There's one example that
sticks out in my mind:
int x = 1;
/* code */
if (x) return y;
will always generate a warning with a lint-like program. Why? Because
x is not a `boolean' in lint's view of the world, even though the
relevant standards expressly and specifically allow scalars (such as x)
to function in a boolean context. lint is wrong, the standards are right
(axiomatically), and lint hasn't been fixed.
Mark said:???
I can understand complaining about
if(x=11)
but whats suspicious about
if(x)
lilburne said:lint ... | filter_out_the_error_i_dont_like
Richard said:s/error/dozens_of_errors, by which time your command line will be a
couple of dozen screen lines long.
s/error/dozens_of_errors, by which time your command line will be a
couple of dozen screen lines long.
Richard
Write a script to do the filtering. You could call it
'filter_out_the_errors_i_dont_like'! Perl would be a good choice.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.