File 0002-build-suppress-Wformat-overflow-warning.patch of Package gr-fosphor

From da7cb637b8cc5dcece7d11df0d9b9387260d1c00 Mon Sep 17 00:00:00 2001
From: Mikhail Paulyshka <me@mixaill.net>
Date: Sat, 20 Dec 2025 18:49:24 +0300
Subject: [PATCH 2/2] build: suppress  -Wformat-overflow warning

---
 lib/fosphor/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/fosphor/Makefile b/lib/fosphor/Makefile
index 051afd4..2fbff19 100644
--- a/lib/fosphor/Makefile
+++ b/lib/fosphor/Makefile
@@ -1,6 +1,6 @@
 UNAME=$(shell uname)
 CC=gcc
-CFLAGS=-Wall -Werror -O2 `pkg-config freetype2 glfw3 libpng --cflags` -g
+CFLAGS=-Wall -Werror -O2 `pkg-config freetype2 glfw3 libpng --cflags` -g -Wno-error=format-overflow=
 LDLIBS=`pkg-config freetype2 glfw3 libpng --libs` -lm
 ifneq ($(AMDAPPSDKROOT), )
 CFLAGS+=-I$(AMDAPPSDKROOT)/include
-- 
2.52.0

openSUSE Build Service is sponsored by