office-gobmx/mdds/mdds_0.7.0_unreachable_warning.patch.1
Michael Stahl 96ef305d32 mdds: work around warning from MSVC which is a little too smart
Change-Id: I26df48a24dbdd6e4363f5c08d87b6583a56da00e
2013-03-14 18:04:30 +01:00

13 lines
530 B
Groff

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.