You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/tmp/.xmake1000/240723/_34FB2A73DA9544B7B2BAB79D60CD9A2F.cpp:6:26: error: function declared noreturn' should not return [-Werror,-Winvalid-noreturn]
6 | void test()
The text was updated successfully, but these errors were encountered:
Xmake Version
2.9.3+20240723
Operating System Version and Architecture
Kubuntu 24.04
Describe Bug
The pkgtest fail if warning as error are enabled in a custom toolchains.
Expected Behavior
Test must not fail if warning as error are enabled.
The test should look like that to ensure that 'test' method does NOT return
HEDLEY_NO_RETURN void test() { std::abort(); }
Project Configuration
toolchain("xxx-clang")
set_kind("standalone")
toolchain_end()
-- <-- toolchain
-- dependencies -->
add_toolchains("nos-clang")
add_requires(
"hedley",
{ system = false }
)
target("nos.elf")
set_default(true)
set_kind("binary")
set_toolchains("nos-clang")
add_files("**.cpp")
Additional Information and Error Logs
=> install hedley v15 .. failed
/tmp/.xmake1000/240723/_34FB2A73DA9544B7B2BAB79D60CD9A2F.cpp:6:26: error: function declared noreturn' should not return [-Werror,-Winvalid-noreturn]
6 | void test()
The text was updated successfully, but these errors were encountered: