summaryrefslogtreecommitdiff
path: root/test/testsuite.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-23 10:04:10 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-03-14 22:49:25 +0100
commitbad7c039de70b7a00727a6b0bcd30b9f5ba10699 (patch)
tree9ca6af9ed2b72d403d26c9a1882bbffa55640980 /test/testsuite.h
parent74dd5ff42ccbccfbca98fc9c7addf3da1c8a6856 (diff)
test: silence warning in testsuite.h
silence warnings about unused parameters Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test/testsuite.h')
-rw-r--r--test/testsuite.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/testsuite.h b/test/testsuite.h
index afc45b0c0..84c78156a 100644
--- a/test/testsuite.h
+++ b/test/testsuite.h
@@ -27,11 +27,12 @@ void error_msg(int result, int line, const char* file, const char* command)
{
failures++;
- printf("\nFAILED TEST %lu: \n\t%s\n", (unsigned long)test_number, command);
+ printf("\nFAILED TEST %lu: \n\t%s\nResult: %d",
+ (unsigned long)test_number, command, result);
printf("AT LINE: %d, FILE: %s\n\n", line, file);
}
-void success_msg(int result, const char* command)
+void success_msg(int result __attribute__((unused)), const char* command __attribute__((unused)))
{
#if 0
printf("passed test: %s == 0\n", command);