now Redis is C99-ok
This commit is contained in:
parent
17be1a4a17
commit
53f8c2c71e
2
Makefile
2
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
|
||||
|
2
sds.h
2
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user