diff options
| author | Jonathan Wakely <jwakely@redhat.com> | 2025-07-04 17:03:27 +0100 |
|---|---|---|
| committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-07-05 00:08:28 +0100 |
| commit | eeea445e1d0f0aac813d4eccd7b8f55477772dd0 (patch) | |
| tree | 7b799e19ec32026592b9d22506291d18ab796b57 /maintainer-scripts | |
| parent | 106591f79a3beaed226400fbdc568e95229dc936 (diff) | |
libstdc++: Avoid -Wswitch warning from chrono formatters
Add a default case to the switch to suppress warnings about unhandled
enumeration values. This is a consteval function, so if the default case
is ever reached it will be an error not silent miscompilation.
libstdc++-v3/ChangeLog:
* include/bits/chrono_io.h (__formatter_duration::_S_spec_for):
Add default case to switch and use __builtin_unreachable.
Diffstat (limited to 'maintainer-scripts')
0 files changed, 0 insertions, 0 deletions
