diff options
author | Albert Astals Cid <aacid@kde.org> | 2017-09-17 01:58:36 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2017-09-17 01:58:36 +0200 |
commit | 4a4e291246f238731429729e10633ee1f627eb77 (patch) | |
tree | 4f8b7eb9a93bf12fefd5bbea0942bfbde7eb2d40 /fofi/FoFiTrueType.cc | |
parent | 0790dd3afb8370aebca8e7e154bbd2b5ae5cd5a2 (diff) |
Make newer gcc happy about fallthrough
on HtmlOutputDev.cc fixes a leak when printHtml is false
Diffstat (limited to 'fofi/FoFiTrueType.cc')
-rw-r--r-- | fofi/FoFiTrueType.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc index f1a15e00..58f604aa 100644 --- a/fofi/FoFiTrueType.cc +++ b/fofi/FoFiTrueType.cc @@ -1307,8 +1307,10 @@ Guint FoFiTrueType::computeTableChecksum(Guchar *data, int length) { switch (length & 3) { case 3: word |= (data[i+2] & 0xff) << 8; + // fallthrough case 2: word |= (data[i+1] & 0xff) << 16; + // fallthrough case 1: word |= (data[i ] & 0xff) << 24; break; |