From 695150b0378528233837348b598033b137b8a949 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Mon, 4 May 2020 21:12:30 +0200 Subject: Add YS_FALLTHROUGH macro to mark case fall-through C++17 introduced [[fallthrough]], GCC and clang had their own vendored attributes before that. MSVC doesn't seem to have such a warning at all. --- backends/cxxrtl/cxxrtl.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backends/cxxrtl/cxxrtl.cc') diff --git a/backends/cxxrtl/cxxrtl.cc b/backends/cxxrtl/cxxrtl.cc index e7711962f..133f56663 100644 --- a/backends/cxxrtl/cxxrtl.cc +++ b/backends/cxxrtl/cxxrtl.cc @@ -2346,16 +2346,22 @@ struct CxxrtlBackend : public Backend { case 6: worker.max_opt_level = true; worker.run_proc_flatten = true; + YS_FALLTHROUGH case 5: worker.run_opt_clean_purge = true; + YS_FALLTHROUGH case 4: worker.localize_public = true; + YS_FALLTHROUGH case 3: worker.elide_public = true; + YS_FALLTHROUGH case 2: worker.localize_internal = true; + YS_FALLTHROUGH case 1: worker.elide_internal = true; + YS_FALLTHROUGH case 0: break; default: -- cgit v1.2.3