Ticket #917: 0001-chicken.h-define-C_noret-as-__attribute__-noreturn-f.patch

File 0001-chicken.h-define-C_noret-as-__attribute__-noreturn-f.patch, 899 bytes (added by Mario Domenech Goulart, 9 years ago)

Patch submitted to chicken-hackers

  • chicken.h

    From 3710897303dbb2e7c2e198f3aefa1ee5f11a0164 Mon Sep 17 00:00:00 2001
    From: Mario Domenech Goulart <mario.goulart@gmail.com>
    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 b void *alloca (); 
    226226# ifndef __cplusplus
    227227#  define C_cblock                ({
    228228#  define C_cblockend             })
    229 #  ifdef __clang__
    230 #   define C_noret
    231 #  else
    232 #   define C_noret                __attribute__ ((noreturn))
    233 #  endif
     229#  define C_noret                 __attribute__ ((noreturn))
    234230#  define C_noret_decl(name)
    235231#  define C_aligned               __attribute__ ((aligned))
    236232# endif