ref: 2da5dd839df4bce50b6da96bf856c305de4509f8
parent: cdb1c9640d18a431b9bdac35c5e89c4ca6768ae0
author: zamfofex <zamfofex@twdb.moe>
date: Sun Apr 21 20:23:54 EDT 2024
fix meaningless warning
--- a/makefile
+++ b/makefile
@@ -19,7 +19,7 @@
moonfish moonfish.exe moonfish.wasm: moonfish.h chess.c search.c main.c
$(moonfish_cc) -o $@ $(filter %.c,$^)
-
+
%: $(tools_src) tools/%.c
$(tools_cc) -o $@ $(filter %.c,$^)
--- a/search.c
+++ b/search.c
@@ -117,7 +117,7 @@
void moonfish_free(struct moonfish_analysis *analysis)
{- struct moonfish_chess chess;
+ struct moonfish_chess chess = {0};moonfish_new(analysis, &chess);
free(analysis);
}
--
⑨