All of lore.kernel.org
 help / color / mirror / Atom feed
* Lots and lots of potential bugs detected by GCC 14 analyzer
@ 2024-11-10 23:16 Stephen Hemminger
  0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2024-11-10 23:16 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 751 bytes --]

If -fanalyzer is added to config/meson.build than compiler finds lots of potential
problems. (Think of it as free version of Coverity).

The output is quite verbose.
Is it worth putting large N of new bugs into bugzilla or maybe maintainers could take a look.

Full build output is 12M so attaching it.


Quick hack to enable is.

diff --git a/config/meson.build b/config/meson.build
index 5095d2fbcb..43c2a6d97b 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -308,6 +308,8 @@ endif
 # -Wall is added by default at warning level 1, and -Wextra
 # at warning level 2 (DPDK default)
 warning_flags = [
+    '-fanalyzer',
+
         # additional warnings in alphabetical order
         '-Wcast-qual',
         '-Wdeprecated',
~/DPDK/main $ 

[-- Attachment #2: build.out.gz --]
[-- Type: application/gzip, Size: 843401 bytes --]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-12  9:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-10 23:16 Lots and lots of potential bugs detected by GCC 14 analyzer Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.