There are 47 total results
2 errors, 10 warnings, 1 performance, 2 portability,
1 information, 31 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 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpcache.cpp:59
mythtv/libs/libmythbase/http/mythhttpcache.cpp:83
4 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpcache.cpp:71
mythtv/libs/libmythbase/http/mythhttpcache.cpp:83
5 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpcache.cpp:82
mythtv/libs/libmythbase/http/mythhttpcache.cpp:83
6 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpencoding.cpp:321
mythtv/libs/libmythbase/http/mythhttpencoding.cpp:334
7 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpranges.cpp:43
mythtv/libs/libmythbase/http/mythhttpranges.cpp:68
8 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpranges.cpp:47
mythtv/libs/libmythbase/http/mythhttpranges.cpp:68
9 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpranges.cpp:97
mythtv/libs/libmythbase/http/mythhttpranges.cpp:120
10 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpranges.cpp:98
mythtv/libs/libmythbase/http/mythhttpranges.cpp:120
11 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpranges.cpp:99
mythtv/libs/libmythbase/http/mythhttpranges.cpp:120
12 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpranges.cpp:100
mythtv/libs/libmythbase/http/mythhttpranges.cpp:120
13 3 performance  Variable ' m_playingRecStart' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythtv/playercontext.cpp:30
14 4 portability  Casting between const unsigned char * and const float * which have an incompatible binary data representation. mythtv/libs/libmythbase/mythbinaryplist.cpp:88
15 4 portability  Casting between const unsigned char * and const double * which have an incompatible binary data representation. mythtv/libs/libmythbase/mythbinaryplist.cpp:88
16 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
17 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
18 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
19 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
20 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
21 6 style  Condition ' !cudabuffer' is always false mythtv/libs/libmythtv/opengl/mythnvdecinterop.cpp:153
mythtv/libs/libmythtv/opengl/mythnvdecinterop.cpp:152
mythtv/libs/libmythtv/opengl/mythnvdecinterop.cpp:147
22 6 style  Condition ' !buffer' is always false mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:264
mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:263
mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:260
23 6 style  Condition ' !frames' is always false mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:267
mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:266
mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:264
24 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3252
25 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2968
26 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3193
27 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2798
28 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2849
29 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3030
30 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3111
31 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2920
32 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2892
33 6 style  Consider using std::copy_if algorithm instead of a raw loop. mythtv/libs/libmythui/platforms/drm/mythdrmplane.cpp:109
34 6 style  Obsolescent function ' usleep' called. It is recommended to use ' nanosleep' or ' setitimer' instead. mythtv/programs/mythbackend/recordingextender.cpp:1654
35 6 style  Condition ' thisScore> 0' is always true mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1760
mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1674
36 6 style  Parameter ' prow' can be declared with const mythtv/programs/mythcommflag/TemplateFinder.cpp:623
37 6 style  Parameter ' pcol' can be declared with const mythtv/programs/mythcommflag/TemplateFinder.cpp:623
38 6 style  Condition ' dbChan.m_name!=(*i).m_name' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:319
mythtv/programs/mythfilldatabase/channeldata.cpp:307
39 6 style  Condition ' dbChan.m_chanNum!=(*i).m_chanNum' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:321
mythtv/programs/mythfilldatabase/channeldata.cpp:309
40 6 style  Condition ' dbChan.m_fineTune!=(*i).m_fineTune' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:322
mythtv/programs/mythfilldatabase/channeldata.cpp:310
41 6 style  Condition ' dbChan.m_freqId!=(*i).m_freqId' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:323
mythtv/programs/mythfilldatabase/channeldata.cpp:311
42 6 style  Condition ' dbChan.m_tvFormat!=(*i).m_tvFormat' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:325
mythtv/programs/mythfilldatabase/channeldata.cpp:312
43 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
44 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
45 6 style  The scope of the variable ' diskcount' can be reduced. mythplugins/mythgame/mythgame/gamehandler.cpp:331
46 6 style  Consider using std::any_of algorithm instead of a raw loop. mythplugins/mythgame/mythgame/gamesettings.cpp:414
47 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 22 Jan 2022 16:32:11 GMT