|
1 | 1 | #ifndef CRYPTOPP_FLTRIMPL_H
|
2 | 2 | #define CRYPTOPP_FLTRIMPL_H
|
3 | 3 |
|
4 |
| -#if CRYPTOPP_MSC_VERSION |
5 |
| -# pragma warning(push) |
6 |
| -# pragma warning(disable: 4100) |
7 |
| -#endif |
8 |
| - |
9 |
| -#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE |
10 |
| -# pragma GCC diagnostic push |
11 |
| -# pragma GCC diagnostic ignored "-Wunused-value" |
12 |
| -#endif |
13 |
| - |
14 | 4 | #define FILTER_BEGIN \
|
15 | 5 | switch (m_continueAt) \
|
16 | 6 | { \
|
|
38 | 28 | #define FILTER_OUTPUT3(site, statement, output, length, messageEnd, channel) \
|
39 | 29 | {\
|
40 | 30 | case site: \
|
41 |
| - statement; \ |
| 31 | + (void) statement; \ |
42 | 32 | if (Output(site, output, length, messageEnd, blocking, channel)) \
|
43 | 33 | return STDMAX(size_t(1), length-m_inputPosition);\
|
44 | 34 | }
|
|
56 | 46 | {\
|
57 | 47 | /* fall through */ \
|
58 | 48 | case site: \
|
59 |
| - statement; \ |
| 49 | + (void) statement; \ |
60 | 50 | if (OutputModifiable(site, output, length, messageEnd, blocking)) \
|
61 | 51 | return STDMAX(size_t(1), length-m_inputPosition);\
|
62 | 52 | }
|
|
68 | 58 | {\
|
69 | 59 | /* fall through */ \
|
70 | 60 | case site: \
|
71 |
| - statement; \ |
| 61 | + (void) statement; \ |
72 | 62 | if (modifiable ? OutputModifiable(site, output, length, messageEnd, blocking) : Output(site, output, length, messageEnd, blocking)) \
|
73 | 63 | return STDMAX(size_t(1), length-m_inputPosition);\
|
74 | 64 | }
|
75 | 65 |
|
76 | 66 | #define FILTER_OUTPUT_MAYBE_MODIFIABLE(site, output, length, messageEnd, modifiable) \
|
77 | 67 | FILTER_OUTPUT2_MAYBE_MODIFIABLE(site, 0, output, length, messageEnd, modifiable)
|
78 | 68 |
|
79 |
| -#if CRYPTOPP_MSC_VERSION |
80 |
| -# pragma warning(pop) |
81 |
| -#endif |
82 |
| - |
83 |
| -#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE |
84 |
| -# pragma GCC diagnostic pop |
85 |
| -#endif |
86 |
| - |
87 | 69 | #endif
|
0 commit comments