Permalink
Browse files

Use flexible array member in C99 mode; silences clang array bounds wa…

…rnings [#778]

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
(cherry picked from commit 3ac5bf7)
  • Loading branch information...
1 parent 4c5f406 commit 66911a3859b56714b861ac8ab77b882a7e8bdce8 @ursetto committed Jan 16, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 chicken.h
View
@@ -669,7 +669,11 @@ static inline int isinf_ld (long double x)
typedef struct C_block_struct
{
C_header header;
+#if (__STDC_VERSION__ >= 199901L)
+ C_word data[];
+#else
C_word data[ 1 ];
+#endif
} C_SCHEME_BLOCK;
typedef struct C_symbol_table_struct

0 comments on commit 66911a3

Please sign in to comment.