From 4abf5a53322c2ed4536bf0037538da9e5b4be805 Mon Sep 17 00:00:00 2001 From: Patrick Scheibe Date: Fri, 10 Apr 2020 20:56:02 +0200 Subject: [PATCH] Fix missing return statement in lambda --- peglib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/peglib.h b/peglib.h index cae4d6d..d59f974 100644 --- a/peglib.h +++ b/peglib.h @@ -3138,6 +3138,8 @@ private: case Loop::Type::oom: return oom(ope); case Loop::Type::rep: // Regex-like repetition return rep(ope, loop.range.first, loop.range.second); + default: + throw std::runtime_error("Unhandled enum constant"); } } };