shithub: orca

Download patch

ref: ed9c9803ab5f8c465776875925cec5fa98751f18
parent: 1841332922b8039cc79d2031b529db513900fd06
author: cancel <cancel@cancel.fm>
date: Sat Jan 18 18:33:58 EST 2020

Add workaround for spurious clang warning

--- a/tui_main.c
+++ b/tui_main.c
@@ -2615,7 +2615,7 @@
   int init_grid_dim_y = 25, init_grid_dim_x = 57;
   bool should_autosize_grid = true;
 
-  Tui t = {0};
+  Tui t = {.file_name = NULL}; // Weird because of clang warning
   t.undo_history_limit = 100;
   t.softmargin_y = 1;
   t.softmargin_x = 2;