Closed
Bug 900246
Opened 12 years ago
Closed 12 years ago
opt build warning: DirectionalityUtils.cpp:538:14: warning: unused variable 'clearedEntries' [-Wunused-variable]
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
1.53 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
Build warning, in Android opt builds:
{
content/base/src/DirectionalityUtils.cpp:538:14: error: unused variable 'clearedEntries' [-Werror=unused-variable]
}
Sample log (with an experimental FAIL_ON_WARNINGS in this directory, turning this into an error): https://tbpl.mozilla.org/php/getParsedLog.php?id=25991288&tree=Try
Looks like this variable wants to be DebugOnly.
| Assignee | ||
Comment 1•12 years ago
|
||
(or, better, this whole function-body probably wants to be #ifdef DEBUG, since its only purpose appears to be getting a value to assert about.)
| Assignee | ||
Updated•12 years ago
|
OS: Linux → Android
Hardware: x86_64 → ARM
| Assignee | ||
Comment 2•12 years ago
|
||
(ignore comment 1; I misremembered the line of code as just getting an array size rather than doing actual array-clearing)
DebugOnly it is.
| Assignee | ||
Comment 3•12 years ago
|
||
Attachment #784062 -
Flags: review?(smontagu)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
| Assignee | ||
Updated•12 years ago
|
OS: Android → All
Hardware: ARM → All
Summary: DirectionalityUtils.cpp:538:14: error: unused variable 'clearedEntries' [-Werror=unused-variable] → opt build warning: DirectionalityUtils.cpp:538:14: error: unused variable 'clearedEntries' [-Werror=unused-variable]
| Assignee | ||
Updated•12 years ago
|
Summary: opt build warning: DirectionalityUtils.cpp:538:14: error: unused variable 'clearedEntries' [-Werror=unused-variable] → opt build warning: DirectionalityUtils.cpp:538:14: warning: unused variable 'clearedEntries' [-Wunused-variable]
Updated•12 years ago
|
Attachment #784062 -
Flags: review?(smontagu) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
| Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
| Assignee | ||
Updated•12 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•