Ticket #778: 0001-Use-flexible-array-member-in-C99-mode-silences-clang.patch

File 0001-Use-flexible-array-member-in-C99-mode-silences-clang.patch, 706 bytes (added by Jim Ursetto, 12 years ago)
  • chicken.h

    From c90ff2a5708426b60f7d6da65f71d6b55a80d59e Mon Sep 17 00:00:00 2001
    From: Jim Ursetto <zbigniewsz@gmail.com>
    Date: Mon, 16 Jan 2012 00:02:09 -0600
    Subject: [PATCH] Use flexible array member in C99 mode; silences clang array
     bounds warnings [#778]
    
    ---
     chicken.h |    4 ++++
     1 files changed, 4 insertions(+), 0 deletions(-)
    
    diff --git a/chicken.h b/chicken.h
    index 0ca8665..47bdcd1 100644
    a b static inline int isinf_ld (long double x) 
    669669typedef struct C_block_struct
    670670{
    671671  C_header header;
     672#if (__STDC_VERSION__ >= 199901L)
     673  C_word data[];
     674#else
    672675  C_word data[ 1 ];
     676#endif
    673677} C_SCHEME_BLOCK;
    674678
    675679typedef struct C_symbol_table_struct