Parcourir la source

[2480] added the default case to switch to avoid build error for some compilers

JINMEI Tatuya il y a 12 ans
Parent
commit
ea8082a263
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/bin/auth/tests/query_unittest.cc

+ 3 - 0
src/bin/auth/tests/query_unittest.cc

@@ -807,6 +807,9 @@ createDataSrcClientList(DataSrcType type, DataSourceClient& client) {
                                    "/example-base.sqlite3") +
                             "\"}}]"), true);
          return (list);
+    default:
+        isc_throw(isc::Unexpected,
+                  "Unexpected data source type, should be a bug in test code");
     }
 }