Landing: 18f299849d3d
Project / Subsystem
gcc / libstdc++
Date
2026-08-17
Author
Pietro Monteiro
Commit
18f299849d3dd151b62e2214dfebaa5ecdebe9b5
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 18f299849d3dd151b62e2214dfebaa5ecdebe9b5
- source_type
- github
- headline
- OpenBSD ctype_base masks use static_cast to prevent warnings
- tldr
- Explicitly casts ctype_base masks to prevent potential overflow warnings on OpenBSD.
- author
- Pietro Monteiro
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • openbsd
- • warnings
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-17T00:00:00.000Z
On OpenBSD, a previous fix for ctype_base masks caused warnings on platforms where char is signed. This change introduces static_cast<mask> to make the conversion of mask constants explicit, preventing potential overflow or signedness change warnings and ensuring type safety.