diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-21 17:50:33 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-21 17:52:10 +0100 |
commit | f085b0ab07edbf812a179a5679487386834fe38a (patch) | |
tree | d7c1f8b6910d73539b3c33a55d4e6918eb798aec /bridges/source/cpp_uno/gcc3_linux_sparc | |
parent | 42ff131336b79ffb5d6a498227bc4dbcfb7bcbee (diff) |
bridges: oops, static_assert requires 2nd string parameter
Change-Id: I09b461473f514f2b7c4f256aedbe129372bae9e3
Diffstat (limited to 'bridges/source/cpp_uno/gcc3_linux_sparc')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx | 4 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx index 53d71f93a1fc..fb475cf46d32 100644 --- a/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx @@ -96,7 +96,7 @@ static typelib_TypeClass cpp2uno_call( { if ((reinterpret_cast< long >(pCppStack) & 7) != 0) { - static_assert(sizeof (double) == sizeof (sal_Int64)); + static_assert(sizeof (double) == sizeof (sal_Int64), "boo"); void * pDest = alloca( sizeof (sal_Int64) ); *reinterpret_cast< sal_Int32 * >(pDest) = *reinterpret_cast< sal_Int32 const * >(pCppStack); @@ -442,7 +442,7 @@ unsigned char * codeSnippet( index |= 0x80000000; } unsigned int * p = reinterpret_cast< unsigned int * >(code); - static_assert(sizeof (unsigned int) == 4); + static_assert(sizeof (unsigned int) == 4, "boo"); // st %o0, [%sp+68]: *p++ = 0xD023A044; // st %o1, [%sp+72]: diff --git a/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx index 0ac80dc26925..f3e47965e6fd 100644 --- a/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx @@ -336,7 +336,7 @@ static void cpp_call( case typelib_TypeClass_HYPER: case typelib_TypeClass_UNSIGNED_HYPER: case typelib_TypeClass_DOUBLE: - static_assert(sizeof (double) == sizeof (sal_Int64)); + static_assert(sizeof (double) == sizeof (sal_Int64), "boo"); *reinterpret_cast< sal_Int32 * >(pCppStack) = *reinterpret_cast< sal_Int32 const * >(pUnoArgs[ nPos ]); pCppStack += sizeof (sal_Int32); |