WaE: -Wuninitialized
Change-Id: Iba1849abfc9c12c38466fc4294d319a06f413b55
This commit is contained in:
parent
fa57e53c2d
commit
21774213d4
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue