example: Fix build warnings of run_tests.
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 31 May 2011 19:44:54 +0000 (21:44 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 31 May 2011 19:44:54 +0000 (21:44 +0200)
src/example/run_tests.c

index 25b3563..fe878be 100644 (file)
 #include <cmockery.h>
 
 // A test case that does nothing and succeeds.
-void null_test_success(void **state) {
+static void null_test_success(void **state) {
+    (void) state;
 }
 
-int main(int argc, char* argv[]) {
+int main(void) {
     const UnitTest tests[] = {
         unit_test(null_test_success),
     };
+
     return run_tests(tests);
 }