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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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.
(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.)
OS: Linux → Android
Hardware: x86_64 → ARM
(ignore comment 1; I misremembered the line of code as just getting an array size rather than doing actual array-clearing) DebugOnly it is.
Attached patch 900246-fix.patchSplinter Review
Attachment #784062 - Flags: review?(smontagu)
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
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]
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]
Depends on: 900274
Attachment #784062 - Flags: review?(smontagu) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Blocks: 900274
No longer depends on: 900274
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: