Deal with the fact that modern compilers assume different scoping rules
Patch from Pascal Stumpf <Pascal.Stumpf@cubes.de>: So here are all the patches that deal with the fact that modern compilers assume different scoping rules for variables declared in for loops. On Linux, -fpermissive has been added as a compiler flag to compensate for this old C code, but I think it is the wrong approach. Sorry, couldn't help sneaking in a || defined(CSRG_BASED) and some casts needed for other reasons ...
This commit is contained in:
@@ -328,9 +328,11 @@ V3BodyPart::checksum(DtMailEnv & error)
|
||||
static int
|
||||
countTypes(char ** types)
|
||||
{
|
||||
int count;
|
||||
|
||||
if (NULL == types) return 0;
|
||||
|
||||
for (int count = 0; *types; types++, count++) {
|
||||
for (count = 0; *types; types++, count++) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user