Kaydet (Commit) 96ef305d authored tarafından Michael Stahl's avatar Michael Stahl

mdds: work around warning from MSVC which is a little too smart

Change-Id: I26df48a24dbdd6e4363f5c08d87b6583a56da00e
üst 79b0046b
...@@ -16,6 +16,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,mdds,3)) ...@@ -16,6 +16,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,mdds,3))
$(eval $(call gb_UnpackedTarball_add_patches,mdds,\ $(eval $(call gb_UnpackedTarball_add_patches,mdds,\
mdds/mdds_0.6.0.patch \ mdds/mdds_0.6.0.patch \
mdds/0001-Workaround-for-gcc-bug.patch \ mdds/0001-Workaround-for-gcc-bug.patch \
mdds/mdds_0.7.0_unreachable_warning.patch.1 \
)) ))
$(eval $(call gb_UnpackedTarball_mark_output_files,mdds,\ $(eval $(call gb_UnpackedTarball_mark_output_files,mdds,\
......
diff -ru mdds.old/include/mdds/multi_type_vector_def.inl mdds/include/mdds/multi_type_vector_def.inl
--- mdds.old/include/mdds/multi_type_vector_def.inl 2013-03-12 21:18:16.340506918 +0100
+++ mdds/include/mdds/multi_type_vector_def.inl 2013-03-14 17:56:07.275475086 +0100
@@ -652,7 +652,9 @@
}
}
+#ifndef _MSC_VER // MSVC is too smart and warns about unreachable code
assert(!"this code path should never be reached!");
+#endif
}
// This empty block is right below a non-empty block.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment