From: antirez Date: Fri, 27 Mar 2009 20:37:57 +0000 (+0100) Subject: now Redis is C99-ok X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/53f8c2c71e5962eeaccb80d04d2e0ff575d520fd?ds=inline now Redis is C99-ok --- 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);