There are 45 total results
2 errors, 0 warnings, 0 performance, 0 portability,
1 information, 42 style
MythTV

cppcheck Report


Columns are sortable
# Severity Description File
1 1 error  Deallocation of an auto-variable results in undefined behaviour. mythtv/programs/mythcommflag/HistogramAnalyzer.cpp:176
2 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
3 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
4 6 style  Variable ' flag' is not assigned a value. mythtv/libs/libmyth/audio/audiooutputsettings.cpp:446
5 6 style  Variable ' value' is not assigned a value. mythtv/libs/libmythtv/drm/mythvideodrmutils.cpp:25
6 6 style  Variable ' value' is not assigned a value. mythtv/libs/libmythtv/drm/mythvideodrmutils.cpp:61
7 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
8 6 style  Condition ' context-> bit_rate> 1000000' is always false mythtv/libs/libmythtv/io/mythavformatwriter.cpp:454
mythtv/libs/libmythtv/io/mythavformatwriter.cpp:447
9 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
10 6 style  Virtual function ' HasCRC' is called from constructor ' PESPacket(const char*pesdata)' at line 38. Dynamic binding is not used. mythtv/libs/libmythtv/mpeg/pespacket.h:131
mythtv/libs/libmythtv/mpeg/pespacket.cpp:172
mythtv/libs/libmythtv/mpeg/pespacket.h:38
11 6 style  Virtual function ' HasCRC' is called from constructor ' PESPacket(const std::vector< uint8_t> & pesdata)' at line 45. Dynamic binding is not used. mythtv/libs/libmythtv/mpeg/pespacket.h:131
mythtv/libs/libmythtv/mpeg/pespacket.cpp:172
mythtv/libs/libmythtv/mpeg/pespacket.h:45
12 6 style  Consider using std::find_if algorithm instead of a raw loop. mythtv/libs/libmythtv/opengl/mythdrmprimeinterop.cpp:71
13 6 style  Condition ' !cudabuffer' is always false mythtv/libs/libmythtv/opengl/mythnvdecinterop.cpp:152
mythtv/libs/libmythtv/opengl/mythnvdecinterop.cpp:151
mythtv/libs/libmythtv/opengl/mythnvdecinterop.cpp:146
14 6 style  Consider using std::any_of algorithm instead of a raw loop. mythtv/libs/libmythtv/opengl/mythnvdecinterop.cpp:88
15 6 style  Condition ' !buffer' is always false mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:263
mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:262
mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:259
16 6 style  Condition ' !frames' is always false mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:266
mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:265
mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:263
17 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2955
18 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2836
19 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3180
20 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3017
21 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3098
22 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2785
23 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2879
24 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2907
25 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3239
26 6 style  Variable ' arttype' is not assigned a value. mythtv/libs/libmythtv/videometadatautil.cpp:32
27 6 style  Consider using std::copy_if algorithm instead of a raw loop. mythtv/libs/libmythui/platforms/drm/mythdrmplane.cpp:109
28 6 style  Consider using std::find_if algorithm instead of a raw loop. mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp:374
29 6 style  Obsolescent function ' usleep' called. It is recommended to use ' nanosleep' or ' setitimer' instead. mythtv/programs/mythbackend/recordingextender.cpp:1643
30 6 style  Class ' RecExtEspnDataSource' has a constructor with 1 argument that is not explicit. mythtv/programs/mythbackend/recordingextender.h:283
31 6 style  Class ' RecExtMlbDataSource' has a constructor with 1 argument that is not explicit. mythtv/programs/mythbackend/recordingextender.h:295
32 6 style  Parameter ' info' can be declared with const mythtv/programs/mythbackend/recordingextender.h:72
33 6 style  Condition ' thisScore> 0' is always true mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1760
mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1674
34 6 style  Parameter ' pcol' can be declared with const mythtv/programs/mythcommflag/TemplateFinder.cpp:623
35 6 style  Parameter ' prow' can be declared with const mythtv/programs/mythcommflag/TemplateFinder.cpp:623
36 6 style  Condition ' dbChan.m_name!=(*i).m_name' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:319
mythtv/programs/mythfilldatabase/channeldata.cpp:307
37 6 style  Condition ' dbChan.m_chanNum!=(*i).m_chanNum' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:321
mythtv/programs/mythfilldatabase/channeldata.cpp:309
38 6 style  Condition ' dbChan.m_fineTune!=(*i).m_fineTune' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:322
mythtv/programs/mythfilldatabase/channeldata.cpp:310
39 6 style  Condition ' dbChan.m_freqId!=(*i).m_freqId' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:323
mythtv/programs/mythfilldatabase/channeldata.cpp:311
40 6 style  Condition ' dbChan.m_tvFormat!=(*i).m_tvFormat' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:325
mythtv/programs/mythfilldatabase/channeldata.cpp:312
41 6 style  Condition ' !result' is always true mythtv/programs/mythfrontend/upnpscanner.cpp:1182
mythtv/programs/mythfrontend/upnpscanner.cpp:1173
mythtv/programs/mythfrontend/upnpscanner.cpp:1171
42 6 style  Condition ' diskcount> 1' is always false mythplugins/mythgame/mythgame/gamehandler.cpp:357
mythplugins/mythgame/mythgame/gamehandler.cpp:356
mythplugins/mythgame/mythgame/gamehandler.cpp:331
43 6 style  The scope of the variable ' diskcount' can be reduced. mythplugins/mythgame/mythgame/gamehandler.cpp:331
44 6 style  Consider using std::any_of algorithm instead of a raw loop. mythplugins/mythgame/mythgame/gamesettings.cpp:412
45 6 style  Virtual function ' LoadData' is called from constructor ' NetTree(DialogType type,MythScreenStack*parent,const char*name=nullptr)' at line 51. Dynamic binding is not used. mythplugins/mythnetvision/mythnetvision/nettree.h:106
mythplugins/mythnetvision/mythnetvision/nettree.cpp:889
mythplugins/mythnetvision/mythnetvision/nettree.cpp:876
mythplugins/mythnetvision/mythnetvision/nettree.cpp:51

cppcheck version - 2.6
Updated 6 Dec 2021 00:04:19 GMT