projects
/
platform
/
upstream
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9b070e
)
example: Fix build warnings of run_tests.
author
Andreas Schneider
<asn@cryptomilk.org>
Tue, 31 May 2011 19:44:54 +0000
(21:44 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 31 May 2011 19:44:54 +0000
(21:44 +0200)
src/example/run_tests.c
patch
|
blob
|
history
diff --git
a/src/example/run_tests.c
b/src/example/run_tests.c
index
25b3563
..
fe878be
100644
(file)
--- a/
src/example/run_tests.c
+++ b/
src/example/run_tests.c
@@
-19,12
+19,14
@@
#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);
}