Skip to content

Commit 53f8c2c

Browse files
committed
now Redis is C99-ok
1 parent 17be1a4 commit 53f8c2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file is released under the BSD license, see the COPYING file
44

55
DEBUG?= -g
6-
CFLAGS?= -O2 -Wall -W -DSDS_ABORT_ON_OOM
6+
CFLAGS?= -std=c99 -pedantic -O2 -Wall -W -DSDS_ABORT_ON_OOM
77
CCOPT= $(CFLAGS)
88

99
OBJ = adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o

sds.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ typedef char *sds;
3838
struct sdshdr {
3939
long len;
4040
long free;
41-
char buf[0];
41+
char buf[];
4242
};
4343

4444
sds sdsnewlen(const void *init, size_t initlen);

0 commit comments

Comments
 (0)