summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2009-03-27 21:37:57 +0100
committerantirez <antirez@gmail.com>2009-03-27 21:37:57 +0100
commit53f8c2c71e5962eeaccb80d04d2e0ff575d520fd (patch)
tree54fa8431230a243f15839565cd70572bfff98849
parent17be1a4a173461772230716ad99d373a512e8f9e (diff)
downloadredis-53f8c2c71e5962eeaccb80d04d2e0ff575d520fd.tar.gz
now Redis is C99-ok
-rw-r--r--Makefile2
-rw-r--r--sds.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e45899e91..58afaa237 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 ba2a5ca0b..0fc2c9281 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);