aboutsummaryrefslogtreecommitdiff
path: root/src/common/base58.cpp
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2017-09-08 11:36:49 +0100
committerHoward Chu <hyc@symas.com>2017-09-08 11:36:49 +0100
commit81fb2f53479594a552fcbc474b6cd025cd50f87a (patch)
tree9b8c9834d42b3d1b089ee4bfbc2dd3a152b77c36 /src/common/base58.cpp
parentMerge pull request #2384 (diff)
downloadmonero-81fb2f53479594a552fcbc474b6cd025cd50f87a.tar.xz
Silence more stupid gcc warnings
Diffstat (limited to '')
-rw-r--r--src/common/base58.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/base58.cpp b/src/common/base58.cpp
index 64cb7c0de..941373443 100644
--- a/src/common/base58.cpp
+++ b/src/common/base58.cpp
@@ -111,13 +111,13 @@ namespace tools
uint64_t res = 0;
switch (9 - size)
{
- case 1: res |= *data++;
- case 2: res <<= 8; res |= *data++;
- case 3: res <<= 8; res |= *data++;
- case 4: res <<= 8; res |= *data++;
- case 5: res <<= 8; res |= *data++;
- case 6: res <<= 8; res |= *data++;
- case 7: res <<= 8; res |= *data++;
+ case 1: res |= *data++; /* FALLTHRU */
+ case 2: res <<= 8; res |= *data++; /* FALLTHRU */
+ case 3: res <<= 8; res |= *data++; /* FALLTHRU */
+ case 4: res <<= 8; res |= *data++; /* FALLTHRU */
+ case 5: res <<= 8; res |= *data++; /* FALLTHRU */
+ case 6: res <<= 8; res |= *data++; /* FALLTHRU */
+ case 7: res <<= 8; res |= *data++; /* FALLTHRU */
case 8: res <<= 8; res |= *data; break;
default: assert(false);
}