We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e29063b commit 3744ba2Copy full SHA for 3744ba2
libcxx/include/new
@@ -314,7 +314,7 @@ void* __libcpp_aligned_alloc(std::size_t __alignment, std::size_t __size) {
314
return ::_aligned_malloc(__size, __alignment);
315
#else
316
void* __result = nullptr;
317
- ::posix_memalign(&__result, __alignment, __size);
+ (void)::posix_memalign(&__result, __alignment, __size);
318
// If posix_memalign fails, __result is unmodified so we still return `nullptr`.
319
return __result;
320
#endif
0 commit comments