diff --git a/gui/build.sh b/gui/build.sh index dce3c40..32e66a8 100644 --- a/gui/build.sh +++ b/gui/build.sh @@ -1 +1 @@ -gcc -g -Wall -Wextra $1 -fsanitize=address,undefined gui.c stb_truetype.o -lX11 -lm +gcc -g -Wall -Wextra -Wno-stringop-overflow $1 -fsanitize=address,undefined gui.c stb_truetype.o -lX11 -lm diff --git a/gui/gui.c b/gui/gui.c index 0d3a582..376487c 100644 --- a/gui/gui.c +++ b/gui/gui.c @@ -610,7 +610,13 @@ GUI_Subtree_Reference gui_get_subtree( i = i->sibling) { GUI_Subtree *subtree = (GUI_Subtree*)i; + // NOTE(Zelaven): This line falsely triggers -Wstringop-overflow and the + // copy into a temporary variable seemingly fixes it. + // For this reason I simply opted to use -Wno-stringop-overflow, as I + // don't want to have a broken flag enabled. rdic_cull_subtrees(&subtree->rdic, subtree->rdic.root); + //RDIC_Context *rdic_context = &subtree->rdic; + //rdic_cull_subtrees(rdic_context, subtree->rdic.root); } }