Skip to content

Commit 3744ba2

Browse files
committed
[NFC][libc++] Suppress "warning: ignoring return value"
According to the comment on the next line it's expected behaviour.
1 parent e29063b commit 3744ba2

File tree

1 file changed

+1
-1
lines changed
  • libcxx/include

1 file changed

+1
-1
lines changed

libcxx/include/new

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ void* __libcpp_aligned_alloc(std::size_t __alignment, std::size_t __size) {
314314
return ::_aligned_malloc(__size, __alignment);
315315
#else
316316
void* __result = nullptr;
317-
::posix_memalign(&__result, __alignment, __size);
317+
(void)::posix_memalign(&__result, __alignment, __size);
318318
// If posix_memalign fails, __result is unmodified so we still return `nullptr`.
319319
return __result;
320320
#endif

0 commit comments

Comments
 (0)