1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
From: =?utf-8?q?Andreas_R=C3=B6nnquist?= <gusnan@debian.org>
Date: Sun, 21 Apr 2024 15:56:45 +0200
Subject: Fix errors with Werror=implicit-function-declaration
---
src/board.h | 1 +
src/moves.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/src/board.h b/src/board.h
index bd61c69..6118a68 100644
--- a/src/board.h
+++ b/src/board.h
@@ -132,6 +132,7 @@ int get_square_from_engine(int x, int y);
void fire_arrow(Square sq);
void square_contains(Square sq);
void count_queens();
+int update_status_bar();
int game_over();
diff --git a/src/moves.c b/src/moves.c
index 78f1b0e..5c5cad2 100644
--- a/src/moves.c
+++ b/src/moves.c
@@ -29,6 +29,7 @@ Project URL: http://www.yorgalily.org/amazons/
#include "amazons.h"
#include "unit-test.h"
#include "support.h"
+#include "board.h"
#define HEVAL heval // for testing differant hevals
@@ -82,6 +83,8 @@ int MAXDEPTH = 20;
int MAXWIDTH = 5000;
*/
+int countobst(state *s);
+
int obst_heval(state *s)
{
int moves;
|