Skip to content

Commit 4fc4454

Browse files
authored
Merge pull request #12 from Kojoley/fix-unused-variable-warnings-from-core_hpp
Fixed unused variable warnings from core.hpp
2 parents 9d17177 + 02999cc commit 4fc4454

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

include/boost/lambda/core.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#ifndef BOOST_LAMBDA_CORE_HPP
2323
#define BOOST_LAMBDA_CORE_HPP
2424

25+
#include "boost/config.hpp"
26+
2527
#include "boost/type_traits/transform_traits.hpp"
2628
#include "boost/type_traits/cv_traits.hpp"
2729

@@ -66,9 +68,9 @@ namespace {
6668
boost::lambda::placeholder2_type free2 = boost::lambda::placeholder2_type();
6769
boost::lambda::placeholder3_type free3 = boost::lambda::placeholder3_type();
6870

69-
boost::lambda::placeholder1_type& _1 = free1;
70-
boost::lambda::placeholder2_type& _2 = free2;
71-
boost::lambda::placeholder3_type& _3 = free3;
71+
boost::lambda::placeholder1_type& BOOST_ATTRIBUTE_UNUSED _1 = free1;
72+
boost::lambda::placeholder2_type& BOOST_ATTRIBUTE_UNUSED _2 = free2;
73+
boost::lambda::placeholder3_type& BOOST_ATTRIBUTE_UNUSED _3 = free3;
7274
// _1, _2, ... naming scheme by Peter Dimov
7375
} // unnamed
7476

0 commit comments

Comments
 (0)