libstdc++-v3/libsupc++/eh_call.cc: Avoid "set but not used" warning
authorChristophe Lyon <christophe.lyon@linaro.org>
Fri, 11 Sep 2020 12:07:02 +0000 (12:07 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Fri, 11 Sep 2020 13:00:29 +0000 (13:00 +0000)
commit55bdee9af3cff04192c64a573fa1767b48918efa
tree46e88856d621ab4123c0d0ddc23aee274e85ebbf
parentfb00a9fc397c5fc487218f7a84069837460f88ee
libstdc++-v3/libsupc++/eh_call.cc: Avoid "set but not used" warning

When building with -fno-exceptions, bad_exception_allowed is set but
not used, causing a warning during the build.

This patch adds __attribute__((unused)) to avoid it.

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.
libstdc++-v3/libsupc++/eh_call.cc