summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/meson.build2
-rw-r--r--test/test_filesystem.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/test/meson.build b/test/meson.build
index 29b00ad..6691f46 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -167,7 +167,7 @@ if not get_option('tests_cpp').disabled() and add_languages(
cpp = meson.get_compiler('cpp')
cpp_test_args = []
- if cpp.get_id() == 'clang'
+ if cpp.get_id() in ['clang', 'emscripten']
cpp_test_args = [
'-Weverything',
'-Wno-c++98-compat',
diff --git a/test/test_filesystem.c b/test/test_filesystem.c
index 18a6efc..5006676 100644
--- a/test/test_filesystem.c
+++ b/test/test_filesystem.c
@@ -690,6 +690,9 @@ int
main(const int argc, char** const argv)
{
#ifdef __EMSCRIPTEN__
+ (void)argc;
+ (void)argv;
+
const char* const data_file_path = NULL;
#else
const char* const data_file_path = argc > 1 ? argv[1] : "build.ninja";