hi,

gcc 11 (delivered with fedora rawhide) introduces indentation check.
it is totally harmless.

this patch suppresses it.
it resolves #998
might be backported to all supported branches.


Ilya
From b8a50ca2e7a66652833a17f6996f7320fb9d175f Mon Sep 17 00:00:00 2001
From: Ilya Shipitsin <[email protected]>
Date: Thu, 17 Dec 2020 12:14:15 +0500
Subject: [PATCH 1/2] BUILD: suppress gcc-11 warning regarding misleading
 indentation

---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 95d52cac7..9bf521cf0 100644
--- a/Makefile
+++ b/Makefile
@@ -195,6 +195,7 @@ SPEC_CFLAGS += $(call cc-nowarn,clobbered)
 SPEC_CFLAGS += $(call cc-nowarn,missing-field-initializers)
 SPEC_CFLAGS += $(call cc-nowarn,cast-function-type)
 SPEC_CFLAGS += $(call cc-nowarn,string-plus-int)
+SPEC_CFLAGS += $(call cc-nowarn,misleading-indentation)
 SPEC_CFLAGS += $(call cc-opt,-Wtype-limits)
 SPEC_CFLAGS += $(call cc-opt,-Wshift-negative-value)
 SPEC_CFLAGS += $(call cc-opt,-Wshift-overflow=2)
-- 
2.28.0

Reply via email to