From 78fe81e3ed66905333a17bce8f48417b43a05d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Krzemie=C5=84ski?= Date: Mon, 12 Oct 2015 12:30:57 +0200 Subject: [PATCH] Fixed unused warning --- ...onal_xconfig_NO_PROPER_CONVERT_FROM_CONST_INT_pass.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/optional_xconfig_NO_PROPER_CONVERT_FROM_CONST_INT_pass.cpp b/test/optional_xconfig_NO_PROPER_CONVERT_FROM_CONST_INT_pass.cpp index a534f43..b71554e 100644 --- a/test/optional_xconfig_NO_PROPER_CONVERT_FROM_CONST_INT_pass.cpp +++ b/test/optional_xconfig_NO_PROPER_CONVERT_FROM_CONST_INT_pass.cpp @@ -9,6 +9,7 @@ // You are welcome to contact the author at: // akrzemi1@gmail.com +#include "boost/core/ignore_unused.hpp" #include "boost/core/lightweight_test.hpp" #include "boost/optional/detail/optional_config.hpp" @@ -18,15 +19,16 @@ const int global_i = 0; struct Binder { - Binder(const int& i) - { - BOOST_TEST(&i == &global_i); + Binder(const int& i) + { + BOOST_TEST(&i == &global_i); } }; int main() { Binder b = global_i; + boost::ignore_unused(b); return boost::report_errors(); }