diff options
author | Josh MacDonald <josh.macdonald@gmail.com> | 2016-01-04 23:08:10 -0800 |
---|---|---|
committer | Josh MacDonald <josh.macdonald@gmail.com> | 2016-01-04 23:08:10 -0800 |
commit | f9f0e902b6f3a0f5eead5ac06aaf81eca3d25950 (patch) | |
tree | 294da7c4359c123a403a7e5e0b68fd19a82bd8da /xdelta3/testing/delta.h | |
parent | 323299bb0189f64ada2aa16107699f9684138106 (diff) |
Build fixes w/ XD3_DEBUG=9 and Clang -Weverything
Diffstat (limited to 'xdelta3/testing/delta.h')
-rw-r--r-- | xdelta3/testing/delta.h | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/xdelta3/testing/delta.h b/xdelta3/testing/delta.h index f874bf2..deac217 100644 --- a/xdelta3/testing/delta.h +++ b/xdelta3/testing/delta.h | |||
@@ -30,7 +30,7 @@ public: | |||
30 | case XD3_WINFINISH: | 30 | case XD3_WINFINISH: |
31 | break; | 31 | break; |
32 | default: | 32 | default: |
33 | DP(RINT "error code %s\n", xd3_strerror (ret)); | 33 | cerr << "decode: " << done; |
34 | abort(); | 34 | abort(); |
35 | } | 35 | } |
36 | } | 36 | } |
@@ -48,23 +48,25 @@ public: | |||
48 | return stream_.whole_target.wininfolen; | 48 | return stream_.whole_target.wininfolen; |
49 | } | 49 | } |
50 | 50 | ||
51 | void Print() const { | 51 | // Note: This does not benefit from -Wformat= checking, due to the |
52 | for (size_t i = 0; i < stream_.whole_target.instlen; i++) { | 52 | // enclosing template. Further, it was not used. |
53 | xd3_winst &winst = stream_.whole_target.inst[i]; | 53 | // void Print() const { |
54 | switch (winst.type) { | 54 | // for (size_t i = 0; i < stream_.whole_target.instlen; i++) { |
55 | case XD3_RUN: | 55 | // xd3_winst &winst = stream_.whole_target.inst[i]; |
56 | DP(RINT "%"Q" run %u\n", winst.position, winst.size); | 56 | // switch (winst.type) { |
57 | break; | 57 | // case XD3_RUN: |
58 | case XD3_ADD: | 58 | // DP(RINT, "%" Q "u run %" W "u\n", winst.position, winst.size); |
59 | DP(RINT "%"Q" add %u\n", winst.position, winst.size); | 59 | // break; |
60 | break; | 60 | // case XD3_ADD: |
61 | default: | 61 | // DP(RINT "%" Q "u add %" W "u\n", winst.position, winst.size); |
62 | DP(RINT "%"Q" copy %u @ %"Q" (mode %u)\n", | 62 | // break; |
63 | winst.position, winst.size, winst.addr, winst.mode); | 63 | // default: |
64 | break; | 64 | // DP(RINT "%" Q "u copy %" W "u @ %" Q "u (mode %u)\n", |
65 | } | 65 | // winst.position, winst.size, winst.addr, winst.mode); |
66 | } | 66 | // break; |
67 | } | 67 | // } |
68 | // } | ||
69 | // } | ||
68 | 70 | ||
69 | private: | 71 | private: |
70 | xd3_stream stream_; | 72 | xd3_stream stream_; |