The default bug view has changed. See this FAQ.

TestSettingsAPI.cpp:14:20: warning: ‘gFunction’ defined but not used [-Wunused-variable]

RESOLVED FIXED in mozilla15

Status

()

Core
DOM: Device Interfaces
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: dholbert, Assigned: dholbert)

Tracking

(Blocks: 1 bug)

Trunk
mozilla15
x86_64
Linux
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
{
xpcom/tests/TestSettingsAPI.cpp:14:20: warning: ‘gFunction’ defined but not used [-Wunused-variable]
}

This file was added here:
  http://hg.mozilla.org/mozilla-central/rev/a0ec06f6c00d
with
> static const char* gFunction = "main";
as an unused variable.
(Assignee)

Comment 1

5 years ago
Created attachment 627316 [details] [diff] [review]
fix
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #627316 - Flags: review?(fabrice)
Comment on attachment 627316 [details] [diff] [review]
fix

Oh I thought this is needed for the test-environment. 
Thanks for fixing!
Attachment #627316 - Flags: review?(fabrice) → review+
(Assignee)

Comment 3

5 years ago
(Nope -- it's used in a different test-file in the same directory just for logging purposes, not for any functional purpose.)

Thanks for the review!
https://hg.mozilla.org/integration/mozilla-inbound/rev/bc62e10fe692
Target Milestone: --- → mozilla15
https://hg.mozilla.org/mozilla-central/rev/bc62e10fe692
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.