1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-18 20:12:07 +00:00

Fix -Wempty-body warnings on GCC.

This commit is contained in:
Arthur O'Dwyer
2018-07-13 23:45:14 -07:00
parent 76d0538b3c
commit fbc7cd3212
6 changed files with 12 additions and 10 deletions
+3 -6
View File
@@ -106,10 +106,8 @@ void loadcs(FILE *f, charstyle& cs, int xvernum) {
if(err) cs.charid = gflags & 15;
if(err) vid.samegender = (gflags & 16) ? true : false;
if(cs.charid == 3) if(fscanf(f, "%x", &cs.dresscolor2))
;
if(xvernum >= 8990) if(fscanf(f, "%x", &cs.uicolor))
;
if(cs.charid == 3) hr::ignore(fscanf(f, "%x", &cs.dresscolor2));
if(xvernum >= 8990) hr::ignore(fscanf(f, "%x", &cs.uicolor));
}
#endif
@@ -402,8 +400,7 @@ void saveConfig() {
void readf(FILE *f, ld& x) {
double fl = x;
if(fscanf(f, "%lf", &fl))
;
hr::ignore(fscanf(f, "%lf", &fl));
x = fl;
}