Hi,

I will push the attached patch, since it is trivial.

Thanks for the patch, Jim.

Bye!

Christian

-- 
Who can (make) the muddy water (clear)? Let it be still, and it will
gradually become clear. Who can secure the condition of rest? Let
movement go on, and the condition of rest will gradually arise.
 -- Lao Tse. 
>From 3ac5bf73c0bec0c5f230ac685e4a17d69a7ea382 Mon Sep 17 00:00:00 2001
From: Jim Ursetto <zbignie...@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]

Signed-off-by: Christian Kellermann <ck...@pestilenz.org>
---
 chicken.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/chicken.h b/chicken.h
index fecdcee..2ced110 100644
--- a/chicken.h
+++ b/chicken.h
@@ -675,7 +675,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
-- 
1.7.4.1

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to