]> git.feebdaed.xyz Git - 0xmirror/dpdk.git/commitdiff
examples: enable format truncation warning
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 20 Nov 2025 16:22:02 +0000 (08:22 -0800)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 24 Nov 2025 16:16:50 +0000 (17:16 +0100)
There were several hidden bugs in examples because format
truncation warning was disabled.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
examples/meson.build

index 8e8968a1fa25e1a5057583d9b6f59630684efc79..25d9c88457f51f6e806b8dcb20564b3b5ab299b5 100644 (file)
@@ -78,10 +78,9 @@ else
     examples = get_option('examples').split(',')
     allow_skips = false # error out if we can't build a requested app
 endif
+
 default_cflags = machine_args
-if cc.has_argument('-Wno-format-truncation')
-    default_cflags += '-Wno-format-truncation'
-endif
+
 default_ldflags = dpdk_extra_ldflags
 if get_option('default_library') == 'static' and not is_windows
     default_ldflags += ['-Wl,--export-dynamic']