diff --git a/src/action/action_resource.cpp b/src/action/action_resource.cpp index b127dea2b..f10cfab3e 100644 --- a/src/action/action_resource.cpp +++ b/src/action/action_resource.cpp @@ -181,10 +181,6 @@ static bool FindNearestReachableTerrainType(int movemask, int resmask, int range order->CurrentResource = harvester.CurrentResource; order->DoneHarvesting = true; - if (harvester.CurrentResource) { - const ResourceInfo &resinfo = *harvester.Type->ResInfo[harvester.CurrentResource]; - } - if (depot == NULL) { depot = FindDeposit(harvester, 1000, harvester.CurrentResource); } diff --git a/tools/genversion.cpp b/tools/genversion.cpp index f589e057f..0d62f20db 100644 --- a/tools/genversion.cpp +++ b/tools/genversion.cpp @@ -66,7 +66,7 @@ int main(int argc, char * argv[]) { if ( file ) { git_rev = (char*)calloc(sizeof(char), 1024); if (fscanf(file, "ref: %s", git_rev) != 1 ) { - int ignored = fscanf(file, "%s", git_rev); + fscanf(file, "%s", git_rev); } fclose(file); gitrevfile = (char*)calloc(sizeof(char), strlen(git_rev) + 6); @@ -75,7 +75,7 @@ int main(int argc, char * argv[]) { free(gitrevfile); if (file) { git_rev = (char*)calloc(sizeof(char), 1024); - int ignored = fscanf(file, "%s", git_rev); + fscanf(file, "%s", git_rev); fclose(file); } } else {