From 17b85bfff60c5a23da0239c9227cbea1683effa0 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 18 Jan 2023 19:23:33 +0100 Subject: [PATCH] Remove some warning. --- lib/src/main/cpp/libzim/entry_iterator.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/main/cpp/libzim/entry_iterator.cpp b/lib/src/main/cpp/libzim/entry_iterator.cpp index 0fcf4d5..9f19d56 100644 --- a/lib/src/main/cpp/libzim/entry_iterator.cpp +++ b/lib/src/main/cpp/libzim/entry_iterator.cpp @@ -83,6 +83,9 @@ METHOD0(jboolean, hasNext) { auto end = getPtr(env, thisObj, "nativeHandleEnd"); return next == *end; } + default: + // unreachable!() + return false; } } @@ -103,6 +106,9 @@ METHOD0(jobject, next) { zim::Entry entry = **GET_PTR(EFFICIENT_NATIVE_TYPE); return BUILD_WRAPPER("org/kiwix/libzim/Entry", entry); } + default: + // unreachable!() + return nullptr; } }