From 5f86e1a390b4aa9510d43f97251484ca67934f1c Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Sun, 13 May 2018 18:34:57 +0100 Subject: Codechange: Silence -Wclass-memaccess warnings with GCC8 --- src/core/alloc_func.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/alloc_func.hpp') diff --git a/src/core/alloc_func.hpp b/src/core/alloc_func.hpp index c7e17421f..c33e73301 100644 --- a/src/core/alloc_func.hpp +++ b/src/core/alloc_func.hpp @@ -125,7 +125,7 @@ static inline T *ReallocT(T *t_ptr, size_t num_elements) /* Ensure the size does not overflow. */ CheckAllocationConstraints(num_elements); - t_ptr = (T*)realloc(t_ptr, num_elements * sizeof(T)); + t_ptr = (T*)realloc(static_cast(t_ptr), num_elements * sizeof(T)); if (t_ptr == NULL) ReallocError(num_elements * sizeof(T)); return t_ptr; } -- cgit v1.2.3-54-g00ecf