From bf01c3dccfe3b400e97b93eae0f772957ee56720 Mon Sep 17 00:00:00 2001
From: Fiona Klute <fiona.klute@gmx.de>
Date: Sat, 9 Mar 2024 13:24:00 +0100
Subject: [PATCH 051/463] 8723cs: Fix building with LLVM

Clang doesn't support -Wno-stringop-overread.

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
---
 drivers/staging/rtl8723cs/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723cs/Makefile b/drivers/staging/rtl8723cs/Makefile
index 9e8ca7cefe1dd..873898ffcb7e6 100644
--- a/drivers/staging/rtl8723cs/Makefile
+++ b/drivers/staging/rtl8723cs/Makefile
@@ -9,7 +9,10 @@ EXTRA_CFLAGS += -O2
 #EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
 
 EXTRA_CFLAGS += -Wno-unused-variable
-EXTRA_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations -Wno-stringop-overread -Wno-overflow -Wno-address
+EXTRA_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations -Wno-overflow -Wno-address
+ifeq ($(LLVM),)
+EXTRA_CFLAGS += -Wno-stringop-overread
+endif
 #EXTRA_CFLAGS += -Wno-unused-value
 #EXTRA_CFLAGS += -Wno-unused-label
 #EXTRA_CFLAGS += -Wno-unused-parameter
-- 
2.46.0

