Description: Fix FTBFS with GCC 15: format-truncation warning promoted to error
 GCC 15 raises a -Werror=format-truncation diagnostic in
 dlt_system_journal_get_timestamp() of src/system/dlt-system-journal.c,
 where the "%s.%06" PRIu64 format appends a strftime realtime buffer and
 six microsecond digits that may theoretically exceed the target size.
 Downgrade the diagnostic to a warning, matching the existing approach used
 for the other gcc-15 warnings.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: other
Forwarded: not-needed
Last-Update: 2026-09-01

--- dlt-daemon-3.0.0.orig/CMakeLists.txt
+++ dlt-daemon-3.0.0/CMakeLists.txt
@@ -258,6 +258,7 @@ add_compile_options(
     -Wno-error=shift-count-overflow
     -Wno-error=sign-compare
     -Wno-error=discarded-qualifiers
+    -Wno-error=format-truncation
     -Werror
     -Wfatal-errors
     #-Wconversion
