diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-12-24 00:37:13 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-12-24 00:37:13 +0000 |
commit | a140cba79552ec4110643b5193b69228ea61d975 (patch) | |
tree | 70e09cfdd4be674397784294940ed2e2b283c498 /libcxxabi/test/test_vector2.pass.cpp | |
parent | 9e317127adec29a893f5e34e5e2094b81b0e0c4e (diff) | |
download | bcm5719-llvm-a140cba79552ec4110643b5193b69228ea61d975.tar.gz bcm5719-llvm-a140cba79552ec4110643b5193b69228ea61d975.zip |
Fix warnings in libc++abi tests
llvm-svn: 290471
Diffstat (limited to 'libcxxabi/test/test_vector2.pass.cpp')
-rw-r--r-- | libcxxabi/test/test_vector2.pass.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libcxxabi/test/test_vector2.pass.cpp b/libcxxabi/test/test_vector2.pass.cpp index 4bc279d75b9..5a5ff06f4eb 100644 --- a/libcxxabi/test/test_vector2.pass.cpp +++ b/libcxxabi/test/test_vector2.pass.cpp @@ -28,30 +28,30 @@ void my_dealloc2 ( void *p ) { std::free ( p ); } -void my_dealloc3 ( void *p, size_t sz ) { +void my_dealloc3 ( void *p, size_t ) { // std::printf ( "Freeing %lx (size %ld)\n", (unsigned long) p, sz ); std::free ( p ); } -void my_construct ( void *p ) { +void my_construct ( void *) { // std::printf ( "Constructing %lx\n", (unsigned long) p ); } -void my_destruct ( void *p ) { +void my_destruct ( void *) { // std::printf ( "Destructing %lx\n", (unsigned long) p ); } int gCounter; -void count_construct ( void *p ) { ++gCounter; } -void count_destruct ( void *p ) { --gCounter; } +void count_construct ( void * ) { ++gCounter; } +void count_destruct ( void * ) { --gCounter; } int gConstructorCounter; int gConstructorThrowTarget; int gDestructorCounter; int gDestructorThrowTarget; -void throw_construct ( void *p ) { if ( gConstructorCounter == gConstructorThrowTarget ) throw 1; ++gConstructorCounter; } -void throw_destruct ( void *p ) { if ( ++gDestructorCounter == gDestructorThrowTarget ) throw 2; } +void throw_construct ( void * ) { if ( gConstructorCounter == gConstructorThrowTarget ) throw 1; ++gConstructorCounter; } +void throw_destruct ( void * ) { if ( ++gDestructorCounter == gDestructorThrowTarget ) throw 2; } struct vec_on_stack { void *storage; @@ -78,7 +78,7 @@ void test_exception_in_destructor ( ) { -int main ( int argc, char *argv [] ) { +int main () { std::set_terminate ( my_terminate ); test_exception_in_destructor (); return 1; // we failed if we get here |