summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-11-21 20:06:14 +1100
committerMaxime Coste <mawww@kakoune.org>2021-11-21 20:06:14 +1100
commit532a7d7a9e0336727ec853c9caa2025ef37e8735 (patch)
tree2912a9b84fb300587952eeb7d070e24fa1f58704 /src
parent91550639bbbd20c92957b83abfbb3ec4c43b3ab4 (diff)
Fix clang C++20 compilation issues
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
-rw-r--r--src/units.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index a8a34f96..63bf1833 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -85,7 +85,7 @@ CXXFLAGS += -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sig
compiler := $(shell $(CXX) --version)
ifneq (,$(findstring clang,$(compiler)))
- CXXFLAGS += -frelaxed-template-template-args
+ CXXFLAGS += -frelaxed-template-template-args -Wno-ambiguous-reversed-operator
else ifneq (,$(findstring g++,$(compiler)))
CXXFLAGS += -Wno-init-list-lifetime
endif
diff --git a/src/units.hh b/src/units.hh
index c7c9b8e6..ae025cb7 100644
--- a/src/units.hh
+++ b/src/units.hh
@@ -83,7 +83,7 @@ public:
{ m_value %= other.m_value; return static_cast<RealType&>(*this); }
[[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; }
[[gnu::always_inline]]