Cleanup: dead local variables
This commit is contained in:
parent
94a6d9ecd9
commit
0b97df3666
2 changed files with 2 additions and 6 deletions
|
@ -181,10 +181,6 @@ static bool FindNearestReachableTerrainType(int movemask, int resmask, int range
|
||||||
order->CurrentResource = harvester.CurrentResource;
|
order->CurrentResource = harvester.CurrentResource;
|
||||||
order->DoneHarvesting = true;
|
order->DoneHarvesting = true;
|
||||||
|
|
||||||
if (harvester.CurrentResource) {
|
|
||||||
const ResourceInfo &resinfo = *harvester.Type->ResInfo[harvester.CurrentResource];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (depot == NULL) {
|
if (depot == NULL) {
|
||||||
depot = FindDeposit(harvester, 1000, harvester.CurrentResource);
|
depot = FindDeposit(harvester, 1000, harvester.CurrentResource);
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ int main(int argc, char * argv[]) {
|
||||||
if ( file ) {
|
if ( file ) {
|
||||||
git_rev = (char*)calloc(sizeof(char), 1024);
|
git_rev = (char*)calloc(sizeof(char), 1024);
|
||||||
if (fscanf(file, "ref: %s", git_rev) != 1 ) {
|
if (fscanf(file, "ref: %s", git_rev) != 1 ) {
|
||||||
int ignored = fscanf(file, "%s", git_rev);
|
fscanf(file, "%s", git_rev);
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose(file);
|
||||||
gitrevfile = (char*)calloc(sizeof(char), strlen(git_rev) + 6);
|
gitrevfile = (char*)calloc(sizeof(char), strlen(git_rev) + 6);
|
||||||
|
@ -75,7 +75,7 @@ int main(int argc, char * argv[]) {
|
||||||
free(gitrevfile);
|
free(gitrevfile);
|
||||||
if (file) {
|
if (file) {
|
||||||
git_rev = (char*)calloc(sizeof(char), 1024);
|
git_rev = (char*)calloc(sizeof(char), 1024);
|
||||||
int ignored = fscanf(file, "%s", git_rev);
|
fscanf(file, "%s", git_rev);
|
||||||
fclose(file);
|
fclose(file);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue