There are 47 total results
5 errors, 5 warnings, 0 performance, 1 portability,
1 information, 35 style
MythTV

cppcheck Report


Columns are sortable
# Severity Description File
1 1 error  Memory is allocated but not initialized: c_start mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1899
2 1 error  Memory is allocated but not initialized: c_end mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1900
3 1 error  Deallocation of an auto-variable results in undefined behaviour. mythtv/programs/mythcommflag/HistogramAnalyzer.cpp:176
4 1 error  The one definition rule is violated, different classes/structs have the same name ' FileTransfer' mythtv/libs/libmythprotoserver/sockethandler/filetransfer.h:19
mythtv/programs/mythbackend/filetransfer.h:20
5 1 error  The one definition rule is violated, different classes/structs have the same name ' MediaServer' mythtv/programs/mythbackend/mediaserver.h:32
mythtv/programs/mythfrontend/upnpscanner.cpp:83
6 2 warning  Either the condition ' it==m_blocks.end()' is redundant or there is possible dereference of an invalid iterator: it. mythtv/libs/libmythtv/DVD/mythdvdstream.cpp:189
mythtv/libs/libmythtv/DVD/mythdvdstream.cpp:202
7 2 warning  Char literal compared with pointer ' m_crid[n][2+positionOfHash]' . Did you intend to dereference it? mythtv/libs/libmythtv/mpeg/dvbdescriptors.h:2901
8 2 warning  Member variable ' HistogramAnalyzer::m_histogram' is not initialized in the constructor. mythtv/programs/mythcommflag/HistogramAnalyzer.cpp:140
9 2 warning  Either the condition ' tmpItem' is redundant or there is possible null pointer dereference: tmpItem. mythtv/programs/mythfrontend/playbackbox.cpp:3565
mythtv/programs/mythfrontend/playbackbox.cpp:3568
10 2 warning  Either the condition ' tmpItem' is redundant or there is possible null pointer dereference: tmpItem. mythtv/programs/mythfrontend/playbackbox.cpp:3566
mythtv/programs/mythfrontend/playbackbox.cpp:3568
11 4 portability  Returning an integer in a function with pointer return type is not portable. mythtv/libs/libmythtv/mpeg/splicedescriptors.h:240
12 5 information  The code ' class MTV_PUBLIC PID {' is not handled. You can use -I or --include to add handling of this code. mythtv/libs/libmythtv/mpeg/mpegtables.h:206
13 6 style  Variable ' flag' is not assigned a value. mythtv/libs/libmyth/audio/audiooutputsettings.cpp:446
14 6 style  Condition ' recstatus!=RecStatus::DontRecord' is always true mythtv/libs/libmythservicecontracts/enums/recStatus.cpp:29
mythtv/libs/libmythservicecontracts/enums/recStatus.cpp:28
15 6 style  Parameter ' State' can be declared with const mythtv/libs/libmythtv/DVD/mythdvdbuffer.cpp:1925
16 6 style  Condition ' linecont' is always false mythtv/libs/libmythtv/captions/cc608reader.cpp:198
mythtv/libs/libmythtv/captions/cc608reader.cpp:264
17 6 style  Condition ' linecont' is always false mythtv/libs/libmythtv/captions/cc608reader.cpp:237
mythtv/libs/libmythtv/captions/cc608reader.cpp:264
18 6 style  Condition ' linecont' is always false mythtv/libs/libmythtv/captions/cc608reader.cpp:239
mythtv/libs/libmythtv/captions/cc608reader.cpp:264
19 6 style  Parameter ' satname' can be declared with const mythtv/libs/libmythtv/channelscan/channelscanmiscsettings.h:259
20 6 style  Parameter ' satname' can be declared with const mythtv/libs/libmythtv/channelscan/channelscanmiscsettings.h:260
21 6 style  Parameter ' satname' can be declared with const mythtv/libs/libmythtv/channelscan/channelscanmiscsettings.h:261
22 6 style  Parameter ' satname' can be declared with const mythtv/libs/libmythtv/channelscan/channelscanmiscsettings.h:262
23 6 style  Parameter ' satname' can be declared with const mythtv/libs/libmythtv/channelscan/channelscanmiscsettings.h:263
24 6 style  Parameter ' satname' can be declared with const mythtv/libs/libmythtv/channelscan/channelscanmiscsettings.h:264
25 6 style  Variable ' value' is not assigned a value. mythtv/libs/libmythtv/drm/mythvideodrmutils.cpp:25
26 6 style  Variable ' value' is not assigned a value. mythtv/libs/libmythtv/drm/mythvideodrmutils.cpp:61
27 6 style  Condition ' rawRating> =0x01' is always true mythtv/libs/libmythtv/mpeg/dvbdescriptors.h:1867
mythtv/libs/libmythtv/mpeg/dvbdescriptors.h:1862
28 6 style  Variable ' event.m_subtitle' is reassigned a value before the old one has been used. mythtv/libs/libmythtv/eitfixup.cpp:1058
mythtv/libs/libmythtv/eitfixup.cpp:1053
29 6 style  Same expression used in consecutive assignments of ' tid' and ' bid' . mythtv/libs/libmythtv/mpeg/dvbstreamdata.cpp:941
mythtv/libs/libmythtv/mpeg/dvbstreamdata.cpp:942
30 6 style  Condition ' ((i+1)%8)==0' is always false mythtv/libs/libmythtv/mpeg/mpegdescriptors.cpp:743
31 6 style  Condition ' ((i+1)%16)==0' is always false mythtv/libs/libmythtv/mpeg/mpegdescriptors.cpp:745
32 6 style  Condition ' !video' is always true mythtv/libs/libmythtv/mythvideooutgpu.cpp:139
mythtv/libs/libmythtv/mythvideooutgpu.cpp:132
33 6 style  Consider using std::find_if algorithm instead of a raw loop. mythtv/libs/libmythtv/opengl/mythdrmprimeinterop.cpp:71
34 6 style  Consider using std::any_of algorithm instead of a raw loop. mythtv/libs/libmythtv/opengl/mythnvdecinterop.cpp:88
35 6 style  Parameter ' element' can be declared with const mythtv/libs/libmythtv/recorders/vboxutils.cpp:403
36 6 style  Variable ' arttype' is not assigned a value. mythtv/libs/libmythtv/videometadatautil.cpp:32
37 6 style  Consider using std::copy_if algorithm instead of a raw loop. mythtv/libs/libmythui/platforms/drm/mythdrmplane.cpp:109
38 6 style  Condition ' !s_checked' is always true mythtv/libs/libmythui/platforms/mythdisplaymutter.cpp:196
mythtv/libs/libmythui/platforms/mythdisplaymutter.cpp:193
39 6 style  Consider using std::find_if algorithm instead of a raw loop. mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp:374
40 6 style  Condition ' thisScore> 0' is always true mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1760
mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1674
41 6 style  Parameter ' reply' can be declared with const mythtv/programs/mythfrontend/networkcontrol.cpp:1541
42 6 style  Condition ' icon_file.isEmpty()' is always true mythtv/programs/mythfrontend/videodlg.cpp:1548
mythtv/programs/mythfrontend/videodlg.cpp:1481
43 6 style  Condition ' !closeDialog' is always true mythtv/programs/mythtv-setup/importicons.cpp:404
mythtv/programs/mythtv-setup/importicons.cpp:283
44 6 style  Condition ' closeDialog' is always false mythtv/programs/mythtv-setup/importicons.cpp:440
mythtv/programs/mythtv-setup/importicons.cpp:283
45 6 style  Condition ' diskcount> 1' is always false mythplugins/mythgame/mythgame/gamehandler.cpp:358
mythplugins/mythgame/mythgame/gamehandler.cpp:357
mythplugins/mythgame/mythgame/gamehandler.cpp:332
46 6 style  The scope of the variable ' diskcount' can be reduced. mythplugins/mythgame/mythgame/gamehandler.cpp:332
47 6 style  Variable ' pos' is assigned a value that is never used. mythplugins/mythgame/mythgame/gamehandler.cpp:301

cppcheck version - 2.5
Updated 27 Sep 2021 19:46:52 GMT