Last Comment Bug 693847 - Squelch unused name warnings in Nitro in release builds
: Squelch unused name warnings in Nitro in release builds
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: x86_64 Linux
-- trivial (vote)
: mozilla10
Assigned To: Terrence Cole [:terrence]
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2011-10-11 16:03 PDT by Terrence Cole [:terrence]
Modified: 2011-10-15 05:36 PDT (History)
2 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

The trivial fix. (2.35 KB, patch)
2011-10-11 16:03 PDT, Terrence Cole [:terrence]
luke: review+
Details | Diff | Splinter Review

Description User image Terrence Cole [:terrence] 2011-10-11 16:03:05 PDT
Created attachment 566385 [details] [diff] [review]
The trivial fix.

Three variables in a Nitro header included all over the tree are only used in JS_ASSERT's.  Wrap these declarations in DebugOnly so that they are only present in debug builds and do not generate verbose warnings in release builds.
Comment 2 User image Ed Morley [:emorley] 2011-10-15 05:36:42 PDT

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