From c0f277a7d8396b6ec73c89a6fc94617435079d1e Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Mon, 7 Nov 2016 17:50:58 +0300 Subject: [PATCH] Silenced warnings about unused variables. --- test/explicit_operator_bool_compile_fail_conv_int.cpp | 1 + test/explicit_operator_bool_compile_fail_conv_pvoid.cpp | 1 + test/ref_rv_fail1.cpp | 1 + test/ref_rv_fail2.cpp | 1 + test/ref_rv_fail3.cpp | 1 + test/ref_rv_fail4.cpp | 1 + test/ref_rv_fail5.cpp | 1 + 7 files changed, 7 insertions(+) diff --git a/test/explicit_operator_bool_compile_fail_conv_int.cpp b/test/explicit_operator_bool_compile_fail_conv_int.cpp index 384f2ab..2664d5e 100644 --- a/test/explicit_operator_bool_compile_fail_conv_int.cpp +++ b/test/explicit_operator_bool_compile_fail_conv_int.cpp @@ -35,6 +35,7 @@ int main(int, char*[]) { checkable val; int n = val; + (void)n; return 0; } diff --git a/test/explicit_operator_bool_compile_fail_conv_pvoid.cpp b/test/explicit_operator_bool_compile_fail_conv_pvoid.cpp index 0c007ba..b7e7e03 100644 --- a/test/explicit_operator_bool_compile_fail_conv_pvoid.cpp +++ b/test/explicit_operator_bool_compile_fail_conv_pvoid.cpp @@ -35,6 +35,7 @@ int main(int, char*[]) { checkable val; void* p = val; + (void)p; return 0; } diff --git a/test/ref_rv_fail1.cpp b/test/ref_rv_fail1.cpp index a2e708d..1c0a2e6 100644 --- a/test/ref_rv_fail1.cpp +++ b/test/ref_rv_fail1.cpp @@ -15,6 +15,7 @@ int main() { boost::reference_wrapper r( 1 ); // this should produce an ERROR + (void)r; } #else diff --git a/test/ref_rv_fail2.cpp b/test/ref_rv_fail2.cpp index 7258411..8ce2680 100644 --- a/test/ref_rv_fail2.cpp +++ b/test/ref_rv_fail2.cpp @@ -13,4 +13,5 @@ int main() { boost::reference_wrapper r = boost::ref( 2 ); // this should produce an ERROR + (void)r; } diff --git a/test/ref_rv_fail3.cpp b/test/ref_rv_fail3.cpp index fff6508..14b39b8 100644 --- a/test/ref_rv_fail3.cpp +++ b/test/ref_rv_fail3.cpp @@ -19,6 +19,7 @@ X const crv() { return X(); } int main() { boost::reference_wrapper r = boost::ref( crv() ); // this should produce an ERROR + (void)r; } #else diff --git a/test/ref_rv_fail4.cpp b/test/ref_rv_fail4.cpp index 7f49123..899de7b 100644 --- a/test/ref_rv_fail4.cpp +++ b/test/ref_rv_fail4.cpp @@ -16,6 +16,7 @@ int main() { boost::reference_wrapper r = boost::cref( 2 ); // should fail + (void)r; } #else diff --git a/test/ref_rv_fail5.cpp b/test/ref_rv_fail5.cpp index 84bc467..ed18edf 100644 --- a/test/ref_rv_fail5.cpp +++ b/test/ref_rv_fail5.cpp @@ -20,6 +20,7 @@ X const crv() { return X(); } int main() { boost::reference_wrapper r = boost::cref( crv() ); // must fail + (void)r; } #else