Opened 16 years ago
Last modified 15 years ago
#884 new Defect
Prototype warnings in the BOINC API headers
Reported by: | gombasg | Owned by: | Bruce Allen |
---|---|---|---|
Priority: | Undetermined | Milestone: | Undetermined |
Component: | BOINC - API | Version: | 6.6.20 |
Keywords: | Cc: |
Description
Hi,
When the BOINC API headers are included from C source code that gets compiled with "-Wstrict-prototypes", they generate a lot of "function declaration isn’t a prototype" warnings. The attached patch fixes it by turning "foo()" to "foo(void)".
Gabor
Attachments (1)
Change History (3)
Changed 16 years ago by
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
All the changes I posted are inside 'extern "C" { ... }', so the patch has no effect on C++.
But foo(void) is bad on C++.