Clean up dead stores

Does not change optimized code (gcc -O).

Spotted by the Clang Static Analyzer.
This commit is contained in:
Markus Armbruster 2010-01-16 17:40:28 +01:00
parent 3650587dab
commit b8f5eaff0b
25 changed files with 66 additions and 116 deletions

View file

@ -62,7 +62,6 @@ revolt(struct sctstr *sp)
if (che > (civ + uw) * 3)
return;
che_uw = 0;
che_civ = 0;
/* che due to civilian unrest */
n = 10 - (random() % 20);
che_civ = 3 + (civ * n / 500);
@ -254,7 +253,6 @@ guerrilla(struct sctstr *sp)
* guerrillas have to resort to blowing things up.
* Note this disrupts work in the sector.
*/
n = 0;
n = (random() % 10) + (random() % che);
if (n > 100)
n = 100;