From 37182d39703e91b6d7890854c63caa25c6bd7078 Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Fri, 24 Jan 2025 17:21:12 +0100 Subject: [PATCH] disable warning 474 for now --- Examples/test-suite/javascript/Makefile.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Examples/test-suite/javascript/Makefile.in b/Examples/test-suite/javascript/Makefile.in index 4b6ef0bba6..2de6d4ce5e 100644 --- a/Examples/test-suite/javascript/Makefile.in +++ b/Examples/test-suite/javascript/Makefile.in @@ -74,6 +74,10 @@ CPP_TEST_CASES += \ cpp11_shared_ptr_upcast \ cpp11_smart_pointer_compatibility +# FIXME: Return-value optimization is broken in NAPI +# https://github.com/mmomtchev/swig/issues/87 +typemap_out_optimal.cpptest: SWIGOPT += -w474 + # napi_exports_file is a test that uses Node.js ES6 and has no meaning in WASM ifneq (emcc, $(CC)) CPP_TEST_CASES += \ @@ -105,7 +109,6 @@ import_nomodule.cpptest: SWIGOPT += -w351 inherit_missing.cpptest: SWIGOPT += -w351 smart_pointer_static.cpptest: SWIGOPT += -w351 - ifneq (, $(ASYNC)) SWIGOPT += -async endif