Closed
Bug 605116
Opened 15 years ago
Closed 15 years ago
Properly declare functions without arguments in npfunctions.h
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jacek, Assigned: jacek)
Details
Attachments
(1 file)
|
3.66 KB,
patch
|
jaas
:
review+
benjamin
:
approval2.0+
|
Details | Diff | Splinter Review |
Functions with no arguments should use (void) syntax. () syntax means unknown arguments. Here is an example of a warning that GCC gives:
npfunctions.h:51: warning: function declaration isn't a prototype
The attached patch fixes the problem.
| Assignee | ||
Updated•15 years ago
|
Attachment #483948 -
Attachment is patch: true
Attachment #483948 -
Flags: review?(bent.mozilla)
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → jacek
Comment 1•15 years ago
|
||
Comment on attachment 483948 [details] [diff] [review]
fix v1.0
This really needs to land upstream in http://code.google.com/p/npapi-headers/ so it can be shared with all implementations, but Josh can handle that.
Attachment #483948 -
Flags: review?(bent.mozilla) → review?(joshmoz)
Attachment #483948 -
Flags: review?(joshmoz) → review+
Go ahead and land this on mozilla-central now, I'll get it upstreamed.
Updated•15 years ago
|
Attachment #483948 -
Flags: approval2.0+
Change pushed upstream. We actually considered this before but I mistakenly turned it down.
| Assignee | ||
Comment 4•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•