From: VMware, Inc <> Date: Wed, 18 Sep 2013 03:40:51 +0000 (-0700) Subject: Get rid of ASSERT_LENGTH. X-Git-Tag: 2013.09.16-1328054~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c297a757b88435ca43bfe0dcf71b97c5d8a3e41a;p=thirdparty%2Fopen-vm-tools.git Get rid of ASSERT_LENGTH. It was used way back in ancient times in the binary translator but today no more uses remain. So let us remove this global Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/include/vm_assert.h b/open-vm-tools/lib/include/vm_assert.h index 619050a01..be8c6d420 100644 --- a/open-vm-tools/lib/include/vm_assert.h +++ b/open-vm-tools/lib/include/vm_assert.h @@ -315,9 +315,6 @@ do { \ #undef ASSERT_BUG_DEBUGONLY #define ASSERT_BUG_DEBUGONLY(bug, cond) ((void) 0) -#undef ASSERT_LENGTH -#define ASSERT_LENGTH(real, expected) ((void) 0) - /* * Expand NOT_REACHED() as appropriate for each situation. * @@ -400,8 +397,8 @@ do { \ */ #define MY_ASSERTS(name, assertions) \ - static INLINE void name(void) { \ - assertions \ + static INLINE void name(void) { \ + assertions \ } #ifdef __cplusplus