diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-09-11 09:21:55 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-09-11 13:00:23 +0000 |
commit | fb00a9fc397c5fc487218f7a84069837460f88ee (patch) | |
tree | 7e84838cb60608f0ebcaa0eca469f120374172be | |
parent | b32d2ea8c29203519fbd9c5e90b06941e7cd75f3 (diff) | |
download | gcc-fb00a9fc397c5fc487218f7a84069837460f88ee.zip gcc-fb00a9fc397c5fc487218f7a84069837460f88ee.tar.gz gcc-fb00a9fc397c5fc487218f7a84069837460f88ee.tar.bz2 |
libstdc++-v3/libsupc++/eh_call.cc: Avoid warning with -fno-exceptions.
When building with -fno-exceptions, __throw_exception_again expands to
nothing, causing a "suggest braces around empty body in an 'if'
statement" warning.
This patch adds braces, like what was done in eh_personality.cc in svn
r193295 (git g:54ba39f599fc2f3d59fd3cd828a301ce9b731a20)
2020-09-11 Torbjörn SVENSSON <torbjorn.svensson@st.com>
Christophe Lyon <christophe.lyon@linaro.org>
libstdc++-v3/
* libsupc++/eh_call.cc: Avoid warning with -fno-exceptions.
-rw-r--r-- | libstdc++-v3/libsupc++/eh_call.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/eh_call.cc b/libstdc++-v3/libsupc++/eh_call.cc index ee44b1a..d50c4fb 100644 --- a/libstdc++-v3/libsupc++/eh_call.cc +++ b/libstdc++-v3/libsupc++/eh_call.cc @@ -138,7 +138,7 @@ __cxa_call_unexpected(void* exc_obj_in) if (__cxa_type_match(&new_xh->unwindHeader, catch_type, false, &new_ptr) != ctm_failed) - __throw_exception_again; + { __throw_exception_again; } // If the exception spec allows std::bad_exception, throw that. // We don't have a thrown object to compare against, but since |