Hi, Christian Lask reported on #chicken that make check fails when Chicken is built with clang (see #917).
The attached patch seems to fix that problem (tested with clang 3.0). In the end, it just silents some warnings that break tests that rely on diff. Even if it is the proper fix, feel free to postpone it to after 4.8.0. Best wishes. Mario -- http://parenteses.org/mario
>From 3710897303dbb2e7c2e198f3aefa1ee5f11a0164 Mon Sep 17 00:00:00 2001 From: Mario Domenech Goulart <[email protected]> Date: Thu, 6 Sep 2012 22:10:42 -0300 Subject: [PATCH] chicken.h: define C_noret as __attribute__ ((noreturn)) for clang too Tested with clang 3.0. This fixes #917 --- chicken.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chicken.h b/chicken.h index f82c708..2db3782 100644 --- a/chicken.h +++ b/chicken.h @@ -226,11 +226,7 @@ void *alloca (); # ifndef __cplusplus # define C_cblock ({ # define C_cblockend }) -# ifdef __clang__ -# define C_noret -# else -# define C_noret __attribute__ ((noreturn)) -# endif +# define C_noret __attribute__ ((noreturn)) # define C_noret_decl(name) # define C_aligned __attribute__ ((aligned)) # endif -- 1.7.9.5
_______________________________________________ Chicken-hackers mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-hackers
