Skip to content

Commit

Permalink
resolve "function declaration isn't a prototype"
Browse files Browse the repository at this point in the history
change two declarations in headers to form f(void); instead of f();
which eliminates the warnings when compiling against zeromq

Signed-off-by: MinRK <[email protected]>
  • Loading branch information
minrk authored and sustrik committed Jan 6, 2011
1 parent 472bdcd commit 08cd2ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Max Wolf <[email protected]>
McClain Looney <[email protected]>
Mikael Helbo Kjaer <[email protected]>
Mikko Koppanen <[email protected]>
Min Ragan-Kelley <[email protected]>
Nir Soffer <[email protected]>
Pavel Gushcha <[email protected]>
Pavol Malosek <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion include/zmq.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
/* of this function is to make the code 100% portable, including where 0MQ */
/* compiled with certain CRT library (on Windows) is linked to an */
/* application that uses different CRT library. */
ZMQ_EXPORT int zmq_errno ();
ZMQ_EXPORT int zmq_errno (void);

/* Resolves system errors and 0MQ errors to human-readable string. */
ZMQ_EXPORT const char *zmq_strerror (int errnum);
Expand Down
2 changes: 1 addition & 1 deletion include/zmq_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extern "C" {
/* about minutiae of time-related functions on different OS platforms. */

/* Starts the stopwatch. Returns the handle to the watch. */
ZMQ_EXPORT void *zmq_stopwatch_start ();
ZMQ_EXPORT void *zmq_stopwatch_start (void);

/* Stops the stopwatch. Returns the number of microseconds elapsed since */
/* the stopwatch was started. */
Expand Down

0 comments on commit 08cd2ce

Please sign in to comment.