diff --git a/source/Lib/TLibCommon/ContextModel.h b/source/Lib/TLibCommon/ContextModel.h
index 5b9d7629..1ed41c55 100644
a
|
b
|
|
53 | 53 | // Class definition |
54 | 54 | // ==================================================================================================================== |
55 | 55 | |
| 56 | #define GCC_9_1_0_WARNING_FIX 1 |
| 57 | |
56 | 58 | /// context model class |
57 | 59 | class ContextModel |
58 | 60 | { |
59 | 61 | public: |
| 62 | #if !GCC_9_1_0_WARNING_FIX |
60 | 63 | ContextModel () { m_ucState = 0; m_binsCoded = 0; } |
61 | 64 | ~ContextModel () {} |
| 65 | #endif |
62 | 66 | |
63 | 67 | UChar getState () { return ( m_ucState >> 1 ); } ///< get current state |
64 | 68 | UChar getMps () { return ( m_ucState & 1 ); } ///< get curret MPS |
… |
… |
public: |
90 | 94 | UInt getBinsCoded() { return m_binsCoded; } |
91 | 95 | |
92 | 96 | private: |
| 97 | #if GCC_9_1_0_WARNING_FIX |
| 98 | UChar m_ucState = 0; ///< internal state variable |
| 99 | #else |
93 | 100 | UChar m_ucState; ///< internal state variable |
| 101 | #endif |
94 | 102 | |
95 | 103 | static const UInt m_totalStates = (1 << CONTEXT_STATE_BITS) * 2; //*2 for MPS = [0|1] |
96 | 104 | static const UChar m_aucNextStateMPS[m_totalStates]; |
… |
… |
private: |
99 | 107 | #if FAST_BIT_EST |
100 | 108 | static UChar m_nextState[m_totalStates][2 /*MPS = [0|1]*/]; |
101 | 109 | #endif |
| 110 | #if GCC_9_1_0_WARNING_FIX |
| 111 | UInt m_binsCoded = 0; |
| 112 | #else |
102 | 113 | UInt m_binsCoded; |
| 114 | #endif |
103 | 115 | }; |
104 | 116 | |
105 | 117 | //! \} |