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
|
@ -275,7 +275,6 @@ shiprepair(struct shpstr *ship, struct natstr *np, struct bp *bp, int etus)
|
|||
return;
|
||||
}
|
||||
|
||||
wf = 0;
|
||||
/* only military can work on a military boat */
|
||||
if (mp->m_glim != 0)
|
||||
wf = etus * ship->shp_item[I_MILIT] / 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue