Skip to content

Commit a4ae527

Browse files
committed
Fix __maybe_unused__
1 parent 57c6da5 commit a4ae527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__memory/array_cookie.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct __has_array_cookie : false_type {};
8585
// [2]: https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Handle-C++-differences
8686
template <class _Tp>
8787
// Avoid failures when -fsanitize-address-poison-custom-array-cookie is enabled
88-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_NO_SANITIZE("address") size_t __get_array_cookie([[maybe_unused]] _Tp const* __ptr) {
88+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_NO_SANITIZE("address") size_t __get_array_cookie([[__maybe_unused__]] _Tp const* __ptr) {
8989
static_assert(
9090
__has_array_cookie<_Tp>::value, "Trying to access the array cookie of a type that is not guaranteed to have one");
9191

0 commit comments

Comments
 (0)