aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/thread/pthread5.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/thread/pthread5.cc')
-rw-r--r--libstdc++-v3/testsuite/thread/pthread5.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/thread/pthread5.cc b/libstdc++-v3/testsuite/thread/pthread5.cc
index cc556046d4d..262796e0ba7 100644
--- a/libstdc++-v3/testsuite/thread/pthread5.cc
+++ b/libstdc++-v3/testsuite/thread/pthread5.cc
@@ -50,7 +50,7 @@ struct tt_t
void*
thread_function (void* arg)
{
- int myid = *(int*) arg;
+ int myid __attribute__((unused)) = *(int*) arg;
for (int i = 0; i < LOOPS; i++)
{
vector<tt_t> myvect1;
@@ -88,7 +88,7 @@ thread_function (void* arg)
}
int
-main (int argc, char *argv[])
+main ()
{
int worker;
pthread_t threads[NTHREADS];