]> granicus.if.org Git - check/commitdiff
Use proper storage type for print_output
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:50 +0000 (04:13 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:50 +0000 (04:13 +0000)
This fix was necessary to get Check compiling with a c++ compiler.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1167 64e312b2-a51f-0410-8e61-82d0ca0eb02a

NEWS
tests/ex_output.c

diff --git a/NEWS b/NEWS
index 65ce1c89e25c2df0ace9968ad40c5533cd180b38..00381211fce21571dd2838b6d93d1c3ee6469133 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,10 @@ In Development:
   in CK_NOFORK mode are now closer to the contract, and are now
   enabled.
 
+* Various code cleanup, including changes for compiling Check on
+  c++ compilers Clang and g++ (which are less forgiving than their
+  c counterparts).
+
 
 Fri May 30, 2014: Released Check 0.9.13
   based on r1137 (2014-05-26 21:03:09 +0000)
index 9668303c3f60cd43933bca0b5da7b5c726899aa3..04dba543e5dc4676114b3f5afac3e764eb41edcd 100644 (file)
@@ -125,7 +125,7 @@ static void print_usage(void)
     printf("   then use the following mode: CK_SILENT STDOUT [NORMAL|EXIT_TEST].\n");
 }
 
-static void run_tests(int printmode, char *log_type, int include_exit_test)
+static void run_tests(enum print_output printmode, char *log_type, int include_exit_test)
 {
     SRunner *sr;
     int dump_everything_to_stdout = 0;
@@ -202,7 +202,7 @@ static void run_tests(int printmode, char *log_type, int include_exit_test)
 #define INCLUDE_EXIT_TEST_ARG 3
 int main(int argc, char **argv)
 {
-    int printmode;
+    enum print_output printmode;
     int include_exit_test;
 
     if(argc != 4)