Originally posted by waxhead
View Post
Announcement
Collapse
No announcement yet.
GCC 6 Will Warn You About Misleading Code Indentations
Collapse
X
-
-
Originally posted by waxhead View Post
You can always improve warnings. And in this case a always return false is fixed by adding the missing braces. I on the other hand prefer braces on separate lines and that also introduce problems.
For example a typo like if(whatever); will cause the block to never get executed while if(whatever){; does not matter at all. Not sure if GCC have warning for this , but I sure would like to have that in too
- Likes 1
Comment
-
Originally posted by carewolf View PostNO. "Debian testing" is just "Debian unstable" two weeks later. It gets the exact same packages, only with a 2 week delay. End-users shouldn't be running testing it is just the worst of two worlds, and only exists as a biproduct of the Debian release procedures. And unstable is not called unstable because the packages are considered unstable, but because the exact SET of packages and package versions is unstable, because the packages are updated all the time (and not with a two week delay), in other words, in Debian terms unstable means rolling. Once upon a time they also had untested packages in unstable, but since the introduction of experimental several years ago, packages have already been through QA and testing before even getting to unstable.
- Likes 1
Comment
-
Originally posted by carewolf View PostDebian unstable is basically a stable rolling release.Last edited by SystemCrasher; 11 January 2016, 05:36 PM.
- Likes 1
Comment
-
Originally posted by carewolf View PostNO. "Debian testing" is just "Debian unstable" two weeks later. It gets the exact same packages, only with a 2 week delay. End-users shouldn't be running testing it is just the worst of two worlds, and only exists as a biproduct of the Debian release procedures. And unstable is not called unstable because the packages are considered unstable, but because the exact SET of packages and package versions is unstable, because the packages are updated all the time (and not with a two week delay), in other words, in Debian terms unstable means rolling. Once upon a time they also had untested packages in unstable, but since the introduction of experimental several years ago, packages have already been through QA and testing before even getting to unstable.
The package must be in unstable for a minimum of 10, 5 or 2 days and...
The package must be compiled for all architectures
The package must not have release critical bugs
The package must have all dependencies satisfied
Here are the references just in case you missed it :
1. https://www.debian.org/doc/manuals/d...ives#s-testing
2. https://www.debian.org/devel/testing
So your arguments are wrong:
1. Testing is NOT the same as Debian unstable delayed by two weeks
2. Testing is NOT the worst of two worlds, the reason should be obvious by looking at the links above.
The Debian packages go through this process
A new package end up in EITHER experimental or unstable (reference: https://wiki.debian.org/DebianExperimental)
Experimental -> Unstable -> Testing (-> Testing freeze -> Stable)
While packages have been through some testing before reaching unstable, they have been through even more testing and QA before reaching testing so I would argue that running testing is in fact a good thing (but hey, Debian would hardly work if people did not run the unstable distribution).
I think that we can at least agree that over all Debian is a good and stable product regardless if you run 'Unstable' or 'Testing'
Last edited by waxhead; 12 January 2016, 01:29 AM.
http://www.dirtcellar.net
Comment
-
Originally posted by haagch View Post
Comment
-
Originally posted by nanonyme View Post
Those both look truly awful to me for readability and I'm surprised the latter ever got through code review. Maybe bad luck with where diffs start and end?
https://cgit.freedesktop.org/mesa/me...94fc40cac5e573
Would have probably been caught by this warning too.
(Was fixed later: https://cgit.freedesktop.org/mesa/me...f8cf6f88338eda)
In the second case here it depends on how the code works. I think it may be just mistakenly indented one level too much, then it would be three blocks
if (params->wm_prog_data)
if (params->src.mt)
if (params->dst.num_samples > 1)
on the same level but only people who understand what the code does can really tell.
Comment
Comment