Clean up dead stores
Does not change optimized code (gcc -O). Spotted by the Clang Static Analyzer.
This commit is contained in:
parent
3650587dab
commit
b8f5eaff0b
25 changed files with 66 additions and 116 deletions
|
@ -145,7 +145,6 @@ retreat_ship1(struct shpstr *sp, char code, int orig)
|
|||
if (sp->shp_own == 0)
|
||||
return 0;
|
||||
|
||||
n = 0;
|
||||
if (sp->shp_effic < SHIP_MINEFF) {
|
||||
wu(0, sp->shp_own,
|
||||
"%s %s,\nbut it died in the attack, and so couldn't retreat!\n",
|
||||
|
@ -405,7 +404,6 @@ retreat_land1(struct lndstr *lp, char code, int orig)
|
|||
if (lp->lnd_own == 0)
|
||||
return 0;
|
||||
|
||||
n = 0;
|
||||
if (lp->lnd_effic < LAND_MINEFF) {
|
||||
wu(0, lp->lnd_own,
|
||||
"%s %s,\nbut it died in the attack, and so couldn't retreat!\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue