Fixed issues cropping up from building -O3
This commit is contained in:
1 parent
5e070521bc
commit
5be35aa3de
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -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
|
||||||
@@ -610,7 +610,13 @@ GUI_Subtree_Reference gui_get_subtree(
|
|||||||
i = i->sibling)
|
i = i->sibling)
|
||||||
{
|
{
|
||||||
GUI_Subtree *subtree = (GUI_Subtree*)i;
|
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_cull_subtrees(&subtree->rdic, subtree->rdic.root);
|
||||||
|
//RDIC_Context *rdic_context = &subtree->rdic;
|
||||||
|
//rdic_cull_subtrees(rdic_context, subtree->rdic.root);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user