1 | [collada\DLL.cpp:64]: (Style) Member variable not initialized in the constructor 'BufferedOutputCallback::buffer'
|
---|
2 | [graphics\ColladaManager.cpp:61]: (Style) Member variable not initialized in the constructor 'CColladaManagerImpl::set_logger'
|
---|
3 | [graphics\ColladaManager.cpp:61]: (Style) Member variable not initialized in the constructor 'CColladaManagerImpl::set_skeleton_definitions'
|
---|
4 | [graphics\ColladaManager.cpp:61]: (Style) Member variable not initialized in the constructor 'CColladaManagerImpl::convert_dae_to_pmd'
|
---|
5 | [graphics\ColladaManager.cpp:61]: (Style) Member variable not initialized in the constructor 'CColladaManagerImpl::convert_dae_to_psa'
|
---|
6 | [graphics\Camera.cpp:36]: (Style) Member variable not initialized in the constructor 'CCamera::m_NearPlane'
|
---|
7 | [graphics\Camera.cpp:36]: (Style) Member variable not initialized in the constructor 'CCamera::m_FarPlane'
|
---|
8 | [graphics\Camera.cpp:36]: (Style) Member variable not initialized in the constructor 'CCamera::m_FOV'
|
---|
9 | [graphics\CinemaTrack.cpp:256]: (Style) Member variable not initialized in the constructor 'CCinemaManager::m_DrawLines'
|
---|
10 | [graphics\CinemaTrack.cpp:33]: (Style) Member variable not initialized in the constructor 'CCinemaPath::m_PreviousNodeTime'
|
---|
11 | [graphics\CinemaTrack.cpp:33]: (Style) Member variable not initialized in the constructor 'CCinemaPath::m_CurrentNode'
|
---|
12 | [graphics\CinemaTrack.h:64]: (Style) Member variable not initialized in the constructor 'CCinemaPath::m_CurrentNode'
|
---|
13 | [graphics\CinemaTrack.h:145]: (Style) The function 'CCinemaManager::GetAllPaths' can be const
|
---|
14 | [graphics\ParticleEmitter.h:57]: (Style) Member variable not initialized in the constructor 'tParticle::alpha'
|
---|
15 | [graphics\ParticleEmitter.h:57]: (Style) Member variable not initialized in the constructor 'tParticle::alphaDelta'
|
---|
16 | [graphics\ParticleEmitter.h:57]: (Style) Member variable not initialized in the constructor 'tParticle::life'
|
---|
17 | [graphics\ParticleEmitter.h:57]: (Style) Member variable not initialized in the constructor 'tParticle::inPos'
|
---|
18 | [graphics\ParticleEmitter.h:147]: (Style) The function 'CEmitter::GetTag' can be const
|
---|
19 | [graphics\ParticleEmitter.h:148]: (Style) The function 'CEmitter::GetPosX' can be const
|
---|
20 | [graphics\ParticleEmitter.h:149]: (Style) The function 'CEmitter::GetPosY' can be const
|
---|
21 | [graphics\ParticleEmitter.h:150]: (Style) The function 'CEmitter::GetPosZ' can be const
|
---|
22 | [graphics\ParticleEmitter.h:151]: (Style) The function 'CEmitter::GetPosVec' can be const
|
---|
23 | [graphics\ParticleEmitter.h:152]: (Style) The function 'CEmitter::IsFinished' can be const
|
---|
24 | [graphics\ParticleEmitter.h:153]: (Style) The function 'CEmitter::GetEmitterLife' can be const
|
---|
25 | [graphics\ParticleEmitter.h:154]: (Style) The function 'CEmitter::GetParticleCount' can be const
|
---|
26 | [graphics\ParticleEmitter.h:155]: (Style) The function 'CEmitter::GetMaxParticles' can be const
|
---|
27 | [graphics\ParticleEmitter.h:156]: (Style) The function 'CEmitter::GetStartColor' can be const
|
---|
28 | [graphics\ParticleEmitter.h:157]: (Style) The function 'CEmitter::GetStartColorVar' can be const
|
---|
29 | [graphics\ParticleEmitter.h:158]: (Style) The function 'CEmitter::GetEndColor' can be const
|
---|
30 | [graphics\ParticleEmitter.h:159]: (Style) The function 'CEmitter::GetEndColorVar' can be const
|
---|
31 | [graphics\ParticleEmitter.h:160]: (Style) The function 'CEmitter::GetBlendMode' can be const
|
---|
32 | [graphics\ParticleEmitter.h:161]: (Style) The function 'CEmitter::GetSize' can be const
|
---|
33 | [graphics\ParticleEmitter.h:162]: (Style) The function 'CEmitter::GetYaw' can be const
|
---|
34 | [graphics\ParticleEmitter.h:163]: (Style) The function 'CEmitter::GetYawVar' can be const
|
---|
35 | [graphics\ParticleEmitter.h:164]: (Style) The function 'CEmitter::GetPitch' can be const
|
---|
36 | [graphics\ParticleEmitter.h:165]: (Style) The function 'CEmitter::GetPitchVar' can be const
|
---|
37 | [graphics\ParticleEmitter.h:166]: (Style) The function 'CEmitter::GetSpeed' can be const
|
---|
38 | [graphics\ParticleEmitter.h:167]: (Style) The function 'CEmitter::GetSpeedVar' can be const
|
---|
39 | [graphics\ParticleEmitter.h:168]: (Style) The function 'CEmitter::GetEmitsPerFrame' can be const
|
---|
40 | [graphics\ParticleEmitter.h:169]: (Style) The function 'CEmitter::GetEmitVar' can be const
|
---|
41 | [graphics\ParticleEmitter.h:170]: (Style) The function 'CEmitter::GetLife' can be const
|
---|
42 | [graphics\ParticleEmitter.h:171]: (Style) The function 'CEmitter::GetLifeVar' can be const
|
---|
43 | [graphics\ParticleEmitter.h:172]: (Style) The function 'CEmitter::GetForceX' can be const
|
---|
44 | [graphics\ParticleEmitter.h:173]: (Style) The function 'CEmitter::GetForceY' can be const
|
---|
45 | [graphics\ParticleEmitter.h:174]: (Style) The function 'CEmitter::GetForceZ' can be const
|
---|
46 | [graphics\GameView.cpp:76]: (Style) The function 'CSmoothedValue::GetSmoothedValue' can be const
|
---|
47 | [graphics\GameView.cpp:97]: (Style) The function 'CSmoothedValue::GetValue' can be const
|
---|
48 | [lib\timer.h:213]: (Style) The class 'TimerUnit' has no constructor. Member variables not initialized.
|
---|
49 | [ps\XML\XeroXMB.h:218]: (Style) Member variable not initialized in the constructor 'XMBAttribute::Name'
|
---|
50 | [ps\XML\XeroXMB.h:229]: (Style) Member variable not initialized in the constructor 'XMBAttributeList::m_LastPointer'
|
---|
51 | [ps\XML\XeroXMB.h:191]: (Style) Member variable not initialized in the constructor 'XMBElementList::m_LastPointer'
|
---|
52 | [ps\XML\XeroXMB.h:194]: (Style) Member variable not initialized in the constructor 'XMBElementList::m_LastPointer'
|
---|
53 | [ps\XML\XeroXMB.h:126]: (Style) Member variable not initialized in the constructor 'XMBFile::m_ElementNameCount'
|
---|
54 | [ps\XML\XeroXMB.h:126]: (Style) Member variable not initialized in the constructor 'XMBFile::m_AttributeNameCount'
|
---|
55 | [ps\XML\XeroXMB.h:126]: (Style) Member variable not initialized in the constructor 'XMBFile::m_ElementPointer'
|
---|
56 | [ps\XML\XeroXMB.h:126]: (Style) Member variable not initialized in the constructor 'XMBFile::m_AttributePointer'
|
---|
57 | [ps\XML\XeroXMB.h:163]: (Style) Unused private function 'XMBFile::ReadZStrA'
|
---|
58 | [graphics\Material.cpp:75] -> [graphics\Material.h:58]: (Style) The function 'CMaterial::Unbind' can be const
|
---|
59 | [graphics\Material.cpp:79] -> [graphics\Material.h:63]: (Style) The function 'CMaterial::GetDiffuse' can be const
|
---|
60 | [graphics\Material.cpp:84] -> [graphics\Material.h:64]: (Style) The function 'CMaterial::GetAmbient' can be const
|
---|
61 | [graphics\Material.cpp:89] -> [graphics\Material.h:65]: (Style) The function 'CMaterial::GetSpecular' can be const
|
---|
62 | [graphics\Material.cpp:94] -> [graphics\Material.h:66]: (Style) The function 'CMaterial::GetEmissive' can be const
|
---|
63 | [graphics\Material.cpp:49] -> [graphics\Material.h:93]: (Style) The function 'CMaterial::operator==' can be const
|
---|
64 | [graphics\Material.h:60]: (Style) The function 'CMaterial::GetTexture' can be const
|
---|
65 | [graphics\Material.h:61]: (Style) The function 'CMaterial::GetVertexProgram' can be const
|
---|
66 | [graphics\Material.h:62]: (Style) The function 'CMaterial::GetFragmentProgram' can be const
|
---|
67 | [graphics\Material.h:67]: (Style) The function 'CMaterial::GetSpecularPower' can be const
|
---|
68 | [graphics\Material.h:69]: (Style) The function 'CMaterial::UsesAlpha' can be const
|
---|
69 | [graphics\Material.h:72]: (Style) The function 'CMaterial::IsPlayer' can be const
|
---|
70 | [graphics\Material.h:41]: (Style) The function 'SMaterialColor::operator==' can be const
|
---|
71 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::pTerrain'
|
---|
72 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::pWaterMan'
|
---|
73 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::pSkyMan'
|
---|
74 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::pLightEnv'
|
---|
75 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::pGameView'
|
---|
76 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::pCinema'
|
---|
77 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::pTrigMan'
|
---|
78 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::pSimulation2'
|
---|
79 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::m_PlayerID'
|
---|
80 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::only_xml'
|
---|
81 | [graphics\MapReader.cpp:50]: (Style) Member variable not initialized in the constructor 'CMapReader::num_terrain_tex'
|
---|
82 | [graphics\MiniPatch.h:43]: (Style) The function 'CMiniPatch::GetPriority' can be const
|
---|
83 | [graphics\Patch.h:77]: (Style) The function 'CPatch::getDrawState' can be const
|
---|
84 | [graphics\TerrainTextureEntry.h:75]: (Style) The function 'CTerrainTextureEntry::GetTexture' can be const
|
---|
85 | [graphics\Model.h:75]: (Style) The function 'CModel::GetModelDef' can be const
|
---|
86 | [graphics\Model.h:94]: (Style) The function 'CModel::GetShadingColor' can be const
|
---|
87 | [graphics\Model.h:136]: (Style) The function 'CModel::IsSkinned' can be const
|
---|
88 | [graphics\Model.h:143]: (Style) The function 'CModel::GetInverseBindBoneMatrices' can be const
|
---|
89 | [graphics\Model.cpp:498] -> [graphics\Model.h:84]: (Style) The function 'CModel::GetPlayerID' can be const
|
---|
90 | [graphics\ParticleEngine.h:87]: (Style) The function 'CParticleEngine::GetTotalParticles' can be const
|
---|
91 | [graphics\ParticleEmitter.cpp:321]: (Style) The scope of the variable fYaw can be reduced
|
---|
92 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
93 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
94 | void f(int x)
|
---|
95 | {
|
---|
96 | int i = 0;
|
---|
97 | if (x) {
|
---|
98 | // it's safe to move 'int i = 0' here
|
---|
99 | for (int n = 0; n < 10; ++n) {
|
---|
100 | // it is possible but not safe to move 'int i = 0' here
|
---|
101 | do_something(&i);
|
---|
102 | }
|
---|
103 | }
|
---|
104 | }
|
---|
105 |
|
---|
106 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
107 | [graphics\ParticleEmitter.cpp:321]: (Style) The scope of the variable fPitch can be reduced
|
---|
108 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
109 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
110 | void f(int x)
|
---|
111 | {
|
---|
112 | int i = 0;
|
---|
113 | if (x) {
|
---|
114 | // it's safe to move 'int i = 0' here
|
---|
115 | for (int n = 0; n < 10; ++n) {
|
---|
116 | // it is possible but not safe to move 'int i = 0' here
|
---|
117 | do_something(&i);
|
---|
118 | }
|
---|
119 | }
|
---|
120 | }
|
---|
121 |
|
---|
122 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
123 | [graphics\ParticleEmitter.cpp:321]: (Style) The scope of the variable fSpeed can be reduced
|
---|
124 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
125 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
126 | void f(int x)
|
---|
127 | {
|
---|
128 | int i = 0;
|
---|
129 | if (x) {
|
---|
130 | // it's safe to move 'int i = 0' here
|
---|
131 | for (int n = 0; n < 10; ++n) {
|
---|
132 | // it is possible but not safe to move 'int i = 0' here
|
---|
133 | do_something(&i);
|
---|
134 | }
|
---|
135 | }
|
---|
136 | }
|
---|
137 |
|
---|
138 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
139 | [graphics\Patch.cpp:30]: (Style) Member variable not initialized in the constructor 'CPatch::m_X'
|
---|
140 | [graphics\Patch.cpp:30]: (Style) Member variable not initialized in the constructor 'CPatch::m_Z'
|
---|
141 | [graphics\Sprite.cpp:116] -> [graphics\Sprite.h:52]: (Style) The function 'CSprite::GetWidth' can be const
|
---|
142 | [graphics\Sprite.cpp:126] -> [graphics\Sprite.h:55]: (Style) The function 'CSprite::GetHeight' can be const
|
---|
143 | [graphics\Sprite.cpp:136] -> [graphics\Sprite.h:58]: (Style) The function 'CSprite::GetTranslation' can be const
|
---|
144 | [graphics\Sprite.cpp:153] -> [graphics\Sprite.h:62]: (Style) The function 'CSprite::GetScale' can be const
|
---|
145 | [graphics\TerrainTextureManager.h:38] -> [graphics\TerrainProperties.h:39]: (Style) Typedef 'CTerrainPropertiesPtr' hides typedef with same name
|
---|
146 | [graphics\TerrainProperties.h:39] -> [graphics\TerrainTextureManager.h:38]: (Style) Typedef 'CTerrainPropertiesPtr' hides typedef with same name
|
---|
147 | [graphics\TextureManager.cpp:634] -> [graphics\TextureManager.h:232]: (Style) The function 'CTexture::IsLoaded' can be const
|
---|
148 | [graphics\TextureManager.cpp:129]: (Style) The function 'CTextureManagerImpl::GetErrorTexture' can be const
|
---|
149 | [graphics\UnitManager.cpp:97]: (Style) Variable 'dist' is assigned a value that is never used
|
---|
150 | [graphics\tests\test_MeshManager.h:44]: (Style) The class 'TestMeshManager' has no constructor. Member variables not initialized.
|
---|
151 | [gui\GUIRenderer.h:42]: (Style) Member variable not initialized in the constructor 'SDrawCall::m_HasTexture'
|
---|
152 | [gui\GUIRenderer.h:42]: (Style) Member variable not initialized in the constructor 'SDrawCall::m_CellID'
|
---|
153 | [gui\GUIRenderer.h:42]: (Style) Member variable not initialized in the constructor 'SDrawCall::m_EnableBlending'
|
---|
154 | [gui\GUIRenderer.h:42]: (Style) Member variable not initialized in the constructor 'SDrawCall::m_DeltaZ'
|
---|
155 | [gui\IGUIObject.h:110]: (Style) Member variable not initialized in the constructor 'SGUISetting::m_Type'
|
---|
156 | [gui\CGUISprite.cpp:52]: (Style) Member variable not initialized in the constructor 'CGUISpriteInstance::m_CachedCellID'
|
---|
157 | [gui\CGUISprite.h:162]: (Style) The function 'CGUISpriteInstance::GetName' can be const
|
---|
158 | [gui\CGUIScrollBarVertical.cpp:30]: (Style) Member variable not initialized in the constructor 'CGUIScrollBarVertical::m_RightAligned'
|
---|
159 | [gui\CInput.cpp:1069]: (Style) Variable 'copy_used' is assigned a value that is never used
|
---|
160 | [gui\CInput.cpp:43]: (Style) Member variable not initialized in the constructor 'CInput::m_WantedX'
|
---|
161 | [gui\CTooltip.cpp:142]: (Style) The scope of the variable z can be reduced
|
---|
162 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
163 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
164 | void f(int x)
|
---|
165 | {
|
---|
166 | int i = 0;
|
---|
167 | if (x) {
|
---|
168 | // it's safe to move 'int i = 0' here
|
---|
169 | for (int n = 0; n < 10; ++n) {
|
---|
170 | // it is possible but not safe to move 'int i = 0' here
|
---|
171 | do_something(&i);
|
---|
172 | }
|
---|
173 | }
|
---|
174 | }
|
---|
175 |
|
---|
176 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
177 | [gui\GUIManager.cpp:53]: (Style) Member variable not initialized in the constructor 'SGUIPage::cx'
|
---|
178 | [gui\GUITooltip.cpp:80]: (Style) Member variable not initialized in the constructor 'GUITooltip::m_Time'
|
---|
179 | [gui\IGUIScrollBar.cpp:29]: (Style) Member variable not initialized in the constructor 'IGUIScrollBar::m_Z'
|
---|
180 | [gui\IGUIScrollBar.cpp:29]: (Style) Member variable not initialized in the constructor 'IGUIScrollBar::m_pHostObject'
|
---|
181 | [gui\IGUIScrollBar.cpp:29]: (Style) Member variable not initialized in the constructor 'IGUIScrollBar::m_PosWhenPressed'
|
---|
182 | [gui\MiniMap.cpp:54]: (Style) Member variable not initialized in the constructor 'CMiniMap::m_Camera'
|
---|
183 | [i18n\ScriptInterface.h:41] -> [i18n\StrImmutable.h:34]: (Style) Typedef 'jschar' hides typedef with same name
|
---|
184 | [i18n\StrImmutable.h:42]: (Style) Member variable not initialized in the constructor 'strImW_data::data'
|
---|
185 | [lib\allocators\headerless.cpp:54]: (Style) Member variable not initialized in the constructor 'FreedBlock::prev'
|
---|
186 | [lib\allocators\headerless.cpp:54]: (Style) Member variable not initialized in the constructor 'FreedBlock::next'
|
---|
187 | [lib\allocators\headerless.cpp:54]: (Style) Member variable not initialized in the constructor 'FreedBlock::m_size'
|
---|
188 | [lib\allocators\headerless.cpp:58]: (Style) Member variable not initialized in the constructor 'FreedBlock::prev'
|
---|
189 | [lib\allocators\headerless.cpp:58]: (Style) Member variable not initialized in the constructor 'FreedBlock::next'
|
---|
190 | [lib\allocators\headerless.cpp:512]: (Style) The class 'Stats' has no constructor. Member variables not initialized.
|
---|
191 | [lib\file\archive\archive_zip.cpp:409]: (Style) C-style pointer casting
|
---|
192 | [lib\file\archive\archive_zip.cpp:473]: (Style) C-style pointer casting
|
---|
193 | [lib\file\archive\archive_zip.cpp:542]: (Style) C-style pointer casting
|
---|
194 | [lib\file\archive\archive_zip.cpp:616]: (Style) C-style pointer casting
|
---|
195 | [lib\file\archive\archive_zip.cpp:624]: (Style) C-style pointer casting
|
---|
196 | [lib\file\archive\archive_zip.cpp:544]: (Style) Throwing exception in destructor
|
---|
197 | [lib\file\io\io.cpp:126]: (Style) The class 'BlockIo' has no constructor. Member variables not initialized.
|
---|
198 | [lib\file\vfs\vfs_populate.cpp:78]: (Style) C-style pointer casting
|
---|
199 | [lib\res\graphics\cursor.cpp:81]: (Style) The class 'GLCursor' has no constructor. Member variables not initialized.
|
---|
200 | [lib\res\sound\ogg.cpp:124]: (Style) Member variable not initialized in the constructor 'OggStreamImpl::info'
|
---|
201 | [lib\sysdep\os\win\wdbg.cpp:128]: (Style) struct or union member 'ThreadNameInfo::type' is never used
|
---|
202 | [lib\sysdep\os\win\wdbg.cpp:129]: (Style) struct or union member 'ThreadNameInfo::name' is never used
|
---|
203 | [lib\sysdep\os\win\wdbg.cpp:130]: (Style) struct or union member 'ThreadNameInfo::thread_id' is never used
|
---|
204 | [lib\sysdep\os\win\wdbg.cpp:131]: (Style) struct or union member 'ThreadNameInfo::flags' is never used
|
---|
205 | [lib\sysdep\os\win\wdir_watch.cpp:399]: (Style) C-style pointer casting
|
---|
206 | [lib\sysdep\os\win\wdbg_heap.cpp:718]: (Style) C-style pointer casting
|
---|
207 | [lib\sysdep\os\win\wdbg_heap.cpp:672]: (Style) The class 'CallStack' has no constructor. Member variables not initialized.
|
---|
208 | [lib\sysdep\os\win\wdll_delay_load.cpp:242]: (Style) struct or union member 'InternalImgDelayDescr::pUnloadIAT' is never used
|
---|
209 | [lib\sysdep\os\win\wnuma.cpp:193]: (Style) struct or union member 'AffinityMemory::reserved1' is never used
|
---|
210 | [lib\sysdep\os\win\wnuma.cpp:194]: (Style) struct or union member 'AffinityMemory::baseAddress' is never used
|
---|
211 | [lib\sysdep\os\win\wnuma.cpp:196]: (Style) struct or union member 'AffinityMemory::reserved2' is never used
|
---|
212 | [lib\sysdep\os\win\wnuma.cpp:197]: (Style) struct or union member 'AffinityMemory::flags' is never used
|
---|
213 | [lib\sysdep\os\win\wnuma.cpp:198]: (Style) struct or union member 'AffinityMemory::reserved3' is never used
|
---|
214 | [lib\sysdep\os\win\whrt\hpet.cpp:49]: (Style) Member variable not initialized in the constructor 'CounterHPET::m_frequency'
|
---|
215 | [lib\sysdep\os\win\wposix\wtime.cpp:384]: (Style) The scope of the variable ret can be reduced
|
---|
216 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
217 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
218 | void f(int x)
|
---|
219 | {
|
---|
220 | int i = 0;
|
---|
221 | if (x) {
|
---|
222 | // it's safe to move 'int i = 0' here
|
---|
223 | for (int n = 0; n < 10; ++n) {
|
---|
224 | // it is possible but not safe to move 'int i = 0' here
|
---|
225 | do_something(&i);
|
---|
226 | }
|
---|
227 | }
|
---|
228 | }
|
---|
229 |
|
---|
230 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
231 | [lib\tests\test_secure_crt.h:159]: (Style) Member variable not initialized in the constructor 'TestString_s::d1'
|
---|
232 | [lib\tests\test_secure_crt.h:159]: (Style) Member variable not initialized in the constructor 'TestString_s::d2'
|
---|
233 | [lib\tests\test_secure_crt.h:159]: (Style) Member variable not initialized in the constructor 'TestString_s::d3'
|
---|
234 | [lib\tests\test_secure_crt.h:159]: (Style) Member variable not initialized in the constructor 'TestString_s::d5'
|
---|
235 | [lib\tests\test_secure_crt.h:159]: (Style) Member variable not initialized in the constructor 'TestString_s::d6'
|
---|
236 | [lib\tests\test_secure_crt.h:159]: (Style) Member variable not initialized in the constructor 'TestString_s::d10'
|
---|
237 | [lib\tests\test_secure_crt.h:159]: (Style) Member variable not initialized in the constructor 'TestString_s::d11'
|
---|
238 | [maths\Fixed.h:338] -> [maths\Fixed.h:328]: (Style) Typedef 'fixed' hides typedef with same name
|
---|
239 | [maths\Fixed.cpp:193] -> [maths\Fixed.h:328]: (Style) Typedef 'fixed' hides typedef with same name
|
---|
240 | [maths\Bound.cpp:158] -> [maths\Bound.h:47]: (Style) The function 'CBound::IsEmpty' can be const
|
---|
241 | [maths\Vector2D.h:63]: (Style) Variable 'inv' is assigned a value that is never used
|
---|
242 | [maths\Vector2D.h:34]: (Style) Member variable not initialized in the constructor 'CVector2D_Maths::X'
|
---|
243 | [maths\Vector2D.h:34]: (Style) Member variable not initialized in the constructor 'CVector2D_Maths::Y'
|
---|
244 | [maths\NUSpline.h:41]: (Style) Member variable not initialized in the constructor 'RNSpline::MaxDistance'
|
---|
245 | [maths\Vector4D.h:76]: (Style) Variable 'inv_f' is assigned a value that is never used
|
---|
246 | [maths\Vector4D.h:34]: (Style) Member variable not initialized in the constructor 'CVector4D::m_X'
|
---|
247 | [maths\Vector4D.h:34]: (Style) Member variable not initialized in the constructor 'CVector4D::m_Y'
|
---|
248 | [maths\Vector4D.h:34]: (Style) Member variable not initialized in the constructor 'CVector4D::m_Z'
|
---|
249 | [maths\Vector4D.h:34]: (Style) Member variable not initialized in the constructor 'CVector4D::m_W'
|
---|
250 | [maths\Matrix3D.cpp:138] -> [maths\Matrix3D.h:79]: (Style) The function 'CMatrix3D::SetIdentity' can be const
|
---|
251 | [maths\Matrix3D.cpp:147] -> [maths\Matrix3D.h:81]: (Style) The function 'CMatrix3D::SetZero' can be const
|
---|
252 | [maths\Matrix3D.cpp:216] -> [maths\Matrix3D.h:105]: (Style) The function 'CMatrix3D::SetTranslation' can be const
|
---|
253 | [maths\Matrix3D.cpp:230] -> [maths\Matrix3D.h:111]: (Style) The function 'CMatrix3D::Translate' can be const
|
---|
254 | [maths\Matrix3D.cpp:237] -> [maths\Matrix3D.h:112]: (Style) The function 'CMatrix3D::Translate' can be const
|
---|
255 | [maths\Matrix3D.cpp:261] -> [maths\Matrix3D.h:115]: (Style) The function 'CMatrix3D::SetScaling' can be const
|
---|
256 | [maths\Quaternion.cpp:201]: (Style) The scope of the variable omega can be reduced
|
---|
257 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
258 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
259 | void f(int x)
|
---|
260 | {
|
---|
261 | int i = 0;
|
---|
262 | if (x) {
|
---|
263 | // it's safe to move 'int i = 0' here
|
---|
264 | for (int n = 0; n < 10; ++n) {
|
---|
265 | // it is possible but not safe to move 'int i = 0' here
|
---|
266 | do_something(&i);
|
---|
267 | }
|
---|
268 | }
|
---|
269 | }
|
---|
270 |
|
---|
271 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
272 | [maths\Quaternion.cpp:201]: (Style) The scope of the variable sinom can be reduced
|
---|
273 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
274 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
275 | void f(int x)
|
---|
276 | {
|
---|
277 | int i = 0;
|
---|
278 | if (x) {
|
---|
279 | // it's safe to move 'int i = 0' here
|
---|
280 | for (int n = 0; n < 10; ++n) {
|
---|
281 | // it is possible but not safe to move 'int i = 0' here
|
---|
282 | do_something(&i);
|
---|
283 | }
|
---|
284 | }
|
---|
285 | }
|
---|
286 |
|
---|
287 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
288 | [network\NetStats.h:23] -> [network\NetHost.h:30]: (Style) Struct 'ENetPeer' hides typedef with same name
|
---|
289 | [network\NetStats.h:24] -> [network\NetHost.h:32]: (Style) Struct 'ENetHost' hides typedef with same name
|
---|
290 | [network\fsm.cpp:56]: (Style) Member variable not initialized in the constructor 'CFsmTransition::m_NextState'
|
---|
291 | [network\fsm.cpp:56]: (Style) Member variable not initialized in the constructor 'CFsmTransition::m_Event'
|
---|
292 | [ps\Filesystem.cpp:99]: (Style) Member variable not initialized in the constructor 'CVFSFile::m_BufferSize'
|
---|
293 | [ps\Game.cpp:173] -> [ps\Game.h:97]: (Style) The function 'CGame::GetPlayerID' can be const
|
---|
294 | [ps\Hotkey.cpp:40]: (Style) Member variable not initialized in the constructor 'SHotkeyMapping::negation'
|
---|
295 | [ps\Hotkey.cpp:150]: (Style) Member variable not initialized in the constructor 'SHotkeyMappingGui::negation'
|
---|
296 | [ps\Parser.cpp:825]: (Style) Variable 'ConstructNew' is assigned a value that is never used
|
---|
297 | [ps\Parser.cpp:283]: (Style) Member variable not initialized in the constructor 'CParserLine::m_ParseOK'
|
---|
298 | [ps\Parser.cpp:231]: (Style) Member variable not initialized in the constructor 'CParserTaskTypeNode::m_Letter'
|
---|
299 | [ps\Parser.cpp:231]: (Style) Member variable not initialized in the constructor 'CParserTaskTypeNode::m_Type'
|
---|
300 | [ps\Parser.cpp:231]: (Style) Member variable not initialized in the constructor 'CParserTaskTypeNode::m_AltNodeRepeatable'
|
---|
301 | [ps\Profile.cpp:584]: (Style) Member variable not initialized in the constructor 'CProfileManager::start'
|
---|
302 | [ps\Profile.cpp:584]: (Style) Member variable not initialized in the constructor 'CProfileManager::start_mallocs'
|
---|
303 | [ps\ProfileViewer.cpp:44]: (Style) Member variable not initialized in the constructor 'CProfileViewerInternals::profileVisible'
|
---|
304 | [ps\VideoMode.cpp:43]: (Style) Member variable not initialized in the constructor 'CVideoMode::m_IsFullscreen'
|
---|
305 | [ps\VideoMode.cpp:43]: (Style) Member variable not initialized in the constructor 'CVideoMode::m_CurrentW'
|
---|
306 | [ps\VideoMode.cpp:43]: (Style) Member variable not initialized in the constructor 'CVideoMode::m_CurrentH'
|
---|
307 | [ps\VideoMode.cpp:43]: (Style) Member variable not initialized in the constructor 'CVideoMode::m_CurrentBPP'
|
---|
308 | [ps\VideoMode.cpp:294] -> [ps\VideoMode.h:59]: (Style) The function 'CVideoMode::GetBestBPP' can be const
|
---|
309 | [ps\Util.cpp:301]: (Error) Memory leak: tile_data
|
---|
310 | [ps\Util.cpp:141]: (Style) Found obsolete function 'gethostbyname'. It is recommended that new applications use the 'getnameinfo' function
|
---|
311 | [ps\GameSetup\Paths.h:60]: (Style) Unused private function 'Paths::XDG_Path'
|
---|
312 | [ps\XML\XMLWriter.cpp:110] -> [ps\XML\XMLWriter.h:118]: (Style) The function 'XMLWriter_File::GetOutput' can be const
|
---|
313 | [renderer\InstancingModelRenderer.cpp:106]: (Style) struct or union member 'InstancingModelRendererInternals::modifier' is never used
|
---|
314 | [renderer\HWLightingModelRenderer.cpp:86]: (Style) struct or union member 'HWLightingModelRendererInternals::modifier' is never used
|
---|
315 | [renderer\BlendShapes.h:24]: (Style) Member variable not initialized in the constructor 'BlendShape4::m_Data'
|
---|
316 | [renderer\BlendShapes.h:79]: (Style) Member variable not initialized in the constructor 'BlendShape8::m_Data'
|
---|
317 | [renderer\OverlayRenderer.cpp:61] -> [renderer\OverlayRenderer.h:52]: (Style) The function 'OverlayRenderer::PrepareForRendering' can be const
|
---|
318 | [renderer\ModelRenderer.cpp:252]: (Style) Member variable not initialized in the constructor 'BatchModelRendererInternals::phase'
|
---|
319 | [renderer\ModelRenderer.cpp:252]: (Style) Member variable not initialized in the constructor 'BatchModelRendererInternals::submissions'
|
---|
320 | [renderer\TransparencyRenderer.cpp:143]: (Style) The function 'SortFacesByDist::operator()' can be const
|
---|
321 | [renderer\TransparencyRenderer.cpp:472]: (Style) The function 'SortModelsByDist::operator()' can be const
|
---|
322 | [scripting\JSConversions.cpp:307]: (Style) The scope of the variable intResult can be reduced
|
---|
323 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
324 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
325 | void f(int x)
|
---|
326 | {
|
---|
327 | int i = 0;
|
---|
328 | if (x) {
|
---|
329 | // it's safe to move 'int i = 0' here
|
---|
330 | for (int n = 0; n < 10; ++n) {
|
---|
331 | // it is possible but not safe to move 'int i = 0' here
|
---|
332 | do_something(&i);
|
---|
333 | }
|
---|
334 | }
|
---|
335 | }
|
---|
336 |
|
---|
337 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
338 | [scripting\ScriptGlue.cpp:275]: (Error) Null pointer dereference
|
---|
339 | [simulation\EntityFormation.h:108]: (Style) Unused private function 'CEntityFormation::UpdateFormation'
|
---|
340 | [simulation\EntityFormation.h:111]: (Style) Unused private function 'CEntityFormation::ResetIndex'
|
---|
341 | [simulation\EntityFormation.h:113]: (Style) Unused private function 'CEntityFormation::ResetAngleDivs'
|
---|
342 | [simulation\Formation.h:45]: (Style) The function 'CFormation::GetBonus' can be const
|
---|
343 | [simulation\Formation.h:46]: (Style) The function 'CFormation::GetBonusBase' can be const
|
---|
344 | [simulation\Formation.h:47]: (Style) The function 'CFormation::GetBonusType' can be const
|
---|
345 | [simulation\Formation.h:48]: (Style) The function 'CFormation::GetBonusVal' can be const
|
---|
346 | [simulation\Formation.h:50]: (Style) The function 'CFormation::GetPenalty' can be const
|
---|
347 | [simulation\Formation.h:51]: (Style) The function 'CFormation::GetPenaltyBase' can be const
|
---|
348 | [simulation\Formation.h:52]: (Style) The function 'CFormation::GetPenaltyType' can be const
|
---|
349 | [simulation\Formation.h:53]: (Style) The function 'CFormation::GetPenaltyVal' can be const
|
---|
350 | [simulation\Formation.h:55]: (Style) The function 'CFormation::GetAnglePenalty' can be const
|
---|
351 | [simulation\Formation.h:56]: (Style) The function 'CFormation::GetAnglePenaltyType' can be const
|
---|
352 | [simulation\Formation.h:57]: (Style) The function 'CFormation::GetAnglePenaltyDivs' can be const
|
---|
353 | [simulation\Formation.h:58]: (Style) The function 'CFormation::GetAnglePenaltyVal' can be const
|
---|
354 | [simulation\Simulation.h:84]: (Style) The function 'CSimulation::GetTime' can be const
|
---|
355 | [simulation\EntityRendering.cpp:388]: (Style) Variable 'backgroundW' is assigned a value that is never used
|
---|
356 | [simulation\EntityRendering.cpp:389]: (Style) Variable 'backgroundH' is assigned a value that is never used
|
---|
357 | [simulation\EntityRendering.cpp:64]: (Error) deque range check should use != and not < since the order of the pointers isn't guaranteed
|
---|
358 | [simulation\EntityRendering.cpp:81]: (Error) deque range check should use != and not < since the order of the pointers isn't guaranteed
|
---|
359 | [simulation\EntityStateProcessing.cpp:708]: (Style) Variable 'pathfinder_radius' is assigned a value that is never used
|
---|
360 | [simulation\Formation.cpp:26]: (Style) Member variable not initialized in the constructor 'CFormation::m_bonusVal'
|
---|
361 | [simulation\Formation.cpp:26]: (Style) Member variable not initialized in the constructor 'CFormation::m_penaltyVal'
|
---|
362 | [simulation\Formation.cpp:26]: (Style) Member variable not initialized in the constructor 'CFormation::m_anglePenaltyDivs'
|
---|
363 | [simulation\Formation.cpp:26]: (Style) Member variable not initialized in the constructor 'CFormation::m_anglePenaltyVal'
|
---|
364 | [simulation\Formation.cpp:26]: (Style) Member variable not initialized in the constructor 'CFormation::m_required'
|
---|
365 | [simulation\Formation.cpp:26]: (Style) Member variable not initialized in the constructor 'CFormation::m_fileSpacing'
|
---|
366 | [simulation\Formation.cpp:26]: (Style) Member variable not initialized in the constructor 'CFormation::m_rankSpacing'
|
---|
367 | [simulation\Formation.cpp:26]: (Style) Member variable not initialized in the constructor 'CFormation::m_numRanks'
|
---|
368 | [simulation\Formation.cpp:26]: (Style) Member variable not initialized in the constructor 'CFormation::m_numFiles'
|
---|
369 | [simulation\TerritoryManager.cpp:42]: (Style) Member variable not initialized in the constructor 'CTerritoryManager::m_TilesPerSide'
|
---|
370 | [simulation\Technology.cpp:36]: (Style) Member variable not initialized in the constructor 'CTechnology::m_IconCell'
|
---|
371 | [simulation\Technology.cpp:36]: (Style) Member variable not initialized in the constructor 'CTechnology::m_ReqTime'
|
---|
372 | [simulation\TriggerManager.cpp:29]: (Style) Member variable not initialized in the constructor 'CTrigger::m_cx'
|
---|
373 | [simulation\TriggerManager.cpp:37]: (Style) Member variable not initialized in the constructor 'CTrigger::m_cx'
|
---|
374 | [simulation\TriggerManager.cpp:54]: (Style) Member variable not initialized in the constructor 'CTrigger::m_cx'
|
---|
375 | [simulation\TriggerManager.cpp:83]: (Style) Member variable 'CTrigger::m_runCount' is not assigned a value in 'CTrigger::operator='
|
---|
376 | [simulation\TriggerManager.cpp:83]: (Style) Member variable 'CTrigger::m_conditionFuncString' is not assigned a value in 'CTrigger::operator='
|
---|
377 | [simulation\TriggerManager.cpp:83]: (Style) Member variable 'CTrigger::m_effectFuncString' is not assigned a value in 'CTrigger::operator='
|
---|
378 | [simulation\TriggerManager.cpp:83]: (Style) Member variable 'CTrigger::m_groupName' is not assigned a value in 'CTrigger::operator='
|
---|
379 | [simulation\TriggerManager.cpp:83]: (Style) Member variable 'CTrigger::m_cx' is not assigned a value in 'CTrigger::operator='
|
---|
380 | [simulation\TriggerManager.h:170]: (Style) Member variable not initialized in the constructor 'CTriggerSpec::funcParameters'
|
---|
381 | [simulation\TriggerManager.h:155]: (Style) Member variable not initialized in the constructor 'TriggerParameter::row'
|
---|
382 | [simulation\TriggerManager.h:155]: (Style) Member variable not initialized in the constructor 'TriggerParameter::column'
|
---|
383 | [simulation\TriggerManager.h:155]: (Style) Member variable not initialized in the constructor 'TriggerParameter::xPos'
|
---|
384 | [simulation\TriggerManager.h:155]: (Style) Member variable not initialized in the constructor 'TriggerParameter::yPos'
|
---|
385 | [simulation\TriggerManager.h:155]: (Style) Member variable not initialized in the constructor 'TriggerParameter::xSize'
|
---|
386 | [simulation\TriggerManager.h:155]: (Style) Member variable not initialized in the constructor 'TriggerParameter::ySize'
|
---|
387 | [simulation\TriggerManager.h:155]: (Style) Member variable not initialized in the constructor 'TriggerParameter::parameterOrder'
|
---|
388 | [simulation\TriggerManager.h:156]: (Style) Member variable not initialized in the constructor 'TriggerParameter::xPos'
|
---|
389 | [simulation\TriggerManager.h:156]: (Style) Member variable not initialized in the constructor 'TriggerParameter::yPos'
|
---|
390 | [simulation\TriggerManager.h:156]: (Style) Member variable not initialized in the constructor 'TriggerParameter::xSize'
|
---|
391 | [simulation\TriggerManager.h:156]: (Style) Member variable not initialized in the constructor 'TriggerParameter::ySize'
|
---|
392 | [simulation\TriggerManager.h:156]: (Style) Member variable not initialized in the constructor 'TriggerParameter::parameterOrder'
|
---|
393 | [simulation2\components\ICmpObstructionManager.h:65]: (Style) The function 'ICmpObstructionManager::tag_t::valid' can be const
|
---|
394 | [simulation2\components\CCmpObstructionManager.cpp:66]: (Style) The class 'CCmpObstructionManager' has no constructor. Member variables not initialized.
|
---|
395 | [simulation2\components\CCmpTemplateManager.cpp:34]: (Style) The class 'CCmpTemplateManager' has no constructor. Member variables not initialized.
|
---|
396 | [simulation2\serialization\HashSerializer.cpp:37] -> [simulation2\serialization\HashSerializer.h:32]: (Style) The function 'CHashSerializerImpl::GetHashLength' can be const
|
---|
397 | [simulation2\system\IComponent.h:33]: (Style) The class 'IComponent' has no constructor. Member variables not initialized.
|
---|
398 | [simulation2\tests\test_Serializer.h:488]: (Style) Variable 't' is assigned a value that is never used
|
---|
399 | [tools\ape\main.cpp:483]: (Style) Variable 'load_button' is assigned a value that is never used
|
---|
400 | [tools\ape\main.cpp:137]: (Error) Resource leak: in
|
---|
401 | [tools\ape\ext\Particle.cpp:21]: (Style) Member variable not initialized in the constructor 'CParticle::m_sprite'
|
---|
402 | [tools\ape\ext\Particle.cpp:21]: (Style) Member variable not initialized in the constructor 'CParticle::m_colour'
|
---|
403 | [tools\ape\ext\Particle.cpp:21]: (Style) Member variable not initialized in the constructor 'CParticle::m_colourInc'
|
---|
404 | [sound\SoundGroup.cpp:77]: (Style) Member variable not initialized in the constructor 'CSoundGroup::m_TimeWindow'
|
---|
405 | [sound\SoundGroup.h:101]: (Style) The function 'CSoundGroup::TestFlag' can be const
|
---|
406 | [tools\ape\ext\ParticleSystem.cpp:45]: (Error) Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
|
---|
407 | [tools\ape\ext\Sprite.cpp:111] -> [tools\ape\ext\Sprite.h:43]: (Style) The function 'CSprite::GetWidth' can be const
|
---|
408 | [tools\ape\ext\Sprite.cpp:121] -> [tools\ape\ext\Sprite.h:46]: (Style) The function 'CSprite::GetHeight' can be const
|
---|
409 | [tools\ape\ext\Sprite.cpp:131] -> [tools\ape\ext\Sprite.h:49]: (Style) The function 'CSprite::GetTranslation' can be const
|
---|
410 | [tools\ape\ext\Sprite.cpp:148] -> [tools\ape\ext\Sprite.h:53]: (Style) The function 'CSprite::GetScale' can be const
|
---|
411 | [tools\ape\ext\ParticleEmitter.cpp:28]: (Style) Member variable not initialized in the constructor 'CParticleEmitter::m_vertices'
|
---|
412 | [tools\ape\ext\ParticleEmitter.cpp:28]: (Style) Member variable not initialized in the constructor 'CParticleEmitter::m_texCoords'
|
---|
413 | [tools\ape\ext\ParticleEmitter.cpp:28]: (Style) Member variable not initialized in the constructor 'CParticleEmitter::m_colours'
|
---|
414 | [tools\ape\ext\ParticleEmitter.cpp:28]: (Style) Member variable not initialized in the constructor 'CParticleEmitter::m_timeElapsedTotal'
|
---|
415 | [tools\ape\ext\ParticleEmitter.cpp:272] -> [tools\ape\ext\ParticleEmitter.h:63]: (Style) The function 'CParticleEmitter::IsFinished' can be const
|
---|
416 | [tools\ape\ext\ParticleEmitter.cpp:59]: (Error) Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
|
---|
417 | [tools\ape\ext\ParticleEmitter.cpp:188]: (Error) Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
|
---|
418 | [tools\atlas\AtlasObject\AtlasObjectXML.cpp:60]: (Error) Array 'buf[4]' index 4 out of bounds
|
---|
419 | [tools\atlas\AtlasScript\ScriptInterface.cpp:878]: (Style) Unused variable: ret
|
---|
420 | [tools\atlas\AtlasScript\ScriptInterface.cpp:879]: (Style) Variable 'obj' is assigned a value that is never used
|
---|
421 | [tools\atlas\AtlasUI\ColourTester\ColourTesterImageCtrl.cpp:41]: (Style) Member variable not initialized in the constructor 'ColourTesterImageCtrl::m_DxtcFormat'
|
---|
422 | [tools\atlas\AtlasUI\CustomControls\EditableListCtrl\ListCtrlValidator.cpp:30]: (Style) Member variable not initialized in the constructor 'ListCtrlValidator::m_Row'
|
---|
423 | [tools\atlas\AtlasUI\CustomControls\EditableListCtrl\ListCtrlValidator.cpp:30]: (Style) Member variable not initialized in the constructor 'ListCtrlValidator::m_Col'
|
---|
424 | [tools\atlas\AtlasUI\CustomControls\EditableListCtrl\QuickFileCtrl.h:25]: (Style) Member variable not initialized in the constructor 'QuickFileCtrl::m_TextCtrl'
|
---|
425 | [tools\atlas\AtlasUI\CustomControls\EditableListCtrl\QuickFileCtrl.h:25]: (Style) Member variable not initialized in the constructor 'QuickFileCtrl::m_ButtonBrowse'
|
---|
426 | [tools\atlas\AtlasUI\CustomControls\EditableListCtrl\QuickFileCtrl.h:25]: (Style) Member variable not initialized in the constructor 'QuickFileCtrl::m_DisableKillFocus'
|
---|
427 | [tools\atlas\AtlasUI\CustomControls\EditableListCtrl\QuickFileCtrl.h:25]: (Style) Member variable not initialized in the constructor 'QuickFileCtrl::m_RememberedDir'
|
---|
428 | [tools\atlas\AtlasUI\CustomControls\SnapSplitterWindow\SnapSplitterWindow.cpp:27]: (Style) Member variable not initialized in the constructor 'SnapSplitterWindow::m_DefaultSashPosition'
|
---|
429 | [tools\atlas\AtlasUI\FileConverter\FileConverter.cpp:70]: (Style) Variable 'succeeded' is assigned a value that is never used
|
---|
430 | [tools\atlas\AtlasUI\General\VideoRecorder\FFmpeg.cpp:91]: (Style) Member variable not initialized in the constructor 'VideoEncoderImpl::framerate'
|
---|
431 | [tools\atlas\AtlasUI\General\VideoRecorder\FFmpeg.cpp:91]: (Style) Member variable not initialized in the constructor 'VideoEncoderImpl::bitrate'
|
---|
432 | [tools\atlas\AtlasUI\General\VideoRecorder\FFmpeg.cpp:91]: (Style) Member variable not initialized in the constructor 'VideoEncoderImpl::duration'
|
---|
433 | [tools\atlas\AtlasUI\General\VideoRecorder\FFmpeg.cpp:91]: (Style) Member variable not initialized in the constructor 'VideoEncoderImpl::width'
|
---|
434 | [tools\atlas\AtlasUI\General\VideoRecorder\FFmpeg.cpp:91]: (Style) Member variable not initialized in the constructor 'VideoEncoderImpl::height'
|
---|
435 | [tools\atlas\AtlasUI\ScenarioEditor\SectionLayout.cpp:270]: (Style) Member variable not initialized in the constructor 'SectionLayout::m_SidebarBook'
|
---|
436 | [tools\atlas\AtlasUI\ScenarioEditor\SectionLayout.cpp:270]: (Style) Member variable not initialized in the constructor 'SectionLayout::m_Canvas'
|
---|
437 | [tools\atlas\AtlasUI\ScenarioEditor\SectionLayout.cpp:270]: (Style) Member variable not initialized in the constructor 'SectionLayout::m_HorizSplitter'
|
---|
438 | [tools\atlas\AtlasUI\ScenarioEditor\SectionLayout.cpp:270]: (Style) Member variable not initialized in the constructor 'SectionLayout::m_VertSplitter'
|
---|
439 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Cinematic\Cinematic.cpp:219]: (Style) The scope of the variable j can be reduced
|
---|
440 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
441 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
442 | void f(int x)
|
---|
443 | {
|
---|
444 | int i = 0;
|
---|
445 | if (x) {
|
---|
446 | // it's safe to move 'int i = 0' here
|
---|
447 | for (int n = 0; n < 10; ++n) {
|
---|
448 | // it is possible but not safe to move 'int i = 0' here
|
---|
449 | do_something(&i);
|
---|
450 | }
|
---|
451 | }
|
---|
452 | }
|
---|
453 |
|
---|
454 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
455 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Cinematic\Cinematic.cpp:371]: (Style) Member variable not initialized in the constructor 'CinematicBottomBar::m_Name'
|
---|
456 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Cinematic\Cinematic.cpp:371]: (Style) Member variable not initialized in the constructor 'CinematicBottomBar::m_TimeText'
|
---|
457 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Environment\LightControl.cpp:30]: (Style) Member variable not initialized in the constructor 'LightSphere::theta'
|
---|
458 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Environment\LightControl.cpp:30]: (Style) Member variable not initialized in the constructor 'LightSphere::phi'
|
---|
459 | [tools\atlas\AtlasUI\ScenarioEditor\Tools\AlterElevation.cpp:35]: (Style) Member variable not initialized in the constructor 'AlterElevation::m_Direction'
|
---|
460 | [tools\atlas\AtlasUI\ScenarioEditor\Tools\ScriptedTool.cpp:31]: (Style) Member variable not initialized in the constructor 'ScriptedTool::m_ScriptInterface'
|
---|
461 | [tools\atlas\AtlasUI\ScenarioEditor\Tools\SmoothElevation.cpp:36]: (Style) Member variable not initialized in the constructor 'SmoothElevation::m_Direction'
|
---|
462 | [tools\atlas\AtlasUI\ScenarioEditor\Tools\TransformObject.cpp:36]: (Style) Member variable not initialized in the constructor 'TransformObject::m_dx'
|
---|
463 | [tools\atlas\AtlasUI\ScenarioEditor\Tools\TransformObject.cpp:36]: (Style) Member variable not initialized in the constructor 'TransformObject::m_dy'
|
---|
464 | [tools\atlas\DatafileIO\Util.h:40] -> [tools\atlas\DatafileIO\Util.h:39]: (Style) Typedef '__C_ASSERT__' hides typedef with same name
|
---|
465 | [tools\atlas\DatafileIO\Util.h:41] -> [tools\atlas\DatafileIO\Util.h:40]: (Style) Typedef '__C_ASSERT__' hides typedef with same name
|
---|
466 | [tools\atlas\DatafileIO\Util.h:42] -> [tools\atlas\DatafileIO\Util.h:41]: (Style) Typedef '__C_ASSERT__' hides typedef with same name
|
---|
467 | [tools\atlas\DatafileIO\BAR\BAR.cpp:115]: (Style) struct or union member 'buffer_releaser::stream' is never used
|
---|
468 | [tools\atlas\DatafileIO\BAR\BAR.h:28]: (Style) The struct 'BAREntry' has no constructor. Member variables not initialized.
|
---|
469 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_ParameterSizer'
|
---|
470 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_DependentSizer'
|
---|
471 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_TimeEdit'
|
---|
472 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_ConditionEdit'
|
---|
473 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_EffectEdit'
|
---|
474 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_TriggerEdit'
|
---|
475 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_RunsEdit'
|
---|
476 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_ActiveCheck'
|
---|
477 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_NotCheck'
|
---|
478 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_LogicNotCheck'
|
---|
479 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_ConditionChoice'
|
---|
480 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_EffectChoice'
|
---|
481 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_LogicRadio'
|
---|
482 | [tools\atlas\AtlasUI\ScenarioEditor\Sections\Trigger\Trigger.cpp:376]: (Style) Member variable not initialized in the constructor 'TriggerBottomBar::m_TimeRadio'
|
---|
483 | [tools\atlas\GameInterface\MessagesSetup.h:33]: (Error) Invalid number of character ({) when these macros are defined: ''.
|
---|
484 | [tools\atlas\GameInterface\MessagesSetup.h:33]: (Error) Invalid number of character ({) when these macros are defined: 'MESSAGES_SKIP_STRUCTS'.
|
---|
485 | [tools\atlas\GameInterface\MessagesSetup.h:33]: (Error) Invalid number of character ({) when these macros are defined: '_MSC_VER'.
|
---|
486 | [tools\atlas\GameInterface\MessagesSetup.h:33]: (Error) Invalid number of character ({) when these macros are defined: 'OS_WIN'.
|
---|
487 | [tools\atlas\GameInterface\ActorViewer.cpp:52]: (Style) Member variable not initialized in the constructor 'ActorViewerImpl::CurrentSpeed'
|
---|
488 | [tools\atlas\GameInterface\ActorViewer.cpp:52]: (Style) Member variable not initialized in the constructor 'ActorViewerImpl::WalkEnabled'
|
---|
489 | [tools\atlas\GameInterface\ActorViewer.cpp:52]: (Style) Member variable not initialized in the constructor 'ActorViewerImpl::GroundEnabled'
|
---|
490 | [tools\atlas\GameInterface\ActorViewer.cpp:52]: (Style) Member variable not initialized in the constructor 'ActorViewerImpl::ShadowsEnabled'
|
---|
491 | [tools\atlas\GameInterface\MessagePasserImpl.cpp:165]: (Style) Variable 'err' is assigned a value that is never used
|
---|
492 | [tools\atlas\wxJS\gui\control\window.cpp:1144]: (Style) The scope of the variable x can be reduced
|
---|
493 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
494 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
495 | void f(int x)
|
---|
496 | {
|
---|
497 | int i = 0;
|
---|
498 | if (x) {
|
---|
499 | // it's safe to move 'int i = 0' here
|
---|
500 | for (int n = 0; n < 10; ++n) {
|
---|
501 | // it is possible but not safe to move 'int i = 0' here
|
---|
502 | do_something(&i);
|
---|
503 | }
|
---|
504 | }
|
---|
505 | }
|
---|
506 |
|
---|
507 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
508 | [tools\atlas\wxJS\gui\control\window.cpp:1145]: (Style) The scope of the variable y can be reduced
|
---|
509 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
510 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
511 | void f(int x)
|
---|
512 | {
|
---|
513 | int i = 0;
|
---|
514 | if (x) {
|
---|
515 | // it's safe to move 'int i = 0' here
|
---|
516 | for (int n = 0; n < 10; ++n) {
|
---|
517 | // it is possible but not safe to move 'int i = 0' here
|
---|
518 | do_something(&i);
|
---|
519 | }
|
---|
520 | }
|
---|
521 | }
|
---|
522 |
|
---|
523 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
524 | [tools\atlas\wxJS\gui\misc\bitmap.cpp:184]: (Style) The scope of the variable depth can be reduced
|
---|
525 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
526 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
527 | void f(int x)
|
---|
528 | {
|
---|
529 | int i = 0;
|
---|
530 | if (x) {
|
---|
531 | // it's safe to move 'int i = 0' here
|
---|
532 | for (int n = 0; n < 10; ++n) {
|
---|
533 | // it is possible but not safe to move 'int i = 0' here
|
---|
534 | do_something(&i);
|
---|
535 | }
|
---|
536 | }
|
---|
537 | }
|
---|
538 |
|
---|
539 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
540 | [tools\atlas\wxJS\gui\misc\flexgrid.cpp:94]: (Style) The scope of the variable rows can be reduced
|
---|
541 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
542 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
543 | void f(int x)
|
---|
544 | {
|
---|
545 | int i = 0;
|
---|
546 | if (x) {
|
---|
547 | // it's safe to move 'int i = 0' here
|
---|
548 | for (int n = 0; n < 10; ++n) {
|
---|
549 | // it is possible but not safe to move 'int i = 0' here
|
---|
550 | do_something(&i);
|
---|
551 | }
|
---|
552 | }
|
---|
553 | }
|
---|
554 |
|
---|
555 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
556 | [tools\atlas\wxJS\gui\misc\gridszr.cpp:157]: (Style) The scope of the variable rows can be reduced
|
---|
557 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
558 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
559 | void f(int x)
|
---|
560 | {
|
---|
561 | int i = 0;
|
---|
562 | if (x) {
|
---|
563 | // it's safe to move 'int i = 0' here
|
---|
564 | for (int n = 0; n < 10; ++n) {
|
---|
565 | // it is possible but not safe to move 'int i = 0' here
|
---|
566 | do_something(&i);
|
---|
567 | }
|
---|
568 | }
|
---|
569 | }
|
---|
570 |
|
---|
571 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
572 | [tools\atlas\wxJS\gui\misc\imagelst.cpp:312]: (Style) The scope of the variable index can be reduced
|
---|
573 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
574 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
575 | void f(int x)
|
---|
576 | {
|
---|
577 | int i = 0;
|
---|
578 | if (x) {
|
---|
579 | // it's safe to move 'int i = 0' here
|
---|
580 | for (int n = 0; n < 10; ++n) {
|
---|
581 | // it is possible but not safe to move 'int i = 0' here
|
---|
582 | do_something(&i);
|
---|
583 | }
|
---|
584 | }
|
---|
585 | }
|
---|
586 |
|
---|
587 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
588 | [tools\pmdexp\Vector4D.h:54]: (Style) Variable 'inv' is assigned a value that is never used
|
---|
589 | [tools\pmdexp\Vector4D.h:20]: (Style) Member variable not initialized in the constructor 'CVector4D::m_X'
|
---|
590 | [tools\pmdexp\Vector4D.h:20]: (Style) Member variable not initialized in the constructor 'CVector4D::m_Y'
|
---|
591 | [tools\pmdexp\Vector4D.h:20]: (Style) Member variable not initialized in the constructor 'CVector4D::m_Z'
|
---|
592 | [tools\pmdexp\Vector4D.h:20]: (Style) Member variable not initialized in the constructor 'CVector4D::m_W'
|
---|
593 | [tools\pmdexp\ExpMesh.cpp:315]: (Style) Variable 'negScale' is assigned a value that is never used
|
---|
594 | [tools\pmdexp\ExpMesh.cpp:216]: (Style) The scope of the variable boneWeight can be reduced
|
---|
595 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
596 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
597 | void f(int x)
|
---|
598 | {
|
---|
599 | int i = 0;
|
---|
600 | if (x) {
|
---|
601 | // it's safe to move 'int i = 0' here
|
---|
602 | for (int n = 0; n < 10; ++n) {
|
---|
603 | // it is possible but not safe to move 'int i = 0' here
|
---|
604 | do_something(&i);
|
---|
605 | }
|
---|
606 | }
|
---|
607 | }
|
---|
608 |
|
---|
609 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
610 | [tools\pmdexp\VertexTree.h:80]: (Error) Memory leak: VertexTree<UniqueVertexCmp>::_treeroot
|
---|
611 | [tools\pmdexp\Matrix3D.cpp:173] -> [tools\pmdexp\Matrix3D.h:55]: (Style) The function 'CMatrix3D::SetIdentity' can be const
|
---|
612 | [tools\pmdexp\Matrix3D.cpp:182] -> [tools\pmdexp\Matrix3D.h:57]: (Style) The function 'CMatrix3D::SetZero' can be const
|
---|
613 | [tools\pmdexp\Matrix3D.cpp:251] -> [tools\pmdexp\Matrix3D.h:81]: (Style) The function 'CMatrix3D::SetTranslation' can be const
|
---|
614 | [tools\pmdexp\Matrix3D.cpp:294] -> [tools\pmdexp\Matrix3D.h:89]: (Style) The function 'CMatrix3D::SetScaling' can be const
|
---|
615 | [tools\pmdexp\PSAExp.cpp:11]: (Style) Member variable not initialized in the constructor 'PSAExp::m_IP'
|
---|
616 | [tools\pmdexp\PMDExp.cpp:12]: (Style) Member variable not initialized in the constructor 'PMDExp::m_IP'
|
---|
617 | [tools\pmdexp\PSProp.cpp:267]: (Style) The class 'PointHelpObjCreateCallBack' has no constructor. Member variables not initialized.
|
---|
618 | [tools\pmdexp\Quaternion.cpp:141]: (Style) The scope of the variable omega can be reduced
|
---|
619 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
620 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
621 | void f(int x)
|
---|
622 | {
|
---|
623 | int i = 0;
|
---|
624 | if (x) {
|
---|
625 | // it's safe to move 'int i = 0' here
|
---|
626 | for (int n = 0; n < 10; ++n) {
|
---|
627 | // it is possible but not safe to move 'int i = 0' here
|
---|
628 | do_something(&i);
|
---|
629 | }
|
---|
630 | }
|
---|
631 | }
|
---|
632 |
|
---|
633 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
634 | [tools\pmdexp\Quaternion.cpp:141]: (Style) The scope of the variable sinom can be reduced
|
---|
635 | Warning: It can be unsafe to fix this message. Be careful. Especially when there are inner loops.
|
---|
636 | Here is an example where cppcheck will write that the scope for 'i' can be reduced:
|
---|
637 | void f(int x)
|
---|
638 | {
|
---|
639 | int i = 0;
|
---|
640 | if (x) {
|
---|
641 | // it's safe to move 'int i = 0' here
|
---|
642 | for (int n = 0; n < 10; ++n) {
|
---|
643 | // it is possible but not safe to move 'int i = 0' here
|
---|
644 | do_something(&i);
|
---|
645 | }
|
---|
646 | }
|
---|
647 | }
|
---|
648 |
|
---|
649 | When you see this message it is always safe to reduce the variable scope 1 level.
|
---|
650 | [tools\pmdexp\Quaternion.cpp:21] -> [tools\pmdexp\Quaternion.h:24]: (Style) The function 'CQuaternion::operator+' can be const
|
---|
651 | [tools\pmdexp\SkeletonAnimDef.cpp:12]: (Style) Member variable not initialized in the constructor 'CSkeletonAnimDef::m_Name'
|
---|
652 | [tools\rmgen\convert.cpp:162]: (Style) Unused variable: num
|
---|
653 | [tools\rmgen\convert.cpp:162]: (Style) Unused variable: maxFail
|
---|
654 | [tools\rmgen\map.cpp:160]: (Error) Memory leak: tiles
|
---|
655 | [tools\rmgen\Vector2D.h:48]: (Style) Variable 'inv' is assigned a value that is never used
|
---|
656 | [tools\rmgen\Vector2D.h:19]: (Style) Member variable not initialized in the constructor 'CVector2D_Maths::X'
|
---|
657 | [tools\rmgen\Vector2D.h:19]: (Style) Member variable not initialized in the constructor 'CVector2D_Maths::Y'
|
---|
658 | [tools\rmgen\object.cpp:6]: (Style) Member variable not initialized in the constructor 'Object::player'
|
---|
659 | [tools\rmgen\object.cpp:6]: (Style) Member variable not initialized in the constructor 'Object::x'
|
---|
660 | [tools\rmgen\object.cpp:6]: (Style) Member variable not initialized in the constructor 'Object::y'
|
---|
661 | [tools\rmgen\object.cpp:6]: (Style) Member variable not initialized in the constructor 'Object::orientation'
|
---|
662 | [tools\rmgen\output.cpp:171]: (Error) Memory leak: heightmap
|
---|
663 | [tools\rmgen\output.cpp:171]: (Error) Memory leak: tiles
|
---|
664 | [tools\rmgen\rmgen.cpp:104]: (Error) Resource leak: f
|
---|