|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72766 - sandbox/conversion/libs/conversion_ext/test
From: vicente.botet_at_[hidden]
Date: 2011-06-26 15:48:49
Author: viboes
Date: 2011-06-26 15:48:47 EDT (Sun, 26 Jun 2011)
New Revision: 72766
URL: http://svn.boost.org/trac/boost/changeset/72766
Log:
Conversion: warning removal
Text files modified:
sandbox/conversion/libs/conversion_ext/test/Jamfile.v2 | 3 ++-
sandbox/conversion/libs/conversion_ext/test/extrinsec.cpp | 13 +++++++++++++
sandbox/conversion/libs/conversion_ext/test/intrinsec.cpp | 4 ++++
3 files changed, 19 insertions(+), 1 deletions(-)
Modified: sandbox/conversion/libs/conversion_ext/test/Jamfile.v2
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/Jamfile.v2 (original)
+++ sandbox/conversion/libs/conversion_ext/test/Jamfile.v2 2011-06-26 15:48:47 EDT (Sun, 26 Jun 2011)
@@ -77,8 +77,9 @@
[ run ../example/even.cpp ]
[ run ../example/swap.cpp ]
[ run ../example/no_throw.cpp ]
- [ run ../example/overload.cpp ]
[ run ../example/fallback.cpp ]
+ [ run ../example/overload.cpp ]
+ [ run ../example/formatted.cpp ]
;
Modified: sandbox/conversion/libs/conversion_ext/test/extrinsec.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/extrinsec.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/extrinsec.cpp 2011-06-26 15:48:47 EDT (Sun, 26 Jun 2011)
@@ -183,8 +183,11 @@
{
X x;
ICF_X y1(implicit_convert_to<ICF_X>(x));
+ (void)y1;// remove warning: unused variable
+
#if defined(BOOST_CONVERSION_ENABLE_CND) || !defined(BOOST_NO_SFINAE_EXPR)
ICF_X y1_1(convert_to<ICF_X>(x));
+ (void)y1_1;// remove warning: unused variable
#endif
ICF_X y2(mcf(x));
mat(y2) = x;
@@ -200,9 +203,12 @@
X x;
//ECF_X y(convert_to<ECF_X>(x)); // compile must fail
BOOST_CONVERSION_CONSTRUCT(ECF_X, y, x); // Maybe a macro !!!
+ (void)y;// remove warning: unused variable
ECF_X y1_1(explicit_convert_to<ECF_X>(x));
+ (void)y1_1;// remove warning: unused variable
//ECF_X y1_2(mcf(x)); // fail as there is no implicit conversion.
ECF_X y2 = explicit_convert_to<ECF_X>(x);
+ (void)y2;// remove warning: unused variable
//mat(y2) = x; // fails as no implicit conversion
}
@@ -213,13 +219,18 @@
{
ICT_X y;
X x1(implicit_convert_to<X>(y));
+ (void)x1;// remove warning: unused variable
#if defined(BOOST_CONVERSION_ENABLE_CND) || !defined(BOOST_NO_SFINAE_EXPR)
X x1_1(convert_to<X>(y));
+ (void)x1_1;// remove warning: unused variable
#endif
X x2(mcf(y));
+ (void)x2;// remove warning: unused variable
X x3=implicit_convert_to<X>(y);
+ (void)x3;// remove warning: unused variable
#if defined(BOOST_CONVERSION_ENABLE_CND) || !defined(BOOST_NO_SFINAE_EXPR)
X x3_1=convert_to<X>(y);
+ (void)x3_1;// remove warning: unused variable
#endif
X x4=mcf(y);
mat(x4) = y;
@@ -231,7 +242,9 @@
{
ECT_X y;
X x1(explicit_convert_to<X>(y));
+ (void)x1;// remove warning: unused variable
X x2=explicit_convert_to<X>(y);
+ (void)x2;// remove warning: unused variable
}
}
void xassign_to_with_assignemet_operator()
Modified: sandbox/conversion/libs/conversion_ext/test/intrinsec.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/intrinsec.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/intrinsec.cpp 2011-06-26 15:48:47 EDT (Sun, 26 Jun 2011)
@@ -116,12 +116,16 @@
{
ICT_X y;
X x1(y);
+ (void)x1;// remove warning: unused variable
X x2=y;
+ (void)x2;// remove warning: unused variable
}
{
ICT_X y;
X x1(convert_to<X>(y));
+ (void)x1;// remove warning: unused variable
X x2=convert_to<X>(y);
+ (void)x2;// remove warning: unused variable
}
}
void explicit_convert_to_with_explicit_conversion_operator() {
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk