Description: Fix FTBFS with GCC 15: discard 'const' qualifier promoted to error
 Gcc 15's strrchr() returns a 'const char *' when given a 'const char *'
 argument, so the -Werror=discarded-qualifiers diagnostic is raised when its
 result is assigned to a 'char *' inside get_filename_ext(). Downgrade the
 diagnostic to a warning, matching the existing no-errors.patch 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
@@ -257,6 +257,7 @@ add_compile_options(
     -Wno-error=format=
     -Wno-error=shift-count-overflow
     -Wno-error=sign-compare
+    -Wno-error=discarded-qualifiers
     -Werror
     -Wfatal-errors
     #-Wconversion
