aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-17 10:33:37 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-17 10:33:37 +0000
commit26ed3732876a649fb02a83e768e4392034d65653 (patch)
tree35d18da4d34fc6cf74a93112df3b27efa4a46662 /test
parentcbbe7cce8c93cf578d35cde1506e83a802e4eb05 (diff)
downloadChibiOS-26ed3732876a649fb02a83e768e4392034d65653.tar.gz
ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.tar.bz2
ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1229 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/test.c1
-rw-r--r--test/testbmk.c5
-rw-r--r--test/testevt.c7
-rw-r--r--test/testmtx.c10
-rw-r--r--test/testsem.c2
5 files changed, 21 insertions, 4 deletions
diff --git a/test/test.c b/test/test.c
index bbeb9adc4..7a9ad51fc 100644
--- a/test/test.c
+++ b/test/test.c
@@ -211,6 +211,7 @@ static VirtualTimer vt;
bool_t test_timer_done;
static void tmr(void *p) {
+ (void)p;
test_timer_done = TRUE;
}
diff --git a/test/testbmk.c b/test/testbmk.c
index 0e5c482f8..dd92dcbf6 100644
--- a/test/testbmk.c
+++ b/test/testbmk.c
@@ -66,6 +66,7 @@ static Mutex mtx1;
static msg_t thread1(void *p) {
msg_t msg;
+ (void)p;
do {
chMsgRelease(msg = chMsgWait());
} while (msg);
@@ -223,6 +224,7 @@ msg_t thread4(void *p) {
msg_t msg;
Thread *self = chThdSelf();
+ (void)p;
chSysLock();
do {
chSchGoSleepS(PRSUSPENDED);
@@ -367,6 +369,7 @@ const struct testcase testbmk6 = {
static msg_t thread3(void *p) {
+ (void)p;
while (!chThdShouldTerminate())
chSemWait(&sem1);
return 0;
@@ -544,7 +547,7 @@ static char *bmk10_gettest(void) {
return "Benchmark, virtual timers set/reset";
}
-static void tmo(void *param) {}
+static void tmo(void *param) {(void)param;}
static void bmk10_execute(void) {
static VirtualTimer vt1, vt2;
diff --git a/test/testevt.c b/test/testevt.c
index eb7e9275c..ab9b999ca 100644
--- a/test/testevt.c
+++ b/test/testevt.c
@@ -84,9 +84,9 @@ static void evt1_setup(void) {
chEvtClear(ALL_EVENTS);
}
-static void h1(eventid_t id) {test_emit_token('A');}
-static void h2(eventid_t id) {test_emit_token('B');}
-static void h3(eventid_t id) {test_emit_token('C');}
+static void h1(eventid_t id) {(void)id;test_emit_token('A');}
+static void h2(eventid_t id) {(void)id;test_emit_token('B');}
+static void h3(eventid_t id) {(void)id;test_emit_token('C');}
static const evhandler_t evhndl[] = {h1, h2, h3};
static void evt1_execute(void) {
@@ -151,6 +151,7 @@ static msg_t thread1(void *p) {
static msg_t thread2(void *p) {
+ (void)p;
chEvtBroadcast(&es1);
chThdSleepMilliseconds(50);
chEvtBroadcast(&es2);
diff --git a/test/testmtx.c b/test/testmtx.c
index 368b98fd9..e2101ae4d 100644
--- a/test/testmtx.c
+++ b/test/testmtx.c
@@ -165,6 +165,7 @@ static void mtx2_setup(void) {
/* Low priority thread */
static msg_t thread2L(void *p) {
+ (void)p;
chMtxLock(&m1);
test_cpu_pulse(40);
chMtxUnlock();
@@ -176,6 +177,7 @@ static msg_t thread2L(void *p) {
/* Medium priority thread */
static msg_t thread2M(void *p) {
+ (void)p;
chThdSleepMilliseconds(20);
test_cpu_pulse(40);
test_emit_token('B');
@@ -185,6 +187,7 @@ static msg_t thread2M(void *p) {
/* High priority thread */
static msg_t thread2H(void *p) {
+ (void)p;
chThdSleepMilliseconds(40);
chMtxLock(&m1);
test_cpu_pulse(10);
@@ -257,6 +260,7 @@ static void mtx3_setup(void) {
/* Lowest priority thread */
static msg_t thread3LL(void *p) {
+ (void)p;
chMtxLock(&m1);
test_cpu_pulse(30);
chMtxUnlock();
@@ -267,6 +271,7 @@ static msg_t thread3LL(void *p) {
/* Low priority thread */
static msg_t thread3L(void *p) {
+ (void)p;
chThdSleepMilliseconds(10);
chMtxLock(&m2);
test_cpu_pulse(20);
@@ -282,6 +287,7 @@ static msg_t thread3L(void *p) {
/* Medium priority thread */
static msg_t thread3M(void *p) {
+ (void)p;
chThdSleepMilliseconds(20);
chMtxLock(&m2);
test_cpu_pulse(10);
@@ -293,6 +299,7 @@ static msg_t thread3M(void *p) {
/* High priority thread */
static msg_t thread3H(void *p) {
+ (void)p;
chThdSleepMilliseconds(40);
test_cpu_pulse(20);
test_emit_token('B');
@@ -302,6 +309,7 @@ static msg_t thread3H(void *p) {
/* Highest priority thread */
static msg_t thread3HH(void *p) {
+ (void)p;
chThdSleepMilliseconds(50);
chMtxLock(&m2);
test_cpu_pulse(10);
@@ -355,6 +363,7 @@ static void mtx4_setup(void) {
static msg_t thread4a(void *p) {
+ (void)p;
chThdSleepMilliseconds(50);
chMtxLock(&m2);
chMtxUnlock();
@@ -363,6 +372,7 @@ static msg_t thread4a(void *p) {
static msg_t thread4b(void *p) {
+ (void)p;
chThdSleepMilliseconds(150);
chMtxLock(&m1);
chMtxUnlock();
diff --git a/test/testsem.c b/test/testsem.c
index 77025fc71..a49509a91 100644
--- a/test/testsem.c
+++ b/test/testsem.c
@@ -135,6 +135,7 @@ static void sem2_setup(void) {
static msg_t thread2(void *p) {
+ (void)p;
chThdSleepMilliseconds(50);
chSysLock();
chSemSignalI(&sem1); /* For coverage reasons */
@@ -215,6 +216,7 @@ static void sem3_setup(void) {
static msg_t thread3(void *p) {
+ (void)p;
chSemWait(&sem1);
chSemSignal(&sem1);
return 0;