ref: 1295d0e59482d1dcb0d99d649c87bff7155e47b1
parent: 13d881766a56adf8d3530c268af4c074d106a56c
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Jan 8 00:44:32 EST 2025
-Wformat-truncation: clang vs gcc
--- a/meson.build
+++ b/meson.build
@@ -23,7 +23,6 @@
'-Werror=strict-aliasing',
'-Wformat=2',
'-Wformat-signedness',
- '-Wformat-truncation=2',
'-Wint-to-pointer-cast',
'-Wmissing-prototypes',
'-Wno-format-y2k',
@@ -100,6 +99,7 @@
if cc.get_id() == 'clang'
add_project_arguments(
'-D__wchar_t=__please_no_wchar_t_thank_you',
+ '-Wformat-truncation',
'-Wno-gnu-offsetof-extensions',
'-Wunused-const-variable',
language: 'c',
@@ -106,6 +106,7 @@
)
else
add_project_arguments(
+ '-Wformat-truncation=2',
'-Wlogical-op',
'-Wunused-const-variable=2',
'-Werror=lto-type-mismatch',