1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-11 13:00:41 +03:00

Add -Wno-stringop-overflow for g++

g++ 13.x is confused by the reinterpret_cast in Kakoune's memory.hh
allocator. Use -Wno-stringop-overflow to silence a large number of
verbose false alarms.
This commit is contained in:
Chris Webb 2023-12-10 10:26:37 +00:00
parent a90d1d33f7
commit ee8c74c724

View File

@ -87,7 +87,7 @@ compiler := $(shell $(CXX) --version)
ifneq (,$(findstring clang,$(compiler)))
CXXFLAGS += -frelaxed-template-template-args -Wno-ambiguous-reversed-operator
else ifneq (,$(findstring g++,$(compiler)))
CXXFLAGS += -Wno-init-list-lifetime
CXXFLAGS += -Wno-init-list-lifetime -Wno-stringop-overflow
endif
all : kak