Use no-switch-default on clang
clang-18 improves this check so that we can actually use it. Enable it
and fix all violations.
Change-Id: Ibe4ce19c423d447a4cbe593d1abba948362426af
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/include/multipart_parser.hpp b/include/multipart_parser.hpp
index 9adf564..924ee8d 100644
--- a/include/multipart_parser.hpp
+++ b/include/multipart_parser.hpp
@@ -209,6 +209,8 @@
}
case State::END:
break;
+ default:
+ return ParserError::ERROR_UNEXPECTED_END_OF_INPUT;
}
}