From 53f8c2c71e5962eeaccb80d04d2e0ff575d520fd Mon Sep 17 00:00:00 2001
From: antirez <antirez@gmail.com>
Date: Fri, 27 Mar 2009 21:37:57 +0100
Subject: [PATCH] now Redis is C99-ok

---
 Makefile | 2 +-
 sds.h    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index e45899e9..58afaa23 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 # This file is released under the BSD license, see the COPYING file
 
 DEBUG?= -g
-CFLAGS?= -O2 -Wall -W -DSDS_ABORT_ON_OOM
+CFLAGS?= -std=c99 -pedantic -O2 -Wall -W -DSDS_ABORT_ON_OOM
 CCOPT= $(CFLAGS)
 
 OBJ = adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o
diff --git a/sds.h b/sds.h
index ba2a5ca0..0fc2c928 100644
--- a/sds.h
+++ b/sds.h
@@ -38,7 +38,7 @@ typedef char *sds;
 struct sdshdr {
     long len;
     long free;
-    char buf[0];
+    char buf[];
 };
 
 sds sdsnewlen(const void *init, size_t initlen);
-- 
2.45.2