diff mbox series

[pushed] libstdc++: add braces

Message ID 20240918213255.264259-1-jason@redhat.com
State New
Headers show
Series [pushed] libstdc++: add braces | expand

Commit Message

Jason Merrill Sept. 18, 2024, 9:32 p.m. UTC
Tested x86_64-pc-linux-gnu, applying to trunk as obvious.

-- 8< --

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.
---
 libstdc++-v3/include/bits/basic_ios.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 5c8f9f4d4cebabf85e68c5bdbe2d4ee6646edc7c
diff mbox series

Patch

diff --git a/libstdc++-v3/include/bits/basic_ios.h b/libstdc++-v3/include/bits/basic_ios.h
index bc3be4d2e37..2c2334d0fe3 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; }
       }
 
       /**