gh-119049: Fix incorrect usage of GET_WARNINGS_ATTR
#119063
Merged
GET_WARNINGS_ATTR
#119063