shithub: libmujs

Download patch

ref: fd0ff38ad0ded3512173425407e1cdceb1fcabf2
parent: e7e1e0de9ce6a17e020f3267ba2175779395b2c3
author: Tor Andersson <tor@ccxvii.net>
date: Wed Feb 26 07:57:35 EST 2014

Remove -Werror.

--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 OBJS := $(SRCS:%.c=build/%.o)
 
 CC := clang
-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wunreachable-code -Wno-unused-parameter -Werror -g
+CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wunreachable-code -Wno-unused-parameter -g
 
 default: build js re
 
@@ -11,7 +11,7 @@
 	mkdir -p build
 
 build/%.o : %.c $(HDRS)
-	$(CC) -c $< -o $@ $(CFLAGS)
+	$(CC) $(CFLAGS) -o $@ -c $<
 
 build/libjs.a: $(OBJS)
 	ar cru $@ $^
@@ -34,7 +34,7 @@
 	ls $(SRCS) | awk '{print "#include \""$$1"\""}' > $@
 
 jsone: build/main.o build/libjs.o
-	$(CC) -o $@ $^ -lm
+	$(CC) $(CFLAGS) -o $@ $^ -lm
 
 tags: $(SRCS) main.c $(HDRS)
 	ctags $^