From 5efa11828cf4ef6d833221b4e4bc77c9dfcb58d0 Mon Sep 17 00:00:00 2001 From: hitstergtd Date: Tue, 10 May 2016 18:22:15 +0100 Subject: [PATCH] Problem: hint parameter throws unused warning Solution: Mark it with LIBZMQ_UNUSED macro as per convention. --- src/req.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/req.cpp b/src/req.cpp index dd2448a1..233354ac 100644 --- a/src/req.cpp +++ b/src/req.cpp @@ -28,6 +28,7 @@ */ #include "precompiled.hpp" +#include "macros.hpp" #include "req.hpp" #include "err.hpp" #include "msg.hpp" @@ -39,6 +40,7 @@ extern "C" { static void free_id (void *data, void *hint) { + LIBZMQ_UNUSED (hint); free (data); } }