While compiling a third party application against nunc-stans with -Wstrict-prototypes, I noticed compilation errors with nunc-stans.h
Compiling nunc-stans with -Wstrict-prototypes yielded the following errors:
In file included from ns_private.h:42:0, from ns_event_fw.h:35, from ns_thrpool.c:53: nunc-stans.h:376:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (log_start_fct)(); /< Function to call to initialize the logging system / ^ nunc-stans.h:377:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (log_close_fct)(); /< Function to call to shutdown the logging system / ^ In file included from ns_thrpool.c:53:0: ns_event_fw.h:146:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] ns_event_fw_t get_event_framework_event(); ^ ns_event_fw.h:147:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] ns_event_fw_t get_event_framework_tevent(); ^ ns_thrpool.c:96:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] static void (log_start)() = NULL; ^ ns_thrpool.c:97:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] static void (log_close)() = NULL; ^ ns_thrpool.c:113:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] ns_syslog_start() ^ ns_thrpool.c:119:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] ns_syslog_close()
attachment 0001-Ticket-43-Adhere-to-strict-function-prototypes.patch
commit c59239a
Total 12 (delta 10), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/nunc-stans.git 5b03995..c59239a master -> master
Login to comment on this ticket.