WaE: -Wuninitialized

Change-Id: Iba1849abfc9c12c38466fc4294d319a06f413b55
This commit is contained in:
Tor Lillqvist 2012-09-12 15:44:41 +03:00
parent fa57e53c2d
commit 21774213d4

View file

@ -134,7 +134,10 @@ void MapReturn(sal_uInt32 r0, sal_uInt32 r1, typelib_TypeDescriptionReference *
pRegisterReturn[0] = r0;
#else
register float fret asm("s0");
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
*(float*)pRegisterReturn = fret;
#pragma GCC diagnostic pop
#endif
break;
case typelib_TypeClass_DOUBLE:
@ -143,7 +146,10 @@ void MapReturn(sal_uInt32 r0, sal_uInt32 r1, typelib_TypeDescriptionReference *
pRegisterReturn[0] = r0;
#else
register double dret asm("d0");
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
*(double*)pRegisterReturn = dret;
#pragma GCC diagnostic pop
#endif
break;
case typelib_TypeClass_STRUCT: