From 37344d0b7c09efa414e4646f61a1edfb77eae85c Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Fri, 25 May 2018 23:14:43 +0200 Subject: [PATCH] Problem: redundant old-style void argument declarations Solution: remove --- src/err.cpp | 2 +- src/err.hpp | 2 +- src/random.cpp | 4 ++-- src/router.cpp | 2 +- src/socket_poller.hpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/err.cpp b/src/err.cpp index faea81b2..3cd4eda7 100644 --- a/src/err.cpp +++ b/src/err.cpp @@ -444,7 +444,7 @@ void zmq::print_backtrace (void) #else -void zmq::print_backtrace (void) +void zmq::print_backtrace () { } diff --git a/src/err.hpp b/src/err.hpp index edef47f4..ed26a65e 100644 --- a/src/err.hpp +++ b/src/err.hpp @@ -65,7 +65,7 @@ __declspec(noreturn) void zmq_abort (const char *errmsg_); #else void zmq_abort (const char *errmsg_); #endif -void print_backtrace (void); +void print_backtrace (); } #ifdef ZMQ_HAVE_WINDOWS diff --git a/src/random.cpp b/src/random.cpp index f94a7d63..c66c6d08 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -157,12 +157,12 @@ static void manage_random (bool init_) #endif } -void zmq::random_open (void) +void zmq::random_open () { manage_random (true); } -void zmq::random_close (void) +void zmq::random_close () { manage_random (false); } diff --git a/src/router.cpp b/src/router.cpp index 79654a59..53d868f5 100644 --- a/src/router.cpp +++ b/src/router.cpp @@ -369,7 +369,7 @@ int zmq::router_t::xrecv (msg_t *msg_) return 0; } -int zmq::router_t::rollback (void) +int zmq::router_t::rollback () { if (current_out) { current_out->rollback (); diff --git a/src/socket_poller.hpp b/src/socket_poller.hpp index 3608f4cc..ba40911f 100644 --- a/src/socket_poller.hpp +++ b/src/socket_poller.hpp @@ -77,7 +77,7 @@ class socket_poller_t int wait (event_t *event_, int n_events_, long timeout_); - inline int size (void) { return static_cast (items.size ()); }; + inline int size () { return static_cast (items.size ()); }; // Return false if object is not a socket. bool check_tag ();