|
From: | Byrial Jensen |
Subject: | Re: [XBoard-devel] gcc warnings |
Date: | Mon, 16 Apr 2012 13:38:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120411 Thunderbird/11.0.1 |
Den 16-04-2012 13:30, Byrial Jensen skrev:
Den 16-04-2012 09:03, h.g. muller skrev:At 14:35 15-4-2012 -0700, Arun Persaud wrote:Hi how about enabling "-Wall -Wno-parentheses" on master and v4.6.x? You can test the output of this by running make CFlAGS="-Wall -Wno-parentheses" ARUNThat seems a bad idea, because it would just flood us with warnings whichI am dead against fixing, because it wouldmake the code unreadable.I just removed the 9 warnings of type unused-but-set-variable and the 2 warnings of type unused-function that would be enabled by Arun's proposal in the master branch. I totally cannot see how these removals make the code more unreadable.
PS. It may be a good idea to check if the removals of unused variables and functions are correct. Maybe some the variables or functions should have been used for correct behavior of the program. If that was the case, the warnings were indeed useful to discover the error.
[Prev in Thread] | Current Thread | [Next in Thread] |