[Libreoffice-commits] core.git: vcl/source
Stephan Bergmann
sbergman at redhat.com
Mon Jun 6 13:13:15 UTC 2016
vcl/source/filter/sgfbram.cxx | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 77a64e38637de0332f9f4ccf968bdd246f0b36eb
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jun 6 15:12:50 2016 +0200
-Werror=unused-variable
Change-Id: I173624a5740ae01b33138eeaa25b9d79ecd22d59
diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx
index 98644cd..b7825d9 100644
--- a/vcl/source/filter/sgfbram.cxx
+++ b/vcl/source/filter/sgfbram.cxx
@@ -35,7 +35,9 @@ SgfHeader::SgfHeader()
SvStream& ReadSgfHeader(SvStream& rIStream, SgfHeader& rHead)
{
+#if !defined NDEBUG
sal_uInt64 const nOldPos(rIStream.Tell());
+#endif
rIStream.ReadUInt16(rHead.Magic);
rIStream.ReadUInt16(rHead.Version);
rIStream.ReadUInt16(rHead.Typ);
@@ -66,7 +68,9 @@ SgfEntry::SgfEntry()
SvStream& ReadSgfEntry(SvStream& rIStream, SgfEntry& rEntr)
{
+#if !defined NDEBUG
sal_uInt64 const nOldPos(rIStream.Tell());
+#endif
rIStream.ReadUInt16(rEntr.Typ);
rIStream.ReadUInt16(rEntr.iFrei);
rIStream.ReadUInt16(rEntr.lFreiLo);
@@ -83,7 +87,9 @@ sal_uInt32 SgfEntry::GetOffset()
SvStream& ReadSgfVector(SvStream& rIStream, SgfVector& rVect)
{
+#if !defined NDEBUG
sal_uInt64 const nOldPos(rIStream.Tell());
+#endif
rIStream.ReadUInt16(rVect.Flag);
rIStream.ReadInt16(rVect.x);
rIStream.ReadInt16(rVect.y);
@@ -95,7 +101,9 @@ SvStream& ReadSgfVector(SvStream& rIStream, SgfVector& rVect)
SvStream& WriteBmpFileHeader(SvStream& rOStream, BmpFileHeader& rHead)
{
+#if !defined NDEBUG
sal_uInt64 const nOldPos(rOStream.Tell());
+#endif
rOStream.WriteUInt16(rHead.Typ);
rOStream.WriteUInt16(rHead.SizeLo);
rOStream.WriteUInt16(rHead.SizeHi);
@@ -126,7 +134,9 @@ sal_uInt32 BmpFileHeader::GetOfs()
SvStream& WriteBmpInfoHeader(SvStream& rOStream, BmpInfoHeader& rInfo)
{
+#if !defined NDEBUG
sal_uInt64 const nOldPos(rOStream.Tell());
+#endif
rOStream.WriteUInt32(rInfo.Size);
rOStream.WriteInt32(rInfo.Width);
rOStream.WriteInt32(rInfo.Hight);
More information about the Libreoffice-commits
mailing list