From fa8078dc8b49d0705ff0f95be7bafd5d76d67ce6 Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Tue, 17 Oct 2017 00:05:55 -0700 Subject: [PATCH] Silence a couple of warnings on Clang. NFC. --- graph.cpp | 2 +- langen.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/graph.cpp b/graph.cpp index 790626ce..e0c96cd9 100644 --- a/graph.cpp +++ b/graph.cpp @@ -3557,7 +3557,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { else if((c->land == laCaribbean || c->land == laOcean || c->land == laOceanWall || c->land == laWhirlpool)) qfloor(c, Vf, shCloudFloor[ct6], darkena(fcol, fd, 0xFF)); - else if((c->land == laKraken)) + else if(c->land == laKraken) qfloor(c, Vf, shFullFloor[ct6], darkena(fcol, fd, 0xFF)); else if(c->land == laLivefjord) diff --git a/langen.cpp b/langen.cpp index 94eaf0f7..0c7d775a 100644 --- a/langen.cpp +++ b/langen.cpp @@ -362,7 +362,7 @@ int main() { printf("hashcode hashval = 0x%x;\n\n", hashval); - printf("sentence all_sentences[] = {\n", size(allsent)); + printf("sentence all_sentences[] = {\n"); for(map::iterator it = ms.begin(); it != ms.end(); it++) { string s = it->second; @@ -374,7 +374,7 @@ int main() { } printf(" };\n\n"); - printf("fullnoun all_nouns[] = {\n", size(allnouns)); + printf("fullnoun all_nouns[] = {\n"); for(map::iterator it = mn.begin(); it != mn.end(); it++) { string s = it->second;