Skip to content

Commit a0da10b

Browse files
committed
Remove extraneous semicolons to quiet pedantic GCC warnings.
1 parent 14d2237 commit a0da10b

18 files changed

+26
-26
lines changed

achievement.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ EX void achievement_display() {
964964

965965
EX bool isAscending(int i) {
966966
return i == 13 || i == 14 || i == 15 || i == 16 || i == 29 || i == 30 || i == 45;
967-
};
967+
}
968968

969969
EX int score_default(int i) {
970970
if(isAscending(i)) return 1999999999;

archimedean.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ function<void()> setcanvas(char c) {
11441144
patterns::whichCanvas = c;
11451145
start_game();
11461146
};
1147-
};
1147+
}
11481148

11491149
EX void show() {
11501150
if(lastsample < isize(samples)) {

classes.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ namespace mf {
931931

932932
static const flagtype band = (cylindrical | pseudocylindrical | uses_bandshift);
933933
static const flagtype pseudoband = (pseudocylindrical | uses_bandshift);
934-
};
934+
}
935935

936936
struct modelinfo {
937937
const char *name_hyperbolic;

dialogs.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ EX namespace dialog {
3737
bool positive;
3838
};
3939

40-
static inline ld identity_f(ld x) { return x; };
40+
static inline ld identity_f(ld x) { return x; }
4141

4242
const static scaler identity = {identity_f, identity_f, false};
4343
const static scaler logarithmic = {log, exp, true};
@@ -100,7 +100,7 @@ EX namespace dialog {
100100
if(clicked) hr::displayfr(x * zoomf + shiftx, y * zoomf + shifty, b, size * zoomf, s, hicolor, align);
101101
return clicked;
102102
}
103-
EX };
103+
EX }
104104

105105
#if CAP_MENUSCALING && CAP_SDL
106106
EX void handleZooming(SDL_Event &ev) {
@@ -142,7 +142,7 @@ EX namespace dialog {
142142
EX void handler(int sym, int uni) {
143143
dialog::handleNavigation(sym, uni);
144144
if(doexiton(sym, uni)) popScreen();
145-
};
145+
}
146146

147147
EX void init() {
148148
items.clear();
@@ -1268,6 +1268,6 @@ EX namespace dialog {
12681268
}
12691269
#endif
12701270

1271-
};
1271+
}
12721272

12731273
}

euclid.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ EX namespace euc {
459459
cat += val * main_axes[i];
460460
}
461461
return cat;
462-
};
462+
}
463463

464464
EX bool valid_third_turn(const intmatrix& m) {
465465
if(m[0][2] != -m[0][0]-m[0][1]) return false;
@@ -630,7 +630,7 @@ EX namespace euc {
630630
int diagonal_cross(const coord& a, const coord& b) {
631631
return a[0]*b[1] + a[1]*b[2] + a[2]*b[0]
632632
- b[0]*a[1] - b[1]*a[2] - b[2]*a[0];
633-
};
633+
}
634634

635635
void torus_config_full::canonicalize(coord& x, coord& d, transmatrix& M, bool& mirr) {
636636
if(!twisted) {

graph.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ EX namespace tortoise {
483483

484484
return gradient(0x487830, mcol, 0, dd, 0xFF);
485485
}
486-
EX };
486+
EX }
487487

488488
double footfun(double d) {
489489
d -= floor(d);
@@ -5019,7 +5019,7 @@ namespace sm {
50195019
static const int DIALOG_STRICT_X = 32768; // do not interpret dialog clicks outside of the X region
50205020
static const int EXPANSION = (1<<16);
50215021
static const int HEXEDIT = (1<<17);
5022-
};
5022+
}
50235023
#endif
50245024

50255025
EX int cmode;

help.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -755,11 +755,11 @@ void gotoHelpFor(eItem i) {
755755

756756
void gotoHelpFor(eWall w) {
757757
help = generateHelpForWall(w);
758-
};
758+
}
759759

760760
void gotoHelpFor(eMonster m) {
761761
help = generateHelpForMonster(m);
762-
};
762+
}
763763

764764
EX void appendHelp(string s) {
765765
auto h = helpgenerator;

hypgraph.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ hyperpoint compute_hybrid(hyperpoint H, int rootid) {
307307
return ret;
308308
}
309309

310-
EX ld signed_sqrt(ld x) { return x > 0 ? sqrt(x) : -sqrt(-x); };
310+
EX ld signed_sqrt(ld x) { return x > 0 ? sqrt(x) : -sqrt(-x); }
311311

312312
EX void applymodel(hyperpoint H, hyperpoint& ret) {
313313

landlock.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ namespace lv {
516516
static const flagtype appears_in_ptm = 8;
517517
static const flagtype display_in_help = 16;
518518
static const flagtype one_and_half = 32;
519-
};
519+
}
520520

521521
struct land_validity_t {
522522
int quality_level; // 0 (dont show), 1 (1/2), 2 (ok), 3(1!)

langen.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ int main() {
325325
printf("#define NUMEXTRA %d\n", isize(vchars));
326326
printf("#define NATCHARS {");
327327
for(auto&& elt : vchars) printf("\"%s\",", elt.c_str());
328-
printf("};\n");
328+
printf("}\n");
329329
printf("extern const char* natchars[NUMEXTRA];\n");
330330
printf("#endif\n");
331331
printf("#endif\n");

mapeditor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ namespace mapeditor {
21412141
addHook(hooks_removecells, 0, [] () {
21422142
modelcell.clear();
21432143
set_if_removed(mapeditor::copysource.at, NULL);
2144-
});;;
2144+
});
21452145
#endif
21462146

21472147
EX void initdraw(cell *c) {

pattern2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2889,7 +2889,7 @@ EX namespace linepatterns {
28892889
dialog::display();
28902890
}
28912891

2892-
};
2892+
}
28932893

28942894
int val46(cell *c) {
28952895
patterns::patterninfo si;

raycaster.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ struct raycaster : glhr::GLprogram {
136136

137137
shared_ptr<raycaster> our_raycaster;
138138

139-
EX void reset_raycaster() { our_raycaster = nullptr; };
139+
EX void reset_raycaster() { our_raycaster = nullptr; }
140140

141141
int deg;
142142

@@ -846,7 +846,7 @@ array<float, 2> enc(int i, int a) {
846846
res[0] = ((i%per_row) * deg + a + .5) / length;
847847
res[1] = ((i / per_row) + .5) / rows;
848848
return res;
849-
};
849+
}
850850

851851
color_t color_out_of_range = 0x0F0800FF;
852852

rogueviz/newconf.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ struct coord {
120120

121121
char out = '-';
122122

123-
char& fmap_at(coord c) { return c.x >= 0 && c.x < isize(fmap[0]) && c.y >= 0 && c.y < isize(fmap) ? fmap[c.y][c.x] : out; };
123+
char& fmap_at(coord c) { return c.x >= 0 && c.x < isize(fmap[0]) && c.y >= 0 && c.y < isize(fmap) ? fmap[c.y][c.x] : out; }
124124

125125
ld vx[256][256], vy[256][256];
126126

@@ -398,7 +398,7 @@ void changepoint(int x, int y, bool can_add) {
398398

399399
for(int k=0; k<4; k++) if(!live[k]) fmap_at(cc+k) = '0';
400400
}
401-
};
401+
}
402402

403403
bool showmenu = true;
404404

rogueviz/rogueviz.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ auto hooks =
24742474
addHook(hooks_markers, 100, search_marker) +
24752475
0;
24762476

2477-
};
2477+
}
24782478

24792479
#include "kohonen.cpp"
24802480
#include "staircase.cpp"

surface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ bool flag_clamp_max(ld& coord, ld maxv) {
192192

193193
bool flag_clamp(ld& coord, ld minv, ld maxv) {
194194
return flag_clamp_min(coord, minv) & flag_clamp_max(coord, maxv);
195-
};
195+
}
196196

197197
bool flag_clamp_sym(ld& coord, ld v) {
198198
return flag_clamp(coord, -v, v);

system.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1572,5 +1572,5 @@ addHook(hooks_removecells, 0, [] () {
15721572
eliminate_if(butterflies, [] (pair<cell*,int>& p) { return is_cell_removed(p.first); });
15731573
for(int i=0; i<SHSIZE; i++) for(int p=0; p<MAXPLAYER; p++)
15741574
set_if_removed(shpos[p][i], NULL);
1575-
});;
1575+
});
15761576
}

yendor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ EX namespace peace {
13541354
}
13551355

13561356
auto aNext = addHook(hooks_nextland, 100, getNext);
1357-
};
1357+
}
13581358

13591359
#if CAP_COMMANDLINE
13601360
int read_mode_args() {

0 commit comments

Comments
 (0)