now Redis is C99-ok

This commit is contained in:
antirez 2009-03-27 21:37:57 +01:00
parent 17be1a4a17
commit 53f8c2c71e
2 changed files with 2 additions and 2 deletions

View File

@ -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

2
sds.h
View File

@ -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);