From 38e59fbd6b171ffa215c735e36b5e4c13b81a3ac Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Wed, 16 Oct 2024 16:35:26 +0200 Subject: [PATCH] add missing includes --- libs/gltfio/src/extended/TangentsJobExtended.cpp | 1 + libs/utils/include/utils/memalign.h | 2 +- third_party/draco/src/draco/io/file_utils.h | 1 + third_party/vkmemalloc/include/vk_mem_alloc.h | 2 ++ tools/glslminifier/src/GlslMinify.h | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/gltfio/src/extended/TangentsJobExtended.cpp b/libs/gltfio/src/extended/TangentsJobExtended.cpp index 83b9a6edeaa..8c2ab665a8d 100644 --- a/libs/gltfio/src/extended/TangentsJobExtended.cpp +++ b/libs/gltfio/src/extended/TangentsJobExtended.cpp @@ -26,6 +26,7 @@ #include #include +#include #include #include diff --git a/libs/utils/include/utils/memalign.h b/libs/utils/include/utils/memalign.h index c8c08fe1dea..8b77170ad3e 100644 --- a/libs/utils/include/utils/memalign.h +++ b/libs/utils/include/utils/memalign.h @@ -40,7 +40,7 @@ inline void* aligned_alloc(size_t size, size_t align) noexcept { #if defined(WIN32) p = ::_aligned_malloc(size, align); #else - ::posix_memalign(&p, align, size); + (void) ::posix_memalign(&p, align, size); #endif return p; } diff --git a/third_party/draco/src/draco/io/file_utils.h b/third_party/draco/src/draco/io/file_utils.h index 4b734e049f5..47aaa40ff3b 100644 --- a/third_party/draco/src/draco/io/file_utils.h +++ b/third_party/draco/src/draco/io/file_utils.h @@ -15,6 +15,7 @@ #ifndef DRACO_IO_FILE_UTILS_H_ #define DRACO_IO_FILE_UTILS_H_ +#include #include #include diff --git a/third_party/vkmemalloc/include/vk_mem_alloc.h b/third_party/vkmemalloc/include/vk_mem_alloc.h index 60f572038c0..d56ab151853 100644 --- a/third_party/vkmemalloc/include/vk_mem_alloc.h +++ b/third_party/vkmemalloc/include/vk_mem_alloc.h @@ -126,6 +126,8 @@ See documentation chapter: \ref statistics. extern "C" { #endif +#include + #ifndef VULKAN_H_ #include #endif diff --git a/tools/glslminifier/src/GlslMinify.h b/tools/glslminifier/src/GlslMinify.h index c04e2fa42e5..5da64ba066e 100644 --- a/tools/glslminifier/src/GlslMinify.h +++ b/tools/glslminifier/src/GlslMinify.h @@ -14,6 +14,7 @@ * limitations under the License. */ +#include #include #ifndef TNT_GLSLMINIFY_H