Re: Patch for PLink to build using gcc-4.7 - please confirm that it is correct

2012-04-23 Thread Shaun Jackman
Hi Andreas,

I'd suggest using a scoped for loop rather than the original while loop.

Cheers,
Shaun

On 2012-04-23, at 1:30 AM, Andreas Tille wrote:

 Hi Shaun,
 
 as you know the Debian Med team has packaged plink for Debian.  Recently
 we received a bug report that the package does not build when using gcc
 4.7 and we were working on a patch to solve this.  You can find the
 patch here:
 
   
 http://anonscm.debian.org/viewvc/debian-med/trunk/packages/plink/trunk/debian/patches/gcc-4.7.patch?view=markup
 
 I found this solution by the help of some people on debian-mentors list
 but I want to issue a BIG WARNING:  If you look at the patch at the
 given URL in line 67 I admit I was just wild guessing what j you are
 really meaning.  To my understanding this is very bad coding style and I
 would strongly recommend to strictly use different variables.  I would
 be really happy if you would confirm that my wild guess was right (or
 please correct me if I was wrong) because my C coding knowledge is
 restricted to pure ANSII C and C++ looks sometimes quite magical to me.
 
 BTW, people at debian-mentors criticised the amount of warnings when
 using the -Wall option which unreveals a real lot of warnings which are
 hard to parse and some more strict following of coding guidelines might
 help here.
 
 Kind regards and thanks for providing plink as Free Software
 
   Andreas.
 
 -- 
 http://fam-tille.de
 
 
 -- 
 To UNSUBSCRIBE, email to debian-med-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120423083050.gh16...@an3as.eu
 


--
To UNSUBSCRIBE, email to debian-med-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/711c5d11-81c5-4d6d-a2bb-38a90b776...@gmail.com



Re: Patch for PLink to build using gcc-4.7 - please confirm that it is correct

2012-04-23 Thread Andreas Tille
Hi Shaun,

On Mon, Apr 23, 2012 at 08:43:22AM -0700, Shaun Jackman wrote:
 
 I'd suggest using a scoped for loop rather than the original while loop.

Hi guess for a C++ programmer this hint is perfectly simple to implement
however, for me this does not ring a bell without a patch.

Thanks for the hint anyway - perhaps upstream will follow

 Andreas.

-- 
http://fam-tille.de


-- 
To UNSUBSCRIBE, email to debian-med-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120423184855.gd30...@an3as.eu



Re: Patch for PLink to build using gcc-4.7 - please confirm that it is correct

2012-04-23 Thread Shaun Jackman
No worries, Andreas. It's just a coding style suggestion. Your
solution is perfectly fine.

Cheers,
Shaun

On 23 April 2012 11:48, Andreas Tille ti...@debian.org wrote:
 Hi Shaun,

 On Mon, Apr 23, 2012 at 08:43:22AM -0700, Shaun Jackman wrote:

 I'd suggest using a scoped for loop rather than the original while loop.

 Hi guess for a C++ programmer this hint is perfectly simple to implement
 however, for me this does not ring a bell without a patch.

 Thanks for the hint anyway - perhaps upstream will follow

     Andreas.

 --
 http://fam-tille.de


 --
 To UNSUBSCRIBE, email to debian-med-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120423184855.gd30...@an3as.eu



--
To UNSUBSCRIBE, email to debian-med-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CADX6M3q4acmJYRSjMzhKA47q5tCkXZh=i4brdipgcdq7vgk...@mail.gmail.com