Description: Exempt discarded-qualifiers from -Werror
 On newer glibc, strrchr() is const-correct and returns const char* for a
 const char* input, so assigning it to char* (e.g. in sim_card_name)
 triggers -Werror=discarded-qualifiers and breaks the build on amd64/arm64.
 Downgrade discarded-qualifiers to a warning in src/Makefile CFLAGS, the same
 way deprecated-declarations is already handled, so this warning class does
 not fail the build in batches.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-08-27

--- alsa-scarlett-gui-0.5.1.orig/src/Makefile
+++ alsa-scarlett-gui-0.5.1/src/Makefile
@@ -17,6 +17,7 @@ CFLAGS += -Wall -Werror
 CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
 CFLAGS += -DVERSION=\"$(VERSION)\"
 CFLAGS += -Wno-error=deprecated-declarations
+CFLAGS += -Wno-error=discarded-qualifiers
 
 PKG_CONFIG=pkg-config
 
