Opened 15 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)

diff (5.6 KB) - added by gombasg 15 years ago.

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by gombasg

Attachment: diff added

comment:1 Changed 15 years ago by Nicolas

But foo(void) is bad on C++.

comment:2 Changed 15 years ago by gombasg

All the changes I posted are inside 'extern "C" { ... }', so the patch has no effect on C++.

Note: See TracTickets for help on using tickets.