summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Bogusz2008-01-05 16:12:59 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit92182b40952bf764ee47c74693a0c176e7b34e42 (patch)
treee7561fb4e3ff2cf6888aad24e4fd2aa6d971f36c
parent6435c4ce5dfa9a8e812c6aa76e9708929ad5ebc0 (diff)
downloadascal-92182b40952bf764ee47c74693a0c176e7b34e42.zip
ascal-92182b40952bf764ee47c74693a0c176e7b34e42.tar.gz
- no-no-no, don't make local variable global
Changed files: ascal-gcc.patch -> 1.2
-rw-r--r--ascal-gcc.patch30
1 files changed, 18 insertions, 12 deletions
diff --git a/ascal-gcc.patch b/ascal-gcc.patch
index 5c8a67d..1b62e7e 100644
--- a/ascal-gcc.patch
+++ b/ascal-gcc.patch
@@ -1,12 +1,18 @@
---- ascal-0.1.1/src/gui_board.cpp 2007-11-01 02:13:40.488264786 +0100
-+++ ascal-0.1.1/src/gui_board.cpp-new 2007-11-01 02:12:21.644640775 +0100
-@@ -305,8 +305,8 @@
- }
-
-
-+ko_t ko; //the calculated coordinates
- ko_t gui_board::find_circle(int field) const {
-- ko_t ko; //the calculated coordinates
-
- //you should draw the board for yourself to understand this!
- /* Okay here is one... ;)
+--- ascal-0.1.1/src/gui_board.cpp.orig 2006-12-30 00:45:08.000000000 +0100
++++ ascal-0.1.1/src/gui_board.cpp 2008-01-05 16:46:56.475221055 +0100
+@@ -335,6 +335,7 @@
+ ko.x=4;
+ break;
+ case 2:
++ default: // stupid gcc, avoid "uninitialized variable" warning
+ if(field<15)
+ ko.x=2;
+ else
+@@ -357,6 +358,7 @@
+ ko.y=5;
+ break;
+ case 3:
++ default: // stupid gcc, avoid "uninitialized variable" warning
+ if(field<4)
+ ko.y=0;
+ else