Use clang by default and enable more warnings.

This commit is contained in:
Tor Andersson
2014-02-25 01:01:20 +01:00
parent 70b0d8b902
commit a98748a0ce
2 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -2,7 +2,8 @@ SRCS := $(wildcard js*.c utf*.c regex.c)
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
+8 -1
View File
@@ -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)
{