@@ -25,7 +25,7 @@ void test_short_input1 () {
2525 std::string s;
2626
2727 try { ba::unhex ( std::string ( " A" ), std::back_inserter (s)); }
28- catch ( const std::exception &ex ) { return ; }
28+ catch ( const std::exception & ) { return ; }
2929 BOOST_TEST_MESSAGE ( " Failed to catch std::exception in test_short_input1" );
3030 BOOST_CHECK ( false );
3131 }
@@ -34,7 +34,7 @@ void test_short_input2 () {
3434 std::string s;
3535
3636 try { ba::unhex ( std::string ( " A" ), std::back_inserter (s)); }
37- catch ( const ba::hex_decode_error &ex ) { return ; }
37+ catch ( const ba::hex_decode_error & ) { return ; }
3838 BOOST_TEST_MESSAGE ( " Failed to catch ba::hex_decode_error in test_short_input2" );
3939 BOOST_CHECK ( false );
4040 }
@@ -43,7 +43,7 @@ void test_short_input3 () {
4343 std::string s;
4444
4545 try { ba::unhex ( std::string ( " A" ), std::back_inserter (s)); }
46- catch ( const ba::not_enough_input &ex ) { return ; }
46+ catch ( const ba::not_enough_input & ) { return ; }
4747 BOOST_TEST_MESSAGE ( " Failed to catch ba::not_enough_input in test_short_input3" );
4848 BOOST_CHECK ( false );
4949 }
@@ -53,8 +53,8 @@ void test_short_input4 () {
5353 std::string s;
5454
5555 try { ba::unhex ( std::string ( " A" ), std::back_inserter (s)); }
56- catch ( const ba::non_hex_input &ex ) { BOOST_CHECK ( false ); }
57- catch ( const ba::not_enough_input &ex ) { return ; }
56+ catch ( const ba::non_hex_input & ) { BOOST_CHECK ( false ); }
57+ catch ( const ba::not_enough_input & ) { return ; }
5858 catch ( ... ) { BOOST_CHECK ( false ); }
5959 BOOST_CHECK ( false );
6060 }
@@ -64,8 +64,8 @@ void test_short_input5 () {
6464 std::string s;
6565
6666 try { ba::unhex ( " A" , std::back_inserter (s)); }
67- catch ( const ba::non_hex_input &ex ) { BOOST_CHECK ( false ); }
68- catch ( const ba::not_enough_input &ex ) { return ; }
67+ catch ( const ba::non_hex_input & ) { BOOST_CHECK ( false ); }
68+ catch ( const ba::not_enough_input & ) { return ; }
6969 catch ( ... ) { BOOST_CHECK ( false ); }
7070 BOOST_CHECK ( false );
7171 }
@@ -125,8 +125,8 @@ void test_nonhex_input4 () {
125125 std::string s;
126126
127127 try { ba::unhex ( " P1234FA1234" , std::back_inserter (s)); }
128- catch ( const ba::not_enough_input &ex ) { BOOST_CHECK ( false ); }
129- catch ( const ba::non_hex_input &ex ) { return ; }
128+ catch ( const ba::not_enough_input & ) { BOOST_CHECK ( false ); }
129+ catch ( const ba::non_hex_input & ) { return ; }
130130 catch ( ... ) { BOOST_CHECK ( false ); }
131131 BOOST_CHECK ( false );
132132 }
0 commit comments