From aac1c8ac50ffbdccbd5ad457faca9ddf2c93e055 Mon Sep 17 00:00:00 2001 From: laplaceyang Date: Thu, 29 Dec 2016 22:57:17 +0800 Subject: [PATCH] fix warning unused but set variable --- zmq_addon.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zmq_addon.hpp b/zmq_addon.hpp index c62cb5e..9491422 100644 --- a/zmq_addon.hpp +++ b/zmq_addon.hpp @@ -396,8 +396,8 @@ public: // Self test static int test() { - bool ok = true; - float num = 0; + bool ok = true; (void) ok; + float num = 0; (void) num; std::string str = ""; message_t msg;