Browse Source

Fix error due to return value being implicitly ignored. (#825)

Aloïs Cochard 1 year ago
parent
commit
d7fe0f0dfd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Jolt/Core/Memory.cpp

+ 1 - 0
Jolt/Core/Memory.cpp

@@ -38,6 +38,7 @@ JPH_ALLOC_SCOPE void *JPH_ALLOC_FN(AlignedAllocate)(size_t inSize, size_t inAlig
 	void *block = nullptr;
 	void *block = nullptr;
 	JPH_SUPPRESS_WARNING_PUSH
 	JPH_SUPPRESS_WARNING_PUSH
 	JPH_GCC_SUPPRESS_WARNING("-Wunused-result")
 	JPH_GCC_SUPPRESS_WARNING("-Wunused-result")
+	JPH_CLANG_SUPPRESS_WARNING("-Wunused-result")
 	posix_memalign(&block, inAlignment, inSize);
 	posix_memalign(&block, inAlignment, inSize);
 	JPH_SUPPRESS_WARNING_POP
 	JPH_SUPPRESS_WARNING_POP
 	return block;
 	return block;