[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XBoard-devel] Fix some little compiler warnings with MSVS
From: |
Daniel Mehrmann |
Subject: |
[XBoard-devel] Fix some little compiler warnings with MSVS |
Date: |
Sun, 08 Feb 2004 20:33:07 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040124 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
after compiling with MSVS i saw some warnings:
winboard.c(6360) : warning C4101: 'p' : Unreferenzierte lokale Variable
winboard.c(6360) : warning C4101: 'q' : Unreferenzierte lokale Variable
winboard.c(6357) : warning C4101: 'lpProc' : Unreferenzierte lokale Variable
../zippy.c(192) : warning C4013: 'mysrandom' undefiniert; Annahme:
extern mit Rueckgabetyp int
../zippy.c(311) : warning C4013: 'myrandom' undefiniert; Annahme: extern
mit Rueckgabetyp int
So, i fix our cvs with the coming patch
diff -Pur xboard/winboard/winboard.c xboard.patch.ready/winboard/winboard.c
- --- xboard/winboard/winboard.c 2003-11-25 06:25:20.000000000 +0100
+++ xboard.patch.ready/winboard/winboard.c 2004-02-08 19:44:11.515625000
+0100
@@ -6354,11 +6354,9 @@
~ VOID
~ DisplayError(char *str, int error)
~ {
- - FARPROC lpProc;
~ char buf[MSG_SIZ*2], buf2[MSG_SIZ];
~ int len;
- - char *p, *q;
- -
+
~ if (error == 0) {
~ strcpy(buf, str);
~ } else {
diff -Pur xboard/zippy.c xboard.patch.ready/zippy.c
- --- xboard/zippy.c 2003-11-25 06:25:20.000000000 +0100
+++ xboard.patch.ready/zippy.c 2004-02-08 19:56:24.515625000 +0100
@@ -91,8 +91,11 @@
~ static char zippyPartner[MSG_SIZ];
~ static char zippyLastOpp[MSG_SIZ];
~ static int zippyConsecGames;
- -static time_t zippyLastGameEnd;
- -
+static time_t zippyLastGameEnd;
+
+extern void mysrandom(unsigned int seed);
+extern int myrandom(void);
+
~ void ZippyInit()
~ {
~ char *p;
Thats all. Not critical ;)
- --
Daniel Mehrmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFAJo7zPt1V5Pj1nvYRAvlNAJ9LPmpwA8q3A/LQEgVvjyY6/NDTMwCfVPZk
KB1gS+She94w4LhTb6YlqvI=
=tKcR
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [XBoard-devel] Fix some little compiler warnings with MSVS,
Daniel Mehrmann <=