[haiku-bugs] [Haiku] #9788: [PATCH] GIFTranslator: fix incorrectly initialized fTransparentMode

  • From: "mt" <trac@xxxxxxxxxxxx>
  • Date: Thu, 23 May 2013 12:18:11 -0000

#9788: [PATCH] GIFTranslator: fix incorrectly initialized fTransparentMode
-------------------------------------+------------------------------
 Reporter:  mt                       |        Owner:  nobody
     Type:  bug                      |       Status:  new
 Priority:  normal                   |    Milestone:  R1
Component:  Add-Ons/Translators/GIF  |      Version:  R1/Development
 Keywords:                           |   Blocked By:
 Blocking:                           |  Has a Patch:  0
 Platform:  All                      |
-------------------------------------+------------------------------
 Hi, in add-ons/translators/gif/Save Palette.cpp, fTransparentMode
 initialized incorrectly (pointed by gcc4.8).
 http://cgit.haiku-os.org/haiku/tree/src/add-
 ons/translators/gif/SavePalette.cpp#n242

 {{{
 /home/haiku/haiku/haiku/src/add-ons/translators/gif/SavePalette.cpp: In
 constructor 'SavePalette::SavePalette(BBitmap*, int32)':
 /home/haiku/haiku/haiku/src/add-ons/translators/gif/SavePalette.cpp:242:1:
 error: 'SavePalette::fTransparentMode' is initialized with itself [-Werror
 =init-self]
  SavePalette::SavePalette(BBitmap *bitmap, int32 maxSizeInBits)
  ^
 cc1plus: all warnings being treated as errors
 }}}

--
Ticket URL: <http://dev.haiku-os.org/ticket/9788>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: