summaryrefslogtreecommitdiff
path: root/test/test_vector1.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_vector1.pass.cpp')
-rw-r--r--test/test_vector1.pass.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_vector1.pass.cpp b/test/test_vector1.pass.cpp
index 978ed3c..0f3acd2 100644
--- a/test/test_vector1.pass.cpp
+++ b/test/test_vector1.pass.cpp
@@ -25,36 +25,36 @@ 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 ) {
+void throw_construct ( void * ) {
#ifndef LIBCXXABI_HAS_NO_EXCEPTIONS
if ( gConstructorCounter == gConstructorThrowTarget )
throw 1;
++gConstructorCounter;
#endif
}
-void throw_destruct ( void *p ) {
+void throw_destruct ( void * ) {
#ifndef LIBCXXABI_HAS_NO_EXCEPTIONS
if ( ++gDestructorCounter == gDestructorThrowTarget )
throw 2;
@@ -269,7 +269,7 @@ int test_exception_in_destructor ( ) {
}
#endif
-int main ( int argc, char *argv [] ) {
+int main () {
int retVal = 0;
retVal += test_empty ();
retVal += test_counted ();