From 40e01f45e14c483912fe6665cd30ce1531b3396e Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Wed, 31 Jan 2018 09:38:13 -0800 Subject: [PATCH 1/2] Silence 'unused variable' warning Mac OS doesn't fall into the "UNIX based debugging" or "windows based debugging", so we get the "do nothing" behavior. --- include/boost/test/impl/debug.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/test/impl/debug.ipp b/include/boost/test/impl/debug.ipp index f547052d..a5e5f6da 100644 --- a/include/boost/test/impl/debug.ipp +++ b/include/boost/test/impl/debug.ipp @@ -938,7 +938,7 @@ attach_debugger( bool break_or_continue ) return true; #else // ****************************************************** default - + (void) break_or_continue; // silence 'unused variable' warning return false; #endif From e3071c7fdc7b3fa30c3e70327ca6a99044b8b8ab Mon Sep 17 00:00:00 2001 From: Raffi Enficiaud Date: Wed, 31 Jan 2018 22:48:05 +0100 Subject: [PATCH 2/2] Change log --- doc/closing_chapters/change_log.qbk | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/closing_chapters/change_log.qbk b/doc/closing_chapters/change_log.qbk index fbf8e196..80d736fa 100644 --- a/doc/closing_chapters/change_log.qbk +++ b/doc/closing_chapters/change_log.qbk @@ -30,6 +30,7 @@ # [pull_request 121] fix compiler warning # [pull_request 122] Fix some fallthrough warnings with `gcc >= 7` # [pull_request 125] Prevent 2 unused parameter warnings +# [pull_request 127] Silence 'unused variable' warning # [ticket 12092] Request: allow `std::tuple` typelists in `BOOST_AUTO_TEST_CASE_TEMPLATE` # [ticket 12597] Report tests with clashing names # [ticket 12969] Problem linking `print_helper_t` under Clang