[PATCH v13 17/17] lib: enable format overflow warnings

Stephen Hemminger
2026-01-27T16:35:01Z

Enable compiler checking of format overflow

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
lib/meson.build | 4 ----
1 file changed, 4 deletions(-)

diff --git a/lib/meson.build b/lib/meson.build
index c8f4270868..8f5cfd28a5 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -113,10 +113,6 @@ default_cflags = machine_args
default_cflags += ['-DALLOW_EXPERIMENTAL_API']
default_cflags += ['-DALLOW_INTERNAL_API']

-if cc.has_argument('-Wno-format-truncation')
- default_cflags += '-Wno-format-truncation'
-endif
-
foreach l:libraries
build = true
reason = '<unknown reason>' # set if build == false to explain why
--
2.51.0