mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-27 13:44:32 +03:00
Fix clang C++20 compilation issues
This commit is contained in:
parent
91550639bb
commit
532a7d7a9e
@ -85,7 +85,7 @@ CXXFLAGS += -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sig
|
|||||||
|
|
||||||
compiler := $(shell $(CXX) --version)
|
compiler := $(shell $(CXX) --version)
|
||||||
ifneq (,$(findstring clang,$(compiler)))
|
ifneq (,$(findstring clang,$(compiler)))
|
||||||
CXXFLAGS += -frelaxed-template-template-args
|
CXXFLAGS += -frelaxed-template-template-args -Wno-ambiguous-reversed-operator
|
||||||
else ifneq (,$(findstring g++,$(compiler)))
|
else ifneq (,$(findstring g++,$(compiler)))
|
||||||
CXXFLAGS += -Wno-init-list-lifetime
|
CXXFLAGS += -Wno-init-list-lifetime
|
||||||
endif
|
endif
|
||||||
|
@ -83,7 +83,7 @@ public:
|
|||||||
{ m_value %= other.m_value; return static_cast<RealType&>(*this); }
|
{ m_value %= other.m_value; return static_cast<RealType&>(*this); }
|
||||||
|
|
||||||
[[gnu::always_inline]]
|
[[gnu::always_inline]]
|
||||||
constexpr friend auto operator==(RealType lhs, RealType rhs)
|
constexpr friend bool operator==(RealType lhs, RealType rhs)
|
||||||
{ return lhs.m_value == rhs.m_value; }
|
{ return lhs.m_value == rhs.m_value; }
|
||||||
|
|
||||||
[[gnu::always_inline]]
|
[[gnu::always_inline]]
|
||||||
|
Loading…
Reference in New Issue
Block a user