Commit 53f8c2c7 authored by antirez's avatar antirez
Browse files

now Redis is C99-ok

parent 17be1a4a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# This file is released under the BSD license, see the COPYING file # This file is released under the BSD license, see the COPYING file
DEBUG?= -g DEBUG?= -g
CFLAGS?= -O2 -Wall -W -DSDS_ABORT_ON_OOM CFLAGS?= -std=c99 -pedantic -O2 -Wall -W -DSDS_ABORT_ON_OOM
CCOPT= $(CFLAGS) CCOPT= $(CFLAGS)
OBJ = adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o OBJ = adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o
......
...@@ -38,7 +38,7 @@ typedef char *sds; ...@@ -38,7 +38,7 @@ typedef char *sds;
struct sdshdr { struct sdshdr {
long len; long len;
long free; long free;
char buf[0]; char buf[];
}; };
sds sdsnewlen(const void *init, size_t initlen); sds sdsnewlen(const void *init, size_t initlen);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment