Closed
Bug 582328
Opened 15 years ago
Closed 14 years ago
VideoUtils.h:62: warning: 'PRBool MulOverflow32(PRUint32, PRUint32, PRUint32&)' defined but not used
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: khuey)
References
Details
(Whiteboard: [build_warning])
Every file that includes VideoUtils.h & doesn't use the "MulOverflow32" function spams this build warning:
> content/media/VideoUtils.h:62: warning: 'PRBool MulOverflow32(PRUint32, PRUint32, PRUint32&)' defined but not used
Looks like this is because it's a static function defined in the header file -- so each compilation unit gets its own personal copy of the code, but most of them don't use it.
I think one way to fix this would be to make the function inline... (Then, each _client_ would get its own copy of the code, but that's probably not a big deal since it's a pretty short function...) Alternately, the function body could go in a new VideoUtils.cpp file. Or maybe there's something else that'd be better than either of these options.
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → me
Status: NEW → ASSIGNED
Comment 1•15 years ago
|
||
In bug 576539 I have a patch which moves the int overflow aware add/mul into a new VideoUtils.cpp file which should remove this compile error.
Depends on: 576539
Comment 2•14 years ago
|
||
Should be fixed by bug 576539 landing...
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•