Skip to content

Commit 06ebef4

Browse files
committed
Add warning options to extra test makefiles
1 parent 90ccbf6 commit 06ebef4

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

extras/console/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.PHONY: test
44
test:
5-
gcc -o $@ -I../../src/ -I. ../../src/duktape.c duk_console.c test.c -lm
5+
gcc -std=c99 -Wall -Wextra -o $@ -I../../src/ -I. ../../src/duktape.c duk_console.c test.c -lm
66
./test 'console.assert(true, "not shown");'
77
./test 'console.assert(false, "shown", { foo: 123 });'
88
./test 'console.log(1, 2, 3, { foo: "bar" });'

extras/duk-v1-compat/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
.PHONY: test
44
test:
5-
gcc -o $@ -I../../src/ -I. ../../src/duktape.c duk_v1_compat.c test.c -lm
5+
gcc -std=c99 -Wall -Wextra -o $@ -I../../src/ -I. ../../src/duktape.c duk_v1_compat.c test.c -lm
66
./test

extras/logging/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# For manual testing; say 'make' in extras/logging and run ./test.
22
.PHONY: test
33
test:
4-
gcc -otest -I../../src ../../src/duktape.c duk_logging.c test.c -lm
4+
gcc -std=c99 -Wall -Wextra -otest -I../../src ../../src/duktape.c duk_logging.c test.c -lm
55
./test 'L = new Duktape.Logger(); L.trace("testing"); L.l = 0; L.trace("testing 2");'
66
./test 'L = new Duktape.Logger(); L.debug("testing"); L.l = 1; L.debug("testing 2");'
77
./test 'L = new Duktape.Logger(); L.info("testing");'

extras/minimal-printf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Just for manual testing
22
.PHONY: test
33
test: duk_minimal_printf.c
4-
gcc -fno-stack-protector -m32 -otest -Wall -Wextra -Os -fomit-frame-pointer duk_minimal_printf.c test.c
4+
gcc -std=c99 -Wall -Wextra -fno-stack-protector -m32 -Os -fomit-frame-pointer -otest duk_minimal_printf.c test.c
55
./test

extras/module-node/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.PHONY: test
44
test:
5-
gcc -Wall -Wextra -std=c99 -o $@ -I../../src/ -I. ../../src/duktape.c duk_module_node.c test.c -lm
5+
gcc -std=c99 -Wall -Wextra -o $@ -I../../src/ -I. ../../src/duktape.c duk_module_node.c test.c -lm
66
@printf '\n'
77
./test 'assert(typeof require("pig") === "string", "basic require()");'
88
./test 'assert(require("cow").indexOf("pig") !== -1, "nested require()");'

extras/print-alert/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# For manual testing; say 'make' in extras/print-alert and run ./test.
22
.PHONY: test
33
test:
4-
gcc -otest -I../../src ../../src/duktape.c duk_print_alert.c test.c -lm
4+
gcc -std=c99 -Wall -Wextra -otest -I../../src ../../src/duktape.c duk_print_alert.c test.c -lm
55
./test 'print("foo", "bar", 1, 2, 3)'
66
./test 'alert("foo", "bar", 1, 2, 3)'

0 commit comments

Comments
 (0)