mirror of
https://github.com/ccxvii/mujs.git
synced 2026-09-24 01:03:35 +08:00
Use clang by default and enable more warnings.
This commit is contained in:
@@ -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
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user