Closed
Bug 817913
Opened 12 years ago
Closed 12 years ago
shouldn't have static functions in GfxDriverInfo.h
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: heycam, Assigned: heycam)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
2.25 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
I don't think it's a good idea to have static functions in GfxDriverInfo.h, as every translation unit that includes it (and uses them) gets its own copies. It results in compiler warnings about the functions not being used in those translation units that they aren't.
I suggest doing either s/static/inline/ on them, or declaring them as non-inline functions and moving their implementations to the cpp file.
Assignee | ||
Comment 1•12 years ago
|
||
Make them inline.
Assignee | ||
Updated•12 years ago
|
Comment 2•12 years ago
|
||
Comment on attachment 688061 [details] [diff] [review]
patch
Review of attachment 688061 [details] [diff] [review]:
-----------------------------------------------------------------
Seems good to me! Are we sure this file never gets included from C-code? i.e. we don't need static inline?
Attachment #688061 -
Flags: review?(bas) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Couldn't see any.
https://hg.mozilla.org/integration/mozilla-inbound/rev/1d3c65ce01ad
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•