Andre Smagin wrote in
 <[email protected]>:
 |On Fri, 21 Jan 2022 00:45:56 +0100
 |Steffen Nurpmeso <[email protected]> wrote:
 | 
 |> I found scan-build to generate a lot of false warnings, so much indeed
 |> that i stopped using it .. in summer 2017.
 |
 |You, and most others, (no sarcasm at all here) are much better
 |at C than I will ever be. I am not even at "amateur" level - more like
 |a part-time hobby. I mostly fiddle with text data compression for fun.
 |
 |For me, clang analyzer is more than helpful. It detects errors that
 |most of you, professional programmers, would never make. You probably
 |don't even realize the power of it, since you never make such
 |embarrassing mistakes while coding as I do. For me, every time there was
 |a warning from clang, it was fully warranted. Took me couple days in
 |some cases to figure out why, but it was always justified and I learned
 |a lot from it.
 |
 |I install clang from ports solely for the analyzer part. It would be
 |nice if it was included in base installation - some of us just want a
 |basic idiot-check tool available when trying to program things. But
 |ports installation works as well too.

I nonetheless think of overlaying to get rid of it again here.
This is hobby here .. they prefer that instead of cryptomining,
maybe.  I am pretty sure noone here uses all the utilities.
I personally enable a lot of compiler warnings, 'am not there with
clang's -Weverything, but lots of others.  Not much remains to do
if that works.  I find that Coverity that you scratched from my
message does a really good job out of the box, maybe scan-build is
better if you instrument the code like grazy, you know, all the
attributes that can be attached to lots of places to make the code
like C# or Rust.  Or so.  'Got the ashes to prove it.
(P.S.: my try was before the FreeBSD commit series with dead
assignments, 2022-01-14 22:18:04.)

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to