Browse Source

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

JINMEI Tatuya 12 years ago
parent
commit
ea8082a263
1 changed files with 3 additions and 0 deletions
  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");
     }
 }