Closed
Bug 613283
Opened 15 years ago
Closed 15 years ago
content/canvas/src/WebGLContextGL.cpp:127: warning: 'PRBool InternalFormatHasAlpha(WebGLenum)' defined but not used
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
mozilla2.0b8
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
|
877 bytes,
patch
|
vlad
:
review+
benjamin
:
approval2.0+
|
Details | Diff | Splinter Review |
Bug 539771 added the following static helper function to WebGLContextGL.cpp...
+static PRBool
+InternalFormatHasAlpha(WebGLenum aInternalFormat) {
+ return aInternalFormat == LOCAL_GL_RGBA4 ||
+ aInternalFormat == LOCAL_GL_RGB5_A1;
+}
http://hg.mozilla.org/mozilla-central/diff/941c3d14e14d/content/canvas/src/WebGLContextGL.cpp
... but there are no callers of this method, so we spam this warning:
> WebGLContextGL.cpp:127: warning: 'PRBool InternalFormatHasAlpha(WebGLenum)' defined but not used
Note that this changeset added a method of the same name, with a separate definition, in the .h file:
http://hg.mozilla.org/mozilla-central/diff/941c3d14e14d/content/canvas/src/WebGLContext.h
*That* method has callers (in the .h file), but the one from the .cpp file does not have any callers & should probably be removed.
| Assignee | ||
Updated•15 years ago
|
OS: Linux → All
Hardware: x86_64 → All
| Assignee | ||
Comment 1•15 years ago
|
||
Requesting r+a. Just reverting the introduction of an unused method. (with an actually-used alternate version declared elsewhere, as noted above -- so I think this was just a stale chunk that wasn't intended to land)
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #491617 -
Flags: review?(vladimir)
Attachment #491617 -
Flags: approval2.0?
Attachment #491617 -
Flags: review?(vladimir) → review+
Updated•15 years ago
|
Attachment #491617 -
Flags: approval2.0? → approval2.0+
| Assignee | ||
Comment 2•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
You need to log in
before you can comment on or make changes to this bug.
Description
•