Merge pull request #3365 from BonsaiAI/wrap-declarations-in-switch
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 19 Jan 2017 16:12:24 +0000 (08:12 -0800)
committerGitHub <noreply@github.com>
Thu, 19 Jan 2017 16:12:24 +0000 (08:12 -0800)
Fix syntax inside switch for Windows compilation

src/caffe/util/hdf5.cpp

index 7730e76..d255877 100644 (file)
@@ -29,10 +29,10 @@ void hdf5_load_nd_dataset_helper(
   CHECK_GE(status, 0) << "Failed to get dataset info for " << dataset_name_;
   switch (class_) {
   case H5T_FLOAT:
-    LOG_FIRST_N(INFO, 1) << "Datatype class: H5T_FLOAT";
+    { LOG_FIRST_N(INFO, 1) << "Datatype class: H5T_FLOAT"; }
     break;
   case H5T_INTEGER:
-    LOG_FIRST_N(INFO, 1) << "Datatype class: H5T_INTEGER";
+    { LOG_FIRST_N(INFO, 1) << "Datatype class: H5T_INTEGER"; }
     break;
   case H5T_TIME:
     LOG(FATAL) << "Unsupported datatype class: H5T_TIME";