]> granicus.if.org Git - check/commitdiff
* silence some more unused parameter warnings
authorcpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 28 Dec 2008 22:16:00 +0000 (22:16 +0000)
committercpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 28 Dec 2008 22:16:00 +0000 (22:16 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@471 64e312b2-a51f-0410-8e61-82d0ca0eb02a

src/check_log.c
src/check_print.c
tests/check_check_sub.c

index 2cb9a77f143ad49e9320c433476667fce358b6d1..1d2a3c443726403a6649cf71856df354a2d20357 100644 (file)
@@ -173,7 +173,7 @@ void stdout_lfun (SRunner *sr, FILE *file, enum print_output printmode,
   
 }
 
-void lfile_lfun (SRunner *sr, FILE *file, enum print_output printmode,
+void lfile_lfun (SRunner *sr, FILE *file, enum print_output printmode CK_ATTRIBUTE_UNUSED,
                 void *obj, enum cl_event evt)
 {
   TestResult *tr;
@@ -208,7 +208,7 @@ void lfile_lfun (SRunner *sr, FILE *file, enum print_output printmode,
   
 }
 
-void xml_lfun (SRunner *sr, FILE *file, enum print_output printmode,
+void xml_lfun (SRunner *sr CK_ATTRIBUTE_UNUSED, FILE *file, enum print_output printmode CK_ATTRIBUTE_UNUSED,
                  void *obj, enum cl_event evt)
 {
   TestResult *tr;
index 46c20dae6a0fc031ad712b36c3909e49177eac96..8ea87d0887bfd35fba9e1ba6bdfd432ce9ee44d4 100644 (file)
@@ -92,7 +92,7 @@ void tr_fprint (FILE *file, TestResult *tr, enum print_output print_mode)
   }
 }
 
-void tr_xmlprint (FILE *file, TestResult *tr, enum print_output print_mode)
+void tr_xmlprint (FILE *file, TestResult *tr, enum print_output print_mode CK_ATTRIBUTE_UNUSED)
 {
   char result[10];
   char *path_name;
index d49e95a9c07d18dcbe8d22c2cb8e6072245103b5..60626301b70c80dee18029aadfa71d46fa217875 100644 (file)
@@ -313,9 +313,9 @@ END_TEST
 
 START_TEST(test_fork1p_pass)
 {
-  pid_t pid;
-  
 #ifdef _POSIX_VERSION
+  pid_t pid;
+
   if((pid = fork()) < 0) {
     fail("Failed to fork new process");
   } else if (pid > 0) {
@@ -334,9 +334,9 @@ END_TEST
 
 START_TEST(test_fork1p_fail)
 {
+#ifdef _POSIX_VERSION
   pid_t pid;
   
-#ifdef _POSIX_VERSION
   if((pid = fork()) < 0) {
     fail("Failed to fork new process");
   } else if (pid > 0) {