cleanup: explicitly mark unused parameters (-Wunused-parameter)
[urcu.git] / doc / examples / wfcqueue / cds_wfcq_splice.c
index bb2e51229a7257f90064dcd3d1e05b25c24e4190..cb6f76bb06be30e641961c87712d62bd18d18e37 100644 (file)
@@ -69,7 +69,7 @@ void print_queue(struct cds_wfcq_head *head,
        printf("\n");
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
        int values_A[] = { -5, 42, 36, 24, };
        int values_B[] = { 200, 300, 400, };
@@ -105,5 +105,6 @@ int main(int argc, char **argv)
        print_queue(&head_A, &tail_A, "queue A content after splice");
        print_queue(&head_B, &tail_B, "queue B content after splice");
 end:
+       cds_wfcq_destroy(&head_A, &tail_A);
        return ret;
 }
This page took 0.022676 seconds and 4 git commands to generate.