[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] Current warnings
From: |
bump |
Subject: |
[gnugo-devel] Current warnings |
Date: |
Sun, 11 May 2003 19:51:26 -0700 |
The current cvs has a couple of warnings.
owl.c: In function `owl_determine_life':
owl.c:2595: warning: unused variable `pos2'
patterns.c: In function `autohelperpat1138':
patterns.c:15777: warning: implicit declaration of function
`register_good_attack_threat'
The following patch fixes them. It moves the declarations of
register_good_attack_threat and is_good_attack_threat to
liberty.h. But maybe only register_good_attack_threat should
be moved.
Dan
Index: engine/liberty.h
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/liberty.h,v
retrieving revision 1.169
diff -u -r1.169 liberty.h
--- engine/liberty.h 9 May 2003 22:44:38 -0000 1.169
+++ engine/liberty.h 12 May 2003 02:50:46 -0000
@@ -478,6 +478,9 @@
void remove_top_move(int move);
void scale_randomness(int pos, float scaling);
+void register_good_attack_threat(int move, int target);
+int is_known_good_attack_threat(int move, int target);
+
/* Parameters to add_either_move and add_all_move */
#define ATTACK_STRING 1
#define DEFEND_STRING 2
Index: engine/move_reasons.h
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/move_reasons.h,v
retrieving revision 1.33
diff -u -r1.33 move_reasons.h
--- engine/move_reasons.h 8 May 2003 18:34:11 -0000 1.33
+++ engine/move_reasons.h 12 May 2003 02:50:46 -0000
@@ -200,9 +200,6 @@
void mark_changed_string(int affected, char changed_stones[BOARDMAX],
float strength[BOARDMAX], char new_status);
-void register_good_attack_threat(int move, int target);
-int is_known_good_attack_threat(int move, int target);
-
/*
* Local Variables:
* tab-width: 8
Index: engine/owl.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/owl.c,v
retrieving revision 1.161
diff -u -r1.161 owl.c
--- engine/owl.c 11 May 2003 12:44:57 -0000 1.161
+++ engine/owl.c 12 May 2003 02:50:46 -0000
@@ -2592,7 +2592,6 @@
if (ON_BOARD(pos) && mw[pos] > 1) {
int value = 0;
const char *reason = "";
- int pos2;
compute_eyes_pessimistic(pos, &eyevalue, &pessimistic_min,
&attack_point, &defense_point,
eye, owl->half_eye);
- [gnugo-devel] Current warnings,
bump <=