Closed Bug 766666 Opened 8 years ago Closed 8 years ago

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

Categories

(Core :: Graphics, defect)

x86_64
Linux
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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.)
(Looks like bug 705665 removed the last usage of this variable, FWIW -- so that's when this warning appeared.)
Blocks: 705665
Attached patch fixSplinter Review
Attachment #635001 - Flags: review?(bjacob)
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #635001 - Flags: review?(bjacob) → review+
https://hg.mozilla.org/mozilla-central/rev/01d31319cfdd
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.