cleanup: explicitly mark unused parameters (-Wunused-parameter)
[lttng-ust.git] / tests / benchmark / bench.c
index 166dc910b426c24fda47af5f1c49a7649eeb6904..a5afa76909a90e40b7f358f0584fddccd753f1c2 100644 (file)
@@ -37,6 +37,7 @@ static unsigned long duration;
 
 static volatile int test_go, test_stop;
 
+static
 void do_stuff(void)
 {
        int i;
@@ -51,7 +52,9 @@ void do_stuff(void)
 #endif
 }
 
-void *function(void *arg)
+
+static
+void *function(void *arg __attribute__((unused)))
 {
        unsigned long long nr_loops = 0;
        struct thread_counter *thread_counter = arg;
@@ -69,6 +72,7 @@ void *function(void *arg)
        return NULL;
 }
 
+static
 void usage(char **argv) {
        printf("Usage: %s nr_threads duration(s) <OPTIONS>\n", argv[0]);
        printf("OPTIONS:\n");
This page took 0.022865 seconds and 4 git commands to generate.