diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 18:42:56 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 18:42:56 +0200 |
commit | e03d07212ee1a2077bf7c02e86f24a9e3bc766ec (patch) | |
tree | 417e0c0ff00f5a6a0a86e9e3a147f9a80ea6bcc5 | |
parent | 33bcbd13586471c8a1a3ce89389885d7a72e50c3 (diff) |
Fix a couple of Clang warnings
-rw-r--r-- | src/files.cc | 4 | ||||
-rw-r--r-- | src/generate.cc | 2 | ||||
-rw-r--r-- | src/xtra1.cc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/files.cc b/src/files.cc index 919d71bd..ddfd5045 100644 --- a/src/files.cc +++ b/src/files.cc @@ -4867,7 +4867,7 @@ void display_scores(int from, int to) void show_highclass(int building) { - register int i = 0, j, m = 0; + int i = 0, j, m = 0; int pr, pc, clev, al; high_score the_score; char buf[1024], out_val[256]; @@ -4987,7 +4987,7 @@ void show_highclass(int building) */ void race_score(int race_num) { - register int i = 0, j, m = 0; + int i = 0, j, m = 0; int pr, clev, lastlev; high_score the_score; char buf[1024], out_val[256], tmp_str[80]; diff --git a/src/generate.cc b/src/generate.cc index 934b717d..fb8cb66e 100644 --- a/src/generate.cc +++ b/src/generate.cc @@ -8074,7 +8074,7 @@ static bool_ cave_gen(void) static void build_arena(void) { int yval, y_height, y_depth, xval, x_left, x_right; - register int i, j; + int i, j; yval = SCREEN_HGT / 2; xval = SCREEN_WID / 2; diff --git a/src/xtra1.cc b/src/xtra1.cc index 1f538e90..6e1539e6 100644 --- a/src/xtra1.cc +++ b/src/xtra1.cc @@ -957,7 +957,7 @@ static void health_redraw(void) } /* Tracking a dead monster (???) */ - else if (!m_list[health_who].hp < 0) + else if (!(m_list[health_who].hp < 0)) { /* Indicate that the monster health is "unknown" */ Term_putstr(col, row, 12, TERM_WHITE, "[----------]"); |