cppcheck style fixes

This commit is contained in:
Enno Rehling 2017-12-08 21:08:45 +01:00
parent 17ee0e50b6
commit 5ad66d6b7a
3 changed files with 2 additions and 3 deletions

View File

@ -195,7 +195,7 @@ const char *factionname(const faction * f)
char *ibuf = idbuf[(++nextbuf) % 8]; char *ibuf = idbuf[(++nextbuf) % 8];
if (f && f->name) { if (f && f->name) {
slprintf(ibuf, sizeof(name), "%s (%s)", f->name, itoa36(f->no)); slprintf(ibuf, sizeof(idbuf[0]), "%s (%s)", f->name, itoa36(f->no));
} }
else { else {
strcpy(ibuf, "Unbekannte Partei (?)"); strcpy(ibuf, "Unbekannte Partei (?)");

View File

@ -1751,6 +1751,7 @@ static void sail(unit * u, order * ord, region_list ** routep, bool drifting)
* befahrene Region. */ * befahrene Region. */
while (next_point && current_point != next_point && step < k) { while (next_point && current_point != next_point && step < k) {
int reason;
const terrain_type *tthis = current_point->terrain; const terrain_type *tthis = current_point->terrain;
/* these values need to be updated if next_point changes (due to storms): */ /* these values need to be updated if next_point changes (due to storms): */
const terrain_type *tnext = next_point->terrain; const terrain_type *tnext = next_point->terrain;

View File

@ -5541,8 +5541,6 @@ int sp_showastral(castorder * co)
free_regionlist(rl); free_regionlist(rl);
return cast_level; return cast_level;
UNUSED_ARG(co);
return 0;
} }
#endif #endif