Skip to content
Snippets Groups Projects
Commit eda64b82 authored by Bastien Gorissen's avatar Bastien Gorissen
Browse files

Fix compilation with latest GCC

parent fb7b0467
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <cstddef>
#include "GmshMessage.h" #include "GmshMessage.h"
...@@ -269,7 +270,7 @@ class FaceAllocator ...@@ -269,7 +270,7 @@ class FaceAllocator
struct Face8 struct Face8
{ {
T faces[8]; T faces[8];
void set_pool_prev(void *const p) void set_pool_prev(void *const p)
{ {
*reinterpret_cast<void**>(faces) = p; *reinterpret_cast<void**>(faces) = p;
} }
...@@ -286,7 +287,7 @@ class FaceAllocator ...@@ -286,7 +287,7 @@ class FaceAllocator
struct Face16 struct Face16
{ {
T faces[16]; T faces[16];
void set_pool_prev(void *const p) void set_pool_prev(void *const p)
{ {
*reinterpret_cast<void**>(faces) = p; *reinterpret_cast<void**>(faces) = p;
} }
...@@ -490,7 +491,7 @@ class FaceAllocator ...@@ -490,7 +491,7 @@ class FaceAllocator
static ptrdiff_t offset6; static ptrdiff_t offset6;
static ptrdiff_t offset8; static ptrdiff_t offset8;
static ptrdiff_t offset16; static ptrdiff_t offset16;
}; };
// Definitions for static data members of class FaceAllocator // Definitions for static data members of class FaceAllocator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment