ref: a98748a0ceb101824f1dcc33a37d44373b11fd91
parent: 70b0d8b902fd86542c6233570d8f7c724a45c1fb
author: Tor Andersson <tor@ccxvii.net>
date: Mon Feb 24 20:01:20 EST 2014
Use clang by default and enable more warnings.
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,8 @@
HDRS := $(wildcard js*.h utf.h regex.h)
OBJS := $(SRCS:%.c=build/%.o)
-CFLAGS = -Wall -g
+CC := clang
+CFLAGS := -Wall -Wextra -Wunreachable-code -Wno-unused-parameter -Werror -g
default: build js re
--- a/jsproperty.c
+++ b/jsproperty.c
@@ -18,7 +18,14 @@
split() fixes consecutive right horizontal links.
*/
-static js_Property sentinel = { "", &sentinel, &sentinel, 0 };
+static js_Property sentinel = {
+ "",
+ &sentinel, &sentinel,
+ NULL, NULL,
+ 0, 0,
+ { 0, { 0 } },
+ NULL, NULL
+};
static js_Property *newproperty(js_State *J, const char *name)
{