| 1 |
Author: Rodolfo García Peñas <kix@kix.es>, Dmitry Nezhevenko <dion@inhex.net>, Fernando Lemos <fernandotcl@gmail.com |
Author: Rodolfo García Peñas <kix@kix.es>, Dmitry Nezhevenko <dion@inhex.net>, Fernando Lemos <fernandotcl@gmail.com |
| 2 |
|
Reviewed_by: Andreas Tille <tille@debian.org> |
| 3 |
Date: Sun, 22 Apr 2012 23:37:53 +0300 |
Date: Sun, 22 Apr 2012 23:37:53 +0300 |
| 4 |
Bug-Closed: http://bugs.debian.org/667325 |
Bug-Closed: http://bugs.debian.org/667325 |
| 5 |
Description: Fix nested declaration which fails in gcc-4.7 |
Description: Fix nested declaration which fails in gcc-4.7 |
| 7 |
http://lists.debian.org/debian-mentors/2012/04/msg00410.html |
http://lists.debian.org/debian-mentors/2012/04/msg00410.html |
| 8 |
and the other mails in this thread |
and the other mails in this thread |
| 9 |
|
|
| 10 |
--- plink-1.07-src.orig/sets.cpp |
--- plink-1.07.orig/sets.cpp |
| 11 |
+++ plink-1.07-src/sets.cpp |
+++ plink-1.07/sets.cpp |
| 12 |
@@ -768,11 +768,11 @@ |
@@ -768,11 +768,11 @@ |
| 13 |
////////////////////////////////////////////// |
////////////////////////////////////////////// |
| 14 |
// Reset original missing status |
// Reset original missing status |
| 25 |
} |
} |
| 26 |
|
|
| 27 |
//////////////////////////////////////////////// |
//////////////////////////////////////////////// |
| 28 |
|
--- plink-1.07.orig/elf.cpp |
| 29 |
|
+++ plink-1.07/elf.cpp |
| 30 |
|
@@ -1175,10 +1175,10 @@ |
| 31 |
|
<< setw(8) << gcnt << " " |
| 32 |
|
<< setw(8) << (double)cnt / (double)gcnt << "\n"; |
| 33 |
|
|
| 34 |
|
- map<int,int>::iterator i = chr_cnt.begin(); |
| 35 |
|
- while ( i != chr_cnt.end() ) |
| 36 |
|
+ map<int,int>::iterator i_iter = chr_cnt.begin(); |
| 37 |
|
+ while ( i_iter != chr_cnt.end() ) |
| 38 |
|
{ |
| 39 |
|
- int c = i->first; |
| 40 |
|
+ int c = i_iter->first; |
| 41 |
|
int x = chr_cnt.find( c )->second; |
| 42 |
|
int y = chr_gcnt.find( c )->second; |
| 43 |
|
|
| 44 |
|
@@ -1189,7 +1189,7 @@ |
| 45 |
|
<< setw(8) << y << " " |
| 46 |
|
<< setw(8) << (double)x / (double)y << "\n"; |
| 47 |
|
|
| 48 |
|
- ++i; |
| 49 |
|
+ ++i_iter; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
} |
| 53 |
|
--- plink-1.07.orig/idhelp.cpp |
| 54 |
|
+++ plink-1.07/idhelp.cpp |
| 55 |
|
@@ -772,12 +772,12 @@ |
| 56 |
|
for (int j = 0 ; j < jointField.size(); j++ ) |
| 57 |
|
{ |
| 58 |
|
set<IDField*> & jf = jointField[j]; |
| 59 |
|
- set<IDField*>::iterator j = jf.begin(); |
| 60 |
|
+ set<IDField*>::iterator j_iter = jf.begin(); |
| 61 |
|
PP->printLOG(" { "); |
| 62 |
|
- while ( j != jf.end() ) |
| 63 |
|
+ while ( j_iter != jf.end() ) |
| 64 |
|
{ |
| 65 |
|
PP->printLOG( (*j)->name + " " ); |
| 66 |
|
- ++j; |
| 67 |
|
+ ++j_iter; |
| 68 |
|
} |
| 69 |
|
PP->printLOG(" }"); |
| 70 |
|
} |