OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74dd5ff
)
test: silence warning in testsuite.h
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Sat, 23 Feb 2013 09:04:10 +0000
(10:04 +0100)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Thu, 14 Mar 2013 21:49:25 +0000
(22:49 +0100)
silence warnings about unused parameters
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
test/testsuite.h
patch
|
blob
|
history
diff --git
a/test/testsuite.h
b/test/testsuite.h
index
afc45b0
..
84c7815
100644
(file)
--- 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);