From: brarcher Date: Mon, 23 Jun 2014 04:13:50 +0000 (+0000) Subject: Use proper storage type for print_output X-Git-Tag: 0.10.0~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=095d2d27e5fb62c3b35ac98a733ec96fe72711af;p=check Use proper storage type for print_output 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 --- diff --git a/NEWS b/NEWS index 65ce1c8..0038121 100644 --- 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) diff --git a/tests/ex_output.c b/tests/ex_output.c index 9668303..04dba54 100644 --- a/tests/ex_output.c +++ b/tests/ex_output.c @@ -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)