bugGnash - The GNU Flash player - Bugs: bug #41185, Get rid of warning (unused start...


bug #41185: Get rid of warning (unused start varible when NDEBUG is not defined)

Submitted by:  Petter Reinholdtsen <pere>
Submitted on:  Fri 10 Jan 2014 12:29:56 PM UTC  
Category: coreSeverity: 3 - Normal
Release: masterStatus: Ready For Test
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 10 Jan 2014 12:58:32 PM UTC, comment #1:

Pushed as 4b022b9, thanks

Sandro Santilli <strk>
Project MemberIn charge of this item.
Fri 10 Jan 2014 12:29:56 PM UTC, original submission:

While building gnash for coverity, I saw this warning:

CXX DefineBitsTag.lo
swf/DefineBitsTag.cpp: In function 'gnash::FileType gnash::SWF::{anonymous}::c\
swf/DefineBitsTag.cpp:301:18: warning: unused variable 'start' [-Wunused-varia\
const size_t start = in.tell();
This fix should fix the problem:

diff --git a/libcore/swf/DefineBitsTag.cpp b/libcore/swf/DefineBitsTag.cpp
index a7c8b79..9967921 100644
--- a/libcore/swf/DefineBitsTag.cpp
+++ b/libcore/swf/DefineBitsTag.cpp
@@ -297,10 +297,6 @@ readDefineBitsJpeg(SWFStream& /in/, movie_definition& m\
checkFileType(SWFStream& in)
-#ifndef NDEBUG
- const size_t start = in.tell();
const size_t bytes = 3;
char buf[bytes];

Happy hacking
Petter Reinholdtsen

Petter Reinholdtsen <pere>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by pere (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 10 Jan 2014 12:58:32 PM UTCstrkStatusNone=>Ready For Test
      Assigned toNone=>strk

    Back to the top

    Powered by Savane 3.1-cleanup1