diff options
author | Lev Stipakov | 2021-11-24 18:03:47 +0200 |
---|---|---|
committer | Gert Doering | 2021-11-24 17:16:23 +0100 |
commit | 71371f04afa6eba3ea02a67590a70e018cf203e5 (patch) | |
tree | 9bb0a4489483ee560d5f3767032d55a70fb1d045 | |
parent | 23e6aaef149bd31a7e80af28ee1e3658d2810d4f (diff) | |
download | openvpn-71371f04afa6eba3ea02a67590a70e018cf203e5.zip openvpn-71371f04afa6eba3ea02a67590a70e018cf203e5.tar.gz |
ring_buffer.h: fix GCC warning about unused function
With register_ring_buffers() being declared as "static" in header file,
all translation units, which include that header, got a copy of that
function.
This causes GCC warning
warning: "register_ring_buffers" defined but not used [-Wunused-function]
when compiling C files which include header, but don't use function.
Add "inline" keyword to silence this warning.
Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20211124160347.1245-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23260.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
-rw-r--r-- | src/openvpn/ring_buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/ring_buffer.h b/src/openvpn/ring_buffer.h index 77579e3..9661ceb 100644 --- a/src/openvpn/ring_buffer.h +++ b/src/openvpn/ring_buffer.h @@ -94,7 +94,7 @@ struct TUN_PACKET * that data has been written to receive ring * @return true if registration is successful, false otherwise - use GetLastError() */ -static bool +static inline bool register_ring_buffers(HANDLE device, struct tun_ring *send_ring, struct tun_ring *receive_ring, |