ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 7478e30e20675a15ab4cfb48772ad2e1ace81177
Parent: e5bae9b211e1c58ff67cc7d881106eb7d678e89a
Author: Randy Palamar
Date:   Thu,  1 Oct 2026 07:26:40 -0700

ui: fix gcc stupidity about non-constant initializers

Diffstat:
Mui.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui.c b/ui.c @@ -334,7 +334,7 @@ struct V4Node {V4Node *next; v4 v;}; X(F32Node, border_thickness, f32, UI_BORDER_THICK) \ X(F32Node, text_outline_thickness, f32, 0) \ X(UINodeFlagsNode, flags, UINodeFlags, 0) \ - X(UIParentNode, parent, UINode *, (&ui_node_nil)) \ + X(UIParentNode, parent, UINode *, ((UINode *)&ui_node_nil)) \ X(UISizeNode, semantic_height, UISize, {0}) \ X(UISizeNode, semantic_width, UISize, {0}) \ X(UIAlignNode, alignment_y, UIAlign, 0) \ @@ -459,7 +459,7 @@ read_only UINode ui_node_nil = { .next_sibling = (UINode *)&ui_node_nil, }; -#define X(type, name, impl_type, impl) read_only type ui_##name##_node_nil = {.v = (impl_type)impl}; +#define X(type, name, _t, impl) read_only type ui_##name##_node_nil = {.v = impl}; UI_STACK_LIST #undef X