aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2024-09-15 11:48:46 +0200
committerJason Merrill <jason@redhat.com>2024-09-18 17:33:46 -0400
commitaa338bdd46a4946e9d5ac0923ce9bf9bc621c852 (patch)
treef2031e08093a4d5411be5d73e7c8df9431335633
parentcc62b2c3da118f08f71d2ae9c08bafb55b35767a (diff)
downloadgcc-aa338bdd46a4946e9d5ac0923ce9bf9bc621c852.zip
gcc-aa338bdd46a4946e9d5ac0923ce9bf9bc621c852.tar.gz
gcc-aa338bdd46a4946e9d5ac0923ce9bf9bc621c852.tar.bz2
libstdc++: add braces
GCC compiles with -fno-exceptions, so __throw_exception_again is a no-op, and compilation gives a -Wempty-body warning here, so let's wrap it as is already done in a few other files. libstdc++-v3/ChangeLog: * include/bits/basic_ios.h: Add braces.
-rw-r--r--libstdc++-v3/include/bits/basic_ios.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/basic_ios.h b/libstdc++-v3/include/bits/basic_ios.h
index bc3be4d..2c2334d 100644
--- a/libstdc++-v3/include/bits/basic_ios.h
+++ b/libstdc++-v3/include/bits/basic_ios.h
@@ -171,7 +171,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Turn this on without causing an ios::failure to be thrown.
_M_streambuf_state |= __state;
if (this->exceptions() & __state)
- __throw_exception_again;
+ { __throw_exception_again; }
}
/**