]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: silence compiler warning in the gRPC plugin
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 16 Oct 2019 20:13:28 +0000 (17:13 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 16 Oct 2019 20:13:28 +0000 (17:13 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound_grpc.cpp

index 218cae4e74cf10b733adcd3d435663d648f9d24f..089899368d59bc8d72f860537cb1b5f774cdb334 100644 (file)
@@ -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);
                }
        }