The default bug view has changed. See this FAQ.

GLContext.cpp:2955:14: error: variable ‘found’ set but not used [-Werror=unused-but-set-variable]

RESOLVED FIXED in mozilla16

Status

()

Core
Graphics
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: dholbert, Assigned: dholbert)

Tracking

(Blocks: 1 bug)

Trunk
mozilla16
x86_64
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
In my m-c build with GCC 4.6 and --enable-warnings-as-errors:
{
GLContext.cpp:2955:14: error: variable ‘found’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors
}

(Looks like this warning already existed, but its directory is now included in the "FAIL_ON_WARNINGS" umbrella as of bug 765989.  (And GCC 4.6 is newer & has a few more warnings than our builders' GCC versions, which is why this didn't cause trouble on TBPL.)
(Assignee)

Comment 1

5 years ago
(Looks like bug 705665 removed the last usage of this variable, FWIW -- so that's when this warning appeared.)
Blocks: 705665
(Assignee)

Comment 2

5 years ago
Created attachment 635001 [details] [diff] [review]
fix
Attachment #635001 - Flags: review?(bjacob)
(Assignee)

Updated

5 years ago
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #635001 - Flags: review?(bjacob) → review+
(Assignee)

Comment 3

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/01d31319cfdd
Target Milestone: --- → mozilla16
https://hg.mozilla.org/mozilla-central/rev/01d31319cfdd
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.