From ffcb36663357c2989175e7d36b5e6185ab1cf161 Mon Sep 17 00:00:00 2001 From: Mathieu Champlon Date: Sun, 7 Feb 2016 18:34:23 +0100 Subject: [PATCH] Fixed extra semicolon warning with BOOST_GLOBAL_FIXTURE prior to Boost 1.59 --- doc/changelog.qbk | 1 + include/turtle/cleanup.hpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/changelog.qbk b/doc/changelog.qbk index 5385128..6aeb960 100644 --- a/doc/changelog.qbk +++ b/doc/changelog.qbk @@ -13,6 +13,7 @@ Not yet released * Fixed missing thread synchronization in mock::sequence * Fixed build errors with Boost 1.59 * Fixed multiply defined symbol definition for MOCK_FUNCTION included from several translation units +* Fixed extra semicolon warning with BOOST_GLOBAL_FIXTURE prior to Boost 1.59 [endsect] diff --git a/include/turtle/cleanup.hpp b/include/turtle/cleanup.hpp index 47f8038..de49559 100644 --- a/include/turtle/cleanup.hpp +++ b/include/turtle/cleanup.hpp @@ -27,7 +27,10 @@ namespace mock }; #ifdef MOCK_USE_BOOST_TEST - BOOST_GLOBAL_FIXTURE( cleanup ); + BOOST_GLOBAL_FIXTURE( cleanup ) +#if BOOST_VERSION >= 105900 + ; +#endif #endif } // mock