Skip to contentSkip to conversation

Lots and lots of potential bugs detected by GCC 14 analyzer

PATCH Stephen Hemminger 1 participant 1 message Nov 12, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

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.

config/meson.build +2 -0
index 5095d2fbcb..43c2a6d97b 100644
@@ -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 $