From 989bbfb35020c593a5b6412f36507d499d4dcb3f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 22 Jan 2011 21:14:56 +0200 Subject: Remove pointless debugging output We do print out a message if struct size verifications fail. That is enough. No point in printing out the same > sizeof(AlignSize_Impl) = 16 > sizeof(M) = 8 > sizeof(N) = 12 etc messages every time a cppu-using program is run and cppu has been built for debugging. --- cppu/source/uno/data.cxx | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'cppu/source/uno/data.cxx') diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx index 240041f09d0f..41f5ae4615cc 100644 --- a/cppu/source/uno/data.cxx +++ b/cppu/source/uno/data.cxx @@ -373,21 +373,8 @@ sal_Bool SAL_CALL uno_type_isAssignableFromData( #define BINTEST_VERIFYOFFSET( s, m, n ) \ if (OFFSET_OF(s, m) != n) { fprintf( stderr, "### OFFSET_OF(" #s ", " #m ") = %d instead of expected %d!!!\n", OFFSET_OF(s, m), n ); abort(); } -#if OSL_DEBUG_LEVEL > 1 -#if defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD)) && \ - (defined(INTEL) || defined(POWERPC) || defined(X86_64) || defined(S390)) -#define BINTEST_VERIFYSIZE( s, n ) \ - fprintf( stderr, "> sizeof(" #s ") = %d; __alignof__ (" #s ") = %d\n", sizeof(s), __alignof__ (s) ); \ - if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", sizeof(s), n ); abort(); } -#else // ! GNUC #define BINTEST_VERIFYSIZE( s, n ) \ - fprintf( stderr, "> sizeof(" #s ") = %d\n", sizeof(s) ); \ if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", sizeof(s), n ); abort(); } -#endif -#else // ! OSL_DEBUG_LEVEL -#define BINTEST_VERIFYSIZE( s, n ) \ - if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", sizeof(s), n ); abort(); } -#endif struct C1 { -- cgit v1.2.1