From 07705c8b8a8650c499c74a2b365caf6bd0c7db2e Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Wed, 16 Oct 2019 17:13:28 -0300 Subject: [PATCH] lib: silence compiler warning in the gRPC plugin Signed-off-by: Renato Westphal --- lib/northbound_grpc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/northbound_grpc.cpp b/lib/northbound_grpc.cpp index 218cae4e74..089899368d 100644 --- a/lib/northbound_grpc.cpp +++ b/lib/northbound_grpc.cpp @@ -616,6 +616,11 @@ class NorthboundImpl final : public frr::Northbound::Service return LYD_JSON; case frr::XML: return LYD_XML; + default: + flog_err(EC_LIB_DEVELOPMENT, + "%s: unknown data encoding format (%u)", + __func__, encoding); + exit(1); } } -- 2.39.5