Last Comment Bug 666714 - GCC 4.6 warning: nsScanner.cpp:305:25: warning: variable ‘start’ set but not used [-Wunused-but-set-variable]
: GCC 4.6 warning: nsScanner.cpp:305:25: warning: variable ‘start’ set but not ...
Status: RESOLVED FIXED
[build_warning]
:
Product: Core
Classification: Components
Component: HTML: Parser (show other bugs)
: Trunk
: x86_64 Linux
: -- normal (vote)
: mozilla7
Assigned To: Daniel Holbert [:dholbert]
:
: Andrew Overholt [:overholt]
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-23 12:42 PDT by Daniel Holbert [:dholbert]
Modified: 2011-06-25 03:10 PDT (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
fix (1.26 KB, patch)
2011-06-23 12:57 PDT, Daniel Holbert [:dholbert]
hsivonen: review+
Details | Diff | Splinter Review

Description Daniel Holbert [:dholbert] 2011-06-23 12:42:09 PDT
When building with GCC 4.6:
nsScanner.cpp: In member function ‘nsresult nsScanner::Append(const char*, PRUint32, nsIRequest*)’:
nsScanner.cpp:305:25: warning: variable ‘start’ set but not used [-Wunused-but-set-variable]
Comment 1 Daniel Holbert [:dholbert] 2011-06-23 12:57:40 PDT
Created attachment 541469 [details] [diff] [review]
fix
Comment 2 Henri Sivonen (:hsivonen) 2011-06-24 00:09:33 PDT
Comment on attachment 541469 [details] [diff] [review]
fix

Seems safe enough for me to r+ this though this is mrbkap's area.
Comment 3 Daniel Holbert [:dholbert] 2011-06-24 01:54:42 PDT
http://hg.mozilla.org/integration/mozilla-inbound/rev/13b3cfa7f224
Comment 4 Marco Bonardo [::mak] 2011-06-25 03:10:06 PDT
http://hg.mozilla.org/mozilla-central/rev/13b3cfa7f224

Note You need to log in before you can comment on or make changes to this bug.