Forráskód Böngészése

test: silence warning in testsuite.h

silence warnings about unused parameters

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 11 éve
szülő
commit
bad7c039de
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      test/testsuite.h

+ 3 - 2
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);