diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-08 09:55:03 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-12 08:53:29 +0100 |
commit | d0d9d7970bfb273fb9c7314439d029ecc4f042e0 (patch) | |
tree | be501958d06a51ff00fa8bf6421a6731e1c163dd /vcl | |
parent | 7baf49884c585836ef11fcbaa41b3529d7e95155 (diff) |
WaE: 'nRet' may be used uninitialized in this function
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/source/gdi/salprn.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx index e382fac0a547..fbc4fd90f3f7 100644 --- a/vcl/win/source/gdi/salprn.cxx +++ b/vcl/win/source/gdi/salprn.cxx @@ -1790,7 +1790,7 @@ SalGraphics* WinSalPrinter::StartPage( ImplJobSetup* pSetupData, sal_Bool bNewJo if ( pDevModeW != pOrgDevModeW ) rtl_freeMemory( pDevModeW ); } - int nRet = 0; + volatile int nRet = 0; CATCH_DRIVER_EX_BEGIN; nRet = ::StartPage( hDC ); CATCH_DRIVER_EX_END( "exception in StartPage", this ); @@ -1829,7 +1829,7 @@ sal_Bool WinSalPrinter::EndPage() if( ! isValid() ) return FALSE; - int nRet = 0; + volatile int nRet = 0; CATCH_DRIVER_EX_BEGIN; nRet = ::EndPage( hDC ); CATCH_DRIVER_EX_END( "exception in EndPage", this ); |