include/fan/imgui/imgui_demo.cpp:294:47: error: non-constant-expression cannot be narrowed from type '::size_t' (aka 'unsigned long long') to 'int' in initializer list [-Wc++11-narrowing] 294 | { "MyBool", ImGuiDataType_Bool, 1, offsetof(ExampleTreeNode, DataMyBool) }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/fan/imgui/imgui_demo.cpp:294:47: note: insert an explicit cast to silence this issue 294 | { "MyBool", ImGuiDataType_Bool, 1, offsetof(ExampleTreeNode, DataMyBool) }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | static_cast( ) C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/fan/imgui/imgui_demo.cpp:295:47: error: non-constant-expression cannot be narrowed from type '::size_t' (aka 'unsigned long long') to 'int' in initializer list [-Wc++11-narrowing] 295 | { "MyInt", ImGuiDataType_S32, 1, offsetof(ExampleTreeNode, DataMyInt) }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/fan/imgui/imgui_demo.cpp:295:47: note: insert an explicit cast to silence this issue 295 | { "MyInt", ImGuiDataType_S32, 1, offsetof(ExampleTreeNode, DataMyInt) }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | static_cast( ) C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/fan/imgui/imgui_demo.cpp:296:47: error: non-constant-expression cannot be narrowed from type '::size_t' (aka 'unsigned long long') to 'int' in initializer list [-Wc++11-narrowing] 296 | { "MyVec2", ImGuiDataType_Float, 2, offsetof(ExampleTreeNode, DataMyVec2) }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/fan/imgui/imgui_demo.cpp:296:47: note: insert an explicit cast to silence this issue 296 | { "MyVec2", ImGuiDataType_Float, 2, offsetof(ExampleTreeNode, DataMyVec2) }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | static_cast( ) C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/fan/imgui/imgui_draw.cpp:408:22: error: static assertion expression is not an integral constant expression 408 | IM_STATIC_ASSERT(offsetof(ImDrawCmd, ClipRect) == 0); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^ include/fan/imgui\imgui_internal.h:242:55: note: expanded from macro 'IM_STATIC_ASSERT' 242 | #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") | ^~~~~ include/fan/imgui/imgui_draw.cpp:408:22: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression 408 | IM_STATIC_ASSERT(offsetof(ImDrawCmd, ClipRect) == 0); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:32: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^ include/fan/imgui\imgui_internal.h:242:55: note: expanded from macro 'IM_STATIC_ASSERT' 242 | #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") | ^~~~~ include/fan/imgui/imgui_draw.cpp:409:22: error: static assertion expression is not an integral constant expression 409 | IM_STATIC_ASSERT(offsetof(ImDrawCmd, TextureId) == sizeof(ImVec4)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^ include/fan/imgui\imgui_internal.h:242:55: note: expanded from macro 'IM_STATIC_ASSERT' 242 | #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") | ^~~~~ include/fan/imgui/imgui_draw.cpp:409:22: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression 409 | IM_STATIC_ASSERT(offsetof(ImDrawCmd, TextureId) == sizeof(ImVec4)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:32: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^ include/fan/imgui\imgui_internal.h:242:55: note: expanded from macro 'IM_STATIC_ASSERT' 242 | #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") | ^~~~~ include/fan/imgui/imgui_draw.cpp:410:22: error: static assertion expression is not an integral constant expression 410 | IM_STATIC_ASSERT(offsetof(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^ include/fan/imgui\imgui_internal.h:242:55: note: expanded from macro 'IM_STATIC_ASSERT' 242 | #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") | ^~~~~ include/fan/imgui/imgui_draw.cpp:410:22: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression 410 | IM_STATIC_ASSERT(offsetof(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:32: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^ include/fan/imgui\imgui_internal.h:242:55: note: expanded from macro 'IM_STATIC_ASSERT' 242 | #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") | ^~~~~ 3 errors generated. include/fan/imgui/imgui_widgets.cpp:7484:22: error: static assertion expression is not an integral constant expression 7484 | IM_STATIC_ASSERT(offsetof(ImGuiMultiSelectTempData, IO) == 0); // Clear() relies on that. | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:31: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) | ^ include/fan/imgui\imgui_internal.h:242:55: note: expanded from macro 'IM_STATIC_ASSERT' 242 | #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") | ^~~~~ include/fan/imgui/imgui_widgets.cpp:7484:22: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression 7484 | IM_STATIC_ASSERT(offsetof(ImGuiMultiSelectTempData, IO) == 0); // Clear() relies on that. | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stddef.h:47:32: note: expanded from macro 'offsetof' 47 | #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)3 errors generated0. )->m))) | ^ include/fan/imgui\imgui_internal.h:242:55: note: expanded from macro 'IM_STATIC_ASSERT' 242 | #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") | ^~~~~