summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-01-22 21:14:56 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-01-23 00:55:20 +0200
commit989bbfb35020c593a5b6412f36507d499d4dcb3f (patch)
treece07f29e9b1d2a5ed2198bca8b2a190934c2e6af
parentb61dc1b964f86574f5f1397d2623b01b99e3237d (diff)
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.
-rw-r--r--cppu/source/uno/data.cxx13
1 files changed, 0 insertions, 13 deletions
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
{