There are 82 total results
4 errors, 12 warnings, 0 performance, 2 portability,
0 information, 64 style
MythTV

cppcheck Report


Columns are sortable
# Severity Description File
1 1 error  syntax error: 1 = mythtv/libs/libmythtv/eitcache.cpp:124
2 1 error  Rethrowing current exception with ' throw; ' , it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object mythtv/libs/libmythupnp/servicehost.cpp:34
3 1 error  Rethrowing current exception with ' throw; ' , it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object mythtv/libs/libmythupnp/servicehost.cpp:112
4 1 error  The one definition rule is violated, different classes/structs have the same name ' FileTransfer' mythtv/libs/libmythprotoserver/sockethandler/filetransfer.h:18
mythtv/programs/mythbackend/filetransfer.h:20
5 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
6 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
7 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
8 2 warning  Either the condition ' file' is redundant or there is possible null pointer dereference: file. mythtv/libs/libmythbase/http/mythhttpencoding.cpp:340
mythtv/libs/libmythbase/http/mythhttpencoding.cpp:353
9 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
10 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
11 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
12 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
13 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
14 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
15 2 warning  Class ' MythObservable' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). mythtv/libs/libmythbase/mythobservable.h:16
16 2 warning  Class ' MythObservable' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). mythtv/libs/libmythbase/mythobservable.h:16
17 4 portability  Casting between const unsigned char * and const float * which have an incompatible binary data representation. mythtv/libs/libmythbase/mythbinaryplist.cpp:95
18 4 portability  Casting between const unsigned char * and const double * which have an incompatible binary data representation. mythtv/libs/libmythbase/mythbinaryplist.cpp:95
19 6 style  Consider using std::find_if algorithm instead of a raw loop. mythtv/libs/libmythmetadata/metadatagrabber.cpp:182
20 6 style  Consider using std::find_if algorithm instead of a raw loop. mythtv/libs/libmythmetadata/metadatagrabber.cpp:208
21 6 style  Consider using std::find_if algorithm instead of a raw loop. mythtv/libs/libmythmetadata/metadatagrabber.cpp:219
22 6 style  Condition ' DLY==code' is always true mythtv/libs/libmythtv/captions/cc708decoder.cpp:407
mythtv/libs/libmythtv/captions/cc708decoder.cpp:393
mythtv/libs/libmythtv/captions/cc708decoder.cpp:405
23 6 style  Variable ' event.m_subtitle' is reassigned a value before the old one has been used. mythtv/libs/libmythtv/eitfixup.cpp:1054
mythtv/libs/libmythtv/eitfixup.cpp:1049
24 6 style  struct member ' lineSeg::m_yBottom' is never used. mythtv/libs/libmythtv/mheg/mhi.cpp:1706
25 6 style  struct member ' lineSeg::m_yTop' is never used. mythtv/libs/libmythtv/mheg/mhi.cpp:1706
26 6 style  struct member ' lineSeg::m_xBottom' is never used. mythtv/libs/libmythtv/mheg/mhi.cpp:1706
27 6 style  struct member ' lineSeg::m_slope' is never used. mythtv/libs/libmythtv/mheg/mhi.cpp:1706
28 6 style  struct member ' huffman_table::m_character' is never used. mythtv/libs/libmythtv/mpeg/atsc_huffman.cpp:11
29 6 style  struct member ' huffman_table::m_numberOfBits' is never used. mythtv/libs/libmythtv/mpeg/atsc_huffman.cpp:12
30 6 style  Consider using std::accumulate algorithm instead of a raw loop. mythtv/libs/libmythtv/mpeg/atsctables.cpp:135
31 6 style  Consider using std::accumulate algorithm instead of a raw loop. mythtv/libs/libmythtv/mpeg/atsctables.cpp:164
32 6 style  Consider using std::accumulate algorithm instead of a raw loop. mythtv/libs/libmythtv/mpeg/atsctables.cpp:272
33 6 style  Consider using std::accumulate algorithm instead of a raw loop. mythtv/libs/libmythtv/mpeg/atsctables.cpp:297
34 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
35 6 style  Consider using std::accumulate algorithm instead of a raw loop. mythtv/libs/libmythtv/mpeg/mpegtables.cpp:936
36 6 style  Consider using std::accumulate algorithm instead of a raw loop. mythtv/libs/libmythtv/mpeg/mpegtables.cpp:954
37 6 style  Consider using std::accumulate algorithm instead of a raw loop. mythtv/libs/libmythtv/mpeg/mpegtables.cpp:1186
38 6 style  Consider using std::accumulate algorithm instead of a raw loop. mythtv/libs/libmythtv/mpeg/mpegtables.cpp:1205
39 6 style  Virtual function ' HasCRC' is called from constructor ' PESPacket(const char*pesdata)' at line 39. Dynamic binding is not used. mythtv/libs/libmythtv/mpeg/pespacket.h:132
mythtv/libs/libmythtv/mpeg/pespacket.cpp:171
mythtv/libs/libmythtv/mpeg/pespacket.h:39
40 6 style  Virtual function ' HasCRC' is called from constructor ' PESPacket(const std::vector< uint8_t> & pesdata)' at line 46. Dynamic binding is not used. mythtv/libs/libmythtv/mpeg/pespacket.h:132
mythtv/libs/libmythtv/mpeg/pespacket.cpp:171
mythtv/libs/libmythtv/mpeg/pespacket.h:46
41 6 style  Condition ' !cudabuffer' is always false mythtv/libs/libmythtv/opengl/mythnvdecinterop.cpp:153
42 6 style  Condition ' !buffer' is always false mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:264
43 6 style  Condition ' !frames' is always false mythtv/libs/libmythtv/opengl/mythvdpauinterop.cpp:267
44 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2792
45 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2843
46 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2886
47 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3105
48 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3187
49 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3246
50 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2914
51 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:2962
52 6 style  Parameter ' planes' can be declared with const mythtv/libs/libmythtv/recorders/RTjpegN.cpp:3024
53 6 style  Variable ' m_dftL[k]' is reassigned a value before the old one has been used. mythtv/libs/libmythtv/visualisations/videovisualspectrum.cpp:61
mythtv/libs/libmythtv/visualisations/videovisualspectrum.cpp:60
54 6 style  Class ' MythNotification' has a constructor with 1 argument that is not explicit. mythtv/libs/libmythui/mythnotification.h:40
55 6 style  Variable ' crtcs' is not assigned a value. mythtv/libs/libmythui/platforms/mythdisplaymutter.cpp:215
56 6 style  Variable ' outputs' is not assigned a value. mythtv/libs/libmythui/platforms/mythdisplaymutter.cpp:216
57 6 style  Variable ' outputs' is not assigned a value. mythtv/libs/libmythui/platforms/mythdisplaymutter.cpp:432
58 6 style  Consider using std::find_if algorithm instead of a raw loop. mythtv/libs/libmythupnp/xsd.cpp:937
59 6 style  Condition ' i< (commercials-1)' is always true mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1963
mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1951
60 6 style  Condition ' histogramAnalyzer' is always true mythtv/programs/mythcommflag/CommDetector2.cpp:361
61 6 style  Condition ' dbChan.m_name!=(*i).m_name' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:315
mythtv/programs/mythfilldatabase/channeldata.cpp:303
62 6 style  Condition ' dbChan.m_chanNum!=(*i).m_chanNum' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:317
mythtv/programs/mythfilldatabase/channeldata.cpp:305
63 6 style  Condition ' dbChan.m_fineTune!=(*i).m_fineTune' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:318
mythtv/programs/mythfilldatabase/channeldata.cpp:306
64 6 style  Condition ' dbChan.m_freqId!=(*i).m_freqId' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:319
mythtv/programs/mythfilldatabase/channeldata.cpp:307
65 6 style  Condition ' dbChan.m_tvFormat!=(*i).m_tvFormat' is always false mythtv/programs/mythfilldatabase/channeldata.cpp:321
mythtv/programs/mythfilldatabase/channeldata.cpp:308
66 6 style  struct member ' info::m_inputid' is never used. mythtv/programs/mythfrontend/statusbox.cpp:751
67 6 style  struct member ' info::m_schedgroup' is never used. mythtv/programs/mythfrontend/statusbox.cpp:752
68 6 style  struct member ' info::m_errored' is never used. mythtv/programs/mythfrontend/statusbox.cpp:754
69 6 style  struct member ' info::m_unavailable' is never used. mythtv/programs/mythfrontend/statusbox.cpp:755
70 6 style  struct member ' info::m_sleeping' is never used. mythtv/programs/mythfrontend/statusbox.cpp:756
71 6 style  struct member ' info::m_recording' is never used. mythtv/programs/mythfrontend/statusbox.cpp:757
72 6 style  struct member ' info::m_livetv' is never used. mythtv/programs/mythfrontend/statusbox.cpp:758
73 6 style  struct member ' info::m_available' is never used. mythtv/programs/mythfrontend/statusbox.cpp:759
74 6 style  Condition ' !result' is always true mythtv/programs/mythfrontend/upnpscanner.cpp:1186
mythtv/programs/mythfrontend/upnpscanner.cpp:1177
mythtv/programs/mythfrontend/upnpscanner.cpp:1175
75 6 style  Condition ' diskcount> 1' is always false mythplugins/mythgame/mythgame/gamehandler.cpp:361
mythplugins/mythgame/mythgame/gamehandler.cpp:360
mythplugins/mythgame/mythgame/gamehandler.cpp:335
76 6 style  The scope of the variable ' diskcount' can be reduced. mythplugins/mythgame/mythgame/gamehandler.cpp:335
77 6 style  Consider using std::any_of algorithm instead of a raw loop. mythplugins/mythgame/mythgame/gamesettings.cpp:418
78 6 style  Variable ' strList' is assigned a value that is never used. mythplugins/mythmusic/mythmusic/editmetadata.cpp:1364
79 6 style  Condition ' node' is always true mythplugins/mythmusic/mythmusic/visualize.cpp:1199
80 6 style  Variable ' m_dftL[k]' is reassigned a value before the old one has been used. mythplugins/mythmusic/mythmusic/visualize.cpp:677
mythplugins/mythmusic/mythmusic/visualize.cpp:676
81 6 style  Consider using std::fill algorithm instead of a raw loop. mythplugins/mythmusic/mythmusic/visualize.cpp:1052
82 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.7.4
Updated 25 Nov 2022 18:42:39 GMT