aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-09-20 21:37:40 +0200
committerRiccardo Spagni <ric@spagni.net>2017-09-20 21:37:40 +0200
commit8f1f43163a221153403a46902d026e3b72f1b3e3 (patch)
tree7e45b5ca9fd0f140303d67baa0b87e564d5cc8fe /src/common
parentMerge pull request #2410 (diff)
parentSilence more stupid gcc warnings (diff)
downloadmonero-8f1f43163a221153403a46902d026e3b72f1b3e3.tar.xz
Merge pull request #2412
81fb2f53 Silence more stupid gcc warnings (Howard Chu)
Diffstat (limited to 'src/common')
-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);
}