New Defects reported by Coverity Scan for ntpsec

Gary E. Miller gem at rellim.com
Tue Feb 7 03:13:56 UTC 2023


Yo Hal!

On Sun, 05 Feb 2023 20:01:13 -0800
Hal Murray <halmurray at sonic.net> wrote:

> > Sadly some compilers will always complain if there is no default.
> > So I always add a default.   
> 
> We turn on -Wswitch-default

I like it.

> I'd like to turn on -Wswitch-enum
> That generates a handful of warnings that I'm willing to fix.

I like it.
 
> But then Coverity will barf (DEADCODE) at all the defaults.

What purpose do they still have?

> I think I'm willing to fix them.  Is there any way to run Coverity
> without waiting for it to get around to scanning our code?

I think coverity grabs every commit, and does not wait long.

I think there is a way to force it too.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20230206/2e47b0a6/attachment.bin>


More information about the devel mailing list