Advertisement
Guest User

cppcheck for kenlm

a guest
Feb 10th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 34.81 KB | None | 0 0
  1. [jam-files/engine/builtins.c:1755]: (style) The scope of the variable 'buffer' can be reduced.
  2. [jam-files/engine/builtins.c:1845]: (style) The scope of the variable 'pDict' can be reduced.
  3. [jam-files/engine/builtins.c:1846]: (style) The scope of the variable 'pFunc' can be reduced.
  4. [jam-files/engine/builtins.c:1854]: (style) Variable 'outer_module' is assigned a value that is never used.
  5. [jam-files/engine/builtins.c:1944]: (style) Unused variable: p
  6. [jam-files/engine/builtins.c:2031]: (style) Unused variable: r
  7. [jam-files/engine/builtins.c:2072]: (style) Unused variable: m
  8. [jam-files/engine/builtins.c:900]: (style) The scope of the variable 'r' can be reduced.
  9. [jam-files/engine/builtins.c:904]: (style) The scope of the variable 'r_iter' can be reduced.
  10. [jam-files/engine/builtins.c:905]: (style) The scope of the variable 'r_end' can be reduced.
  11. [jam-files/engine/builtins.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 52 configurations. Use --force to check all configurations.
  12. [jam-files/engine/class.c:131]: (style) Variable 'outer_module' is assigned a value that is never used.
  13. [jam-files/engine/command.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  14. [jam-files/engine/compile.c:249]: (style) The scope of the variable 'indent' can be reduced.
  15. [jam-files/engine/compile.c:69]: (error) Buffer is accessed out of bounds.
  16. [jam-files/engine/compile.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  17. [jam-files/engine/cwd.c:41]: (style) The scope of the variable 'cwd_buffer' can be reduced.
  18. [jam-files/engine/cwd.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  19. [jam-files/engine/debug.c:128]: (warning) %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'.
  20. [jam-files/engine/debug.c:128]: (warning) %ld in format string (no. 5) requires 'long' but the argument type is 'unsigned long'.
  21. [jam-files/engine/debug.c:128]: (warning) %ld in format string (no. 6) requires 'long' but the argument type is 'unsigned long'.
  22. [jam-files/engine/debug.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 49 configurations. Use --force to check all configurations.
  23. [jam-files/engine/execcmd.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  24. [jam-files/engine/execnt.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  25. [jam-files/engine/execunix.c:143]: (style) Unused variable: len
  26. [jam-files/engine/execunix.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  27. [jam-files/engine/filent.c:328]: (style) struct member 'ar_hdr::ar_uid' is never used.
  28. [jam-files/engine/filent.c:329]: (style) struct member 'ar_hdr::ar_gid' is never used.
  29. [jam-files/engine/filent.c:330]: (style) struct member 'ar_hdr::ar_mode' is never used.
  30. [jam-files/engine/filent.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  31. [jam-files/engine/filesys.c:242]: (style) Clarify calculation precedence for '&' and '?'.
  32. [jam-files/engine/filesys.c:243]: (style) Clarify calculation precedence for '&' and '?'.
  33. [jam-files/engine/filesys.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  34. [jam-files/engine/fileunix.c:1]: (information) Skipping configuration 'AIAMAG' since the value of 'AIAMAG' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  35. [jam-files/engine/fileunix.c:1]: (information) Skipping configuration 'AIAMAG;AR_HSZ_BIG' since the value of 'AIAMAG' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  36. [jam-files/engine/fileunix.c:1]: (information) Skipping configuration 'ARFZMAG' since the value of 'ARFZMAG' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  37. [jam-files/engine/fileunix.c:262]: (style) The scope of the variable 'lar_offset' can be reduced.
  38. [jam-files/engine/fileunix.c:264]: (style) The scope of the variable 'src' can be reduced.
  39. [jam-files/engine/fileunix.c:265]: (style) The scope of the variable 'dest' can be reduced.
  40. [jam-files/engine/fileunix.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 54 configurations. Use --force to check all configurations.
  41. [jam-files/engine/frames.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 49 configurations. Use --force to check all configurations.
  42. [jam-files/engine/function.c:2993]: (style) The scope of the variable 'value' can be reduced.
  43. [jam-files/engine/function.c:3008]: (style) Variable 'value' is assigned a value that is never used.
  44. [jam-files/engine/function.c:3491]: (style) The scope of the variable 'code' can be reduced.
  45. [jam-files/engine/function.c:3566]: (style) The scope of the variable 'i' can be reduced.
  46. [jam-files/engine/function.c:3630]: (style) struct member 'align_var_edits::ch' is never used.
  47. [jam-files/engine/function.c:3636]: (style) struct member 'align_expansion_item::ch' is never used.
  48. [jam-files/engine/function.c:4790]: (style) The scope of the variable 'i' can be reduced.
  49. [jam-files/engine/function.c:488]: (style) Unused variable: trailing
  50. [jam-files/engine/function.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 52 configurations. Use --force to check all configurations.
  51. [jam-files/engine/glob.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 49 configurations. Use --force to check all configurations.
  52. [jam-files/engine/hash.c:368]: (warning) %lu in format string (no. 6) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'.
  53. [jam-files/engine/hash.c:368]: (warning) %lu in format string (no. 7) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'.
  54. [jam-files/engine/hash.c:374]: (warning, inconclusive) Division of result of sizeof() on pointer type.
  55. [jam-files/engine/hash.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  56. [jam-files/engine/hcache.c:146]: (error) Common realloc mistake: 'buf' nulled but not freed upon failure
  57. [jam-files/engine/hcache.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 53 configurations. Use --force to check all configurations.
  58. [jam-files/engine/hdrmacro.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  59. [jam-files/engine/headers.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 53 configurations. Use --force to check all configurations.
  60. [jam-files/engine/jam.c:220]: (style) Variable 'all' is assigned a value that is never used.
  61. [jam-files/engine/jam.c:225]: (style) The scope of the variable 'environ_module' can be reduced.
  62. [jam-files/engine/jam.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 58 configurations. Use --force to check all configurations.
  63. [jam-files/engine/jamgram.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 65 configurations. Use --force to check all configurations.
  64. [jam-files/engine/lists.c:104]: (error) Pointer to local array variable returned.
  65. [jam-files/engine/lists.c:114]: (style) Unused variable: i
  66. [jam-files/engine/lists.c:129]: (warning) Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
  67. [jam-files/engine/lists.c:135]: (error) Pointer to local array variable returned.
  68. [jam-files/engine/lists.c:201]: (style) Unused variable: ii
  69. [jam-files/engine/lists.c:35]: (error) Allocation with malloc, return doesnt release it.
  70. [jam-files/engine/lists.c:46]: (style) Variable 'bucket' is assigned a value that is never used.
  71. [jam-files/engine/lists.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  72. [jam-files/engine/make.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 54 configurations. Use --force to check all configurations.
  73. [jam-files/engine/make1.c:121]: (error) Allocation with malloc, return doesnt release it.
  74. [jam-files/engine/make1.c:197]: (style) The scope of the variable 'pState' can be reduced.
  75. [jam-files/engine/make1.c:426]: (style) Clarify calculation precedence for '&' and '?'.
  76. [jam-files/engine/make1.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 52 configurations. Use --force to check all configurations.
  77. [jam-files/engine/md5.c:143]: (style) Unused variable: xbuf
  78. [jam-files/engine/md5.c:144]: (style) Variable 'X' is not assigned a value.
  79. [jam-files/engine/md5.c:207]: (error) Uninitialized variable: X
  80. [jam-files/engine/md5.c:300]: (error) Uninitialized variable: X
  81. [jam-files/engine/mem.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  82. [jam-files/engine/mkjambase.c:36]: (style) The scope of the variable 'fin' can be reduced.
  83. [jam-files/engine/mkjambase.c:73]: (error) Resource leak: fout
  84. [jam-files/engine/modules.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  85. [jam-files/engine/modules/order.c:130]: (style) Variable 'end' is assigned a value that is never used.
  86. [jam-files/engine/modules/order.c:85]: (error) Memory leak: colors
  87. [jam-files/engine/modules/property-set.c:269]: (style) Variable 'result' is assigned a value that is never used.
  88. [jam-files/engine/modules/sequence.c:46]: (style) Variable 'elements_end' is assigned a value that is never used.
  89. [jam-files/engine/object.c:262]: (error) Memory leak: m
  90. [jam-files/engine/object.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  91. [jam-files/engine/option.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 49 configurations. Use --force to check all configurations.
  92. [jam-files/engine/output.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 49 configurations. Use --force to check all configurations.
  93. [jam-files/engine/parse.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  94. [jam-files/engine/pathnt.c:288]: (style) Variable 'entry' is assigned a value that is never used.
  95. [jam-files/engine/pathsys.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  96. [jam-files/engine/regexp.c:1177]: (style) The scope of the variable 'next' can be reduced.
  97. [jam-files/engine/regexp.c:1183]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'ptrdiff_t {aka signed int}'.
  98. [jam-files/engine/regexp.c:222]: (style) The scope of the variable 'len' can be reduced.
  99. [jam-files/engine/regexp.c:255]: (error) Memory leak: r
  100. [jam-files/engine/regexp.c:520]: (error) Uninitialized variable: classend
  101. [jam-files/engine/regexp.c:521]: (error) Uninitialized variable: classr
  102. [jam-files/engine/regexp.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 53 configurations. Use --force to check all configurations.
  103. [jam-files/engine/rules.c:109] -> [jam-files/engine/rules.c:112]: (style, inconclusive) Variable 'module' is reassigned a value before the old one has been used if variable is no semaphore variable.
  104. [jam-files/engine/rules.c:552]: (error) Buffer is accessed out of bounds.
  105. [jam-files/engine/rules.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  106. [jam-files/engine/scan.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 49 configurations. Use --force to check all configurations.
  107. [jam-files/engine/search.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 51 configurations. Use --force to check all configurations.
  108. [jam-files/engine/strings.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  109. [jam-files/engine/subst.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 49 configurations. Use --force to check all configurations.
  110. [jam-files/engine/timestamp.c:154]: (style) Unused variable: f1
  111. [jam-files/engine/timestamp.c:155]: (style) Unused variable: f2
  112. [jam-files/engine/timestamp.c:156]: (style) Unused variable: found
  113. [jam-files/engine/timestamp.c:157]: (style) Unused variable: b
  114. [jam-files/engine/timestamp.c:158]: (style) Variable 'buf' is assigned a value that is never used.
  115. [jam-files/engine/timestamp.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  116. [jam-files/engine/variable.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 53 configurations. Use --force to check all configurations.
  117. [jam-files/engine/w32_getreg.c]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 50 configurations. Use --force to check all configurations.
  118. [jam-files/engine/yyacc.c:166]: (error) Memory leak: key.string
  119. [jam-files/engine/yyacc.c:195]: (error) Resource leak: grammar_source_f
  120. [jam-files/engine/yyacc.c:59]: (style) The scope of the variable 'token_output_f' can be reduced.
  121. [jam-files/engine/yyacc.c:60]: (style) The scope of the variable 'grammar_output_f' can be reduced.
  122. [jamgram.y:142] -> [jamgram.y:142]: (style) Same expression on both sides of '-'.
  123. [jamgram.y:153] -> [jamgram.y:153]: (style) Same expression on both sides of '-'.
  124. [jamgram.y:155] -> [jamgram.y:155]: (style) Same expression on both sides of '-'.
  125. [jamgram.y:159] -> [jamgram.y:159]: (style) Same expression on both sides of '-'.
  126. [jamgram.y:171] -> [jamgram.y:171]: (style) Same expression on both sides of '-'.
  127. [jamgram.y:173] -> [jamgram.y:173]: (style) Same expression on both sides of '-'.
  128. [jamgram.y:308] -> [jamgram.y:308]: (style) Same expression on both sides of '-'.
  129. [jamgram.y:345] -> [jamgram.y:345]: (style) Same expression on both sides of '-'.
  130. [jamgram.y:370] -> [jamgram.y:370]: (style) Same expression on both sides of '-'.
  131. [lm/binary_format.cc:138]: (warning) Member variable 'BinaryFormat::vocab_pad_' is not initialized in the constructor.
  132. [lm/binary_format.cc:261]: (error) Using 'memset' on struct that contains a 'std::vector'.
  133. [lm/binary_format.cc:261]: (portability) Using memset() on struct which contains a floating point number.
  134. [lm/binary_format.cc:36]: (portability) Using memset() on struct which contains a floating point number.
  135. [lm/binary_format.cc:54]: (portability) Using memset() on struct which contains a floating point number.
  136. [lm/builder/adjust_counts_test.cc:40]: (performance, inconclusive) Technically the member function 'lm::builder::::WriteInput::Run' can be static.
  137. [lm/builder/header_info.hh:17]: (warning, inconclusive) Member variable 'HeaderInfo::token_count' is not initialized in the constructor.
  138. [lm/builder/initial_probabilities.cc:108]: (style, inconclusive) Technically the member function 'lm::builder::::OnlyGamma::Run' can be const.
  139. [lm/builder/interpolate.cc:130]: (performance, inconclusive) Technically the member function 'lm::builder::::Callback::Exit' can be static.
  140. [lm/builder/interpolate.cc:61]: (performance, inconclusive) Technically the member function 'lm::builder::::OutputProbBackoff::Gram' can be static.
  141. [lm/common/ngram_stream.hh:61]: (style) Class 'NGramStreams' has a constructor with 1 argument that is not explicit.
  142. [lm/common/special.hh:16]: (performance, inconclusive) Technically the member function 'lm::SpecialVocab::UNK' can be static.
  143. [lm/filter/arpa_io.cc:48]: (warning) Member variable 'ARPAOutput::fast_counter_' is not initialized in the constructor.
  144. [lm/filter/filter_main.cc:61]: (warning) Member variable 'Config::mode' is not initialized in the constructor.
  145. [lm/filter/format.hh:161]: (style, inconclusive) Technically the member function 'lm::InputBuffer::Empty' can be const.
  146. [lm/filter/format.hh:162]: (style, inconclusive) Technically the member function 'lm::InputBuffer::Size' can be const.
  147. [lm/filter/phrase.cc:244]: (warning, inconclusive) Member variable 'ConditionCommon::arcs_' is not initialized in the constructor.
  148. [lm/filter/phrase.cc:244]: (warning, inconclusive) Member variable 'ConditionCommon::hashes_' is not initialized in the constructor.
  149. [lm/filter/phrase.cc:244]: (warning, inconclusive) Member variable 'ConditionCommon::vertices_' is not initialized in the constructor.
  150. [lm/filter/phrase.cc:62]: (warning) Member variable 'Arc::current_' is not initialized in the constructor.
  151. [lm/filter/phrase.cc:62]: (warning) Member variable 'Arc::from_' is not initialized in the constructor.
  152. [lm/filter/phrase.cc:62]: (warning) Member variable 'Arc::last_' is not initialized in the constructor.
  153. [lm/filter/phrase.hh:111]: (style) Class 'ConditionCommon' has a constructor with 1 argument that is not explicit.
  154. [lm/filter/phrase.hh:160]: (performance, inconclusive) Technically the member function 'lm::phrase::Multiple::Flush' can be static.
  155. [lm/filter/phrase.hh:80]: (performance, inconclusive) Technically the member function 'lm::phrase::Substrings::AppendSentence' can be static.
  156. [lm/filter/thread.hh:15]: (warning) Member variable 'ThreadBatch::sequence_' is not initialized in the constructor.
  157. [lm/filter/thread.hh:32]: (style, inconclusive) Technically the member function 'lm::ThreadBatch::CallFilter' can be const.
  158. [lm/filter/vocab.hh:122]: (performance, inconclusive) Technically the member function 'lm::vocab::Multiple::Flush' can be static.
  159. [lm/filter/vocab.hh:83]: (style) Class 'Multiple' has a constructor with 1 argument that is not explicit.
  160. [lm/filter/wrapper.hh:28]: (performance, inconclusive) Technically the member function 'lm::BinaryFilter::Flush' can be static.
  161. [lm/filter/wrapper.hh:48]: (performance, inconclusive) Technically the member function 'lm::ContextFilter::Flush' can be static.
  162. [lm/interpolate/backoff_reunification_test.cc:47]: (performance, inconclusive) Technically the member function 'lm::interpolate::::WriteInput::Run' can be static.
  163. [lm/interpolate/backoff_reunification_test.cc:63]: (performance, inconclusive) Technically the member function 'lm::interpolate::::WriteBackoffs::Run' can be static.
  164. [lm/interpolate/backoff_reunification_test.cc:77]: (performance, inconclusive) Technically the member function 'lm::interpolate::::CheckOutput::Run' can be static.
  165. [lm/interpolate/enumerate_global_vocab.hh:31]: (warning, inconclusive) Member variable 'EnumerateGlobalVocab::cnt' is not initialized in the constructor.
  166. [lm/interpolate/enumerate_global_vocab.hh:31]: (warning, inconclusive) Member variable 'EnumerateGlobalVocab::cur_model' is not initialized in the constructor.
  167. [lm/interpolate/enumerate_global_vocab.hh:31]: (warning, inconclusive) Member variable 'EnumerateGlobalVocab::num_models' is not initialized in the constructor.
  168. [lm/interpolate/enumerate_global_vocab.hh:31]: (warning, inconclusive) Member variable 'EnumerateGlobalVocab::vmap' is not initialized in the constructor.
  169. [lm/interpolate/merge_vocab.cc:78]: (style, inconclusive) Technically the member function 'lm::interpolate::::CompareFiles::operator()' can be const.
  170. [lm/interpolate/merge_vocab.cc:85]: (style) Class 'Readers' has a constructor with 1 argument that is not explicit.
  171. [lm/interpolate/merge_vocab_test.cc:35]: (performance, inconclusive) Technically the member function 'lm::interpolate::::TestFiles::EndsWithAssign' can be static.
  172. [lm/interpolate/normalize.cc:24]: (performance) Function parameter 'first' should be passed by reference.
  173. [lm/interpolate/normalize.cc:24]: (performance) Function parameter 'second' should be passed by reference.
  174. [lm/interpolate/normalize.cc:84]: (warning) Member variable 'BackoffManager::order_' is not initialized in the constructor.
  175. [lm/interpolate/normalize_test.cc:20]: (performance, inconclusive) Technically the member function 'lm::interpolate::::WriteInput::Run' can be static.
  176. [lm/interpolate/split_worker.cc:27]: (portability) Casting between integer* and float* which have an incompatible binary data representation.
  177. [lm/interpolate/tune_instance.cc:193]: (performance, inconclusive) Technically the member function 'lm::interpolate::::JointOrderCallback::Enter' can be static.
  178. [lm/interpolate/tune_instance.cc:314]: (warning) Member variable 'ExtensionsFirstIteration::lazy_memory_' is not initialized in the constructor.
  179. [lm/interpolate/tune_instance.cc:347]: (style, inconclusive) Technically the member function 'lm::interpolate::ExtensionsFirstIteration::ApplyBackoffs::Run' can be const.
  180. [lm/trie_sort.cc:198] -> [lm/vocab.hh:213]: (style, inconclusive) Unhandled exception specification when calling function CheckSpecials().
  181. [lm/trie_sort.cc:66]: (style) Unused private function: 'PartialViewProxy::Inner'
  182. [lm/trie_sort.cc:67]: (style) Unused private function: 'PartialViewProxy::Inner'
  183. [lm/trie_sort.hh:51]: (warning) Member variable 'RecordReader::entry_size_' is not initialized in the constructor.
  184. [lm/trie_sort.hh:51]: (warning) Member variable 'RecordReader::file_' is not initialized in the constructor.
  185. [lm/virtual_interface.hh:51]: (warning, inconclusive) Member variable 'Vocabulary::begin_sentence_' is not initialized in the constructor.
  186. [lm/virtual_interface.hh:51]: (warning, inconclusive) Member variable 'Vocabulary::end_sentence_' is not initialized in the constructor.
  187. [lm/virtual_interface.hh:51]: (warning, inconclusive) Member variable 'Vocabulary::not_found_' is not initialized in the constructor.
  188. [lm/vocab.cc:100]: (warning) Member variable 'SortedVocabulary::bound_' is not initialized in the constructor.
  189. [lm/vocab.cc:100]: (warning) Member variable 'SortedVocabulary::saw_unk_' is not initialized in the constructor.
  190. [lm/vocab.cc:248]: (warning) Member variable 'ProbingVocabulary::bound_' is not initialized in the constructor.
  191. [lm/vocab.cc:248]: (warning) Member variable 'ProbingVocabulary::header_' is not initialized in the constructor.
  192. [lm/vocab.cc:248]: (warning) Member variable 'ProbingVocabulary::saw_unk_' is not initialized in the constructor.
  193. [lm/vocab.hh:188]: (performance, inconclusive) Technically the member function 'lm::ngram::ProbingVocabulary::UnkCountChangePadding' can be static.
  194. [lm/vocab.hh:234]: (style, inconclusive) Technically the member function 'lm::ngram::NoOpUniqueWords::operator()' can be const.
  195. [lm/vocab.hh:53]: (style) Class 'WriteWordsWrapper' has a constructor with 1 argument that is not explicit.
  196. [lm/wrappers/nplm.hh:26]: (style) Class 'Vocabulary' has a constructor with 1 argument that is not explicit.
  197. [python/kenlm.cpp]: (information) Too many #ifdef configurations - cppcheck only checks 12 of 23 configurations. Use --force to check all configurations.
  198. [util/ersatz_progress.cc:14]: (warning) Member variable 'ErsatzProgress::stones_written_' is not initialized in the constructor.
  199. [util/exception.cc:74]: (style) Variable 'buf' is assigned a value that is never used.
  200. [util/fake_ostream.hh:89]: (performance, inconclusive) Technically the member function 'util::FakeOStream::widen' can be static.
  201. [util/file.cc:393]: (style) The scope of the variable 'fd' can be reduced.
  202. [util/fixed_array.hh:47]: (warning) Assert statement calls a function which may have desired side effects: 'get'.
  203. [util/getopt.c:51]: (style) Variable 'errbuf' is assigned a value that is never used.
  204. [util/getopt.c:62]: (style) Variable 'errbuf' is assigned a value that is never used.
  205. [util/joint_sort.hh:100]: (style) Unused private function: 'JointProxy::Inner'
  206. [util/joint_sort.hh:63]: (performance, inconclusive) Technically the member function 'util::detail::JointProxy::value_type::GetKey' can be static.
  207. [util/joint_sort.hh:99]: (style) Unused private function: 'JointProxy::Inner'
  208. [util/mmap.cc:1]: (information) Skipping configuration 'MADV_HUGEPAGE' since the value of 'MADV_HUGEPAGE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  209. [util/mmap.cc:1]: (information) Skipping configuration 'MADV_HUGEPAGE;__linux__' since the value of 'MADV_HUGEPAGE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  210. [util/mmap.cc:1]: (information) Skipping configuration 'MAP_FILE' since the value of 'MAP_FILE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  211. [util/mmap.cc:1]: (information) Skipping configuration 'MAP_HUGE_SHIFT;__linux__' since the value of 'MAP_HUGE_SHIFT' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  212. [util/mmap.cc:1]: (information) Skipping configuration 'MAP_POPULATE' since the value of 'MAP_POPULATE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  213. [util/mmap.cc:246]: (style) Variable 'from_size' is assigned a value that is never used.
  214. [util/mmap.cc:365]: (warning) Member variable 'Rolling::ptr_' is not initialized in the constructor.
  215. [util/mmap.cc:66]: (style) Instance of 'scoped_mmap' object is destroyed immediately.
  216. [util/mmap.cc:69]: (style) Instance of 'scoped_mmap' object is destroyed immediately.
  217. [util/mmap.hh:152]: (warning, inconclusive) Member variable 'Rolling::block_' is not initialized in the constructor.
  218. [util/mmap.hh:152]: (warning, inconclusive) Member variable 'Rolling::current_begin_' is not initialized in the constructor.
  219. [util/mmap.hh:152]: (warning, inconclusive) Member variable 'Rolling::current_end_' is not initialized in the constructor.
  220. [util/mmap.hh:152]: (warning, inconclusive) Member variable 'Rolling::fd_' is not initialized in the constructor.
  221. [util/mmap.hh:152]: (warning, inconclusive) Member variable 'Rolling::file_begin_' is not initialized in the constructor.
  222. [util/mmap.hh:152]: (warning, inconclusive) Member variable 'Rolling::file_end_' is not initialized in the constructor.
  223. [util/mmap.hh:152]: (warning, inconclusive) Member variable 'Rolling::for_write_' is not initialized in the constructor.
  224. [util/mmap.hh:152]: (warning, inconclusive) Member variable 'Rolling::ptr_' is not initialized in the constructor.
  225. [util/mmap.hh:152]: (warning, inconclusive) Member variable 'Rolling::read_bound_' is not initialized in the constructor.
  226. [util/mmap.hh:154]: (warning) Member variable 'Rolling::block_' is not initialized in the constructor.
  227. [util/mmap.hh:154]: (warning) Member variable 'Rolling::file_begin_' is not initialized in the constructor.
  228. [util/mmap.hh:154]: (warning) Member variable 'Rolling::file_end_' is not initialized in the constructor.
  229. [util/mmap.hh:154]: (warning) Member variable 'Rolling::for_write_' is not initialized in the constructor.
  230. [util/mmap.hh:154]: (warning) Member variable 'Rolling::read_bound_' is not initialized in the constructor.
  231. [util/murmur_hash.cc:99]: (style) The scope of the variable 'k2' can be reduced.
  232. [util/pcqueue.hh:36]: (warning) Class Semaphore is not safe, destructor throws exception
  233. [util/probing_hash_table.hh:114]: (warning) Member variable 'ProbingHashTable::begin_' is not initialized in the constructor.
  234. [util/probing_hash_table.hh:114]: (warning) Member variable 'ProbingHashTable::buckets_' is not initialized in the constructor.
  235. [util/probing_hash_table.hh:114]: (warning) Member variable 'ProbingHashTable::end_' is not initialized in the constructor.
  236. [util/probing_hash_table.hh:171]: (performance, inconclusive) Technically the member function 'util::ProbingHashTable::FinishedInserting' can be static.
  237. [util/probing_hash_table.hh:406]: (performance, inconclusive) Technically the member function 'util::AutoProbing::KeyIsRawZero' can be static.
  238. [util/probing_hash_table.hh:41]: (performance, inconclusive) Technically the member function 'util::DivMod::Next' can be static.
  239. [util/probing_hash_table_benchmark_main.cc:25]: (warning) Member variable 'URandom::buf_' is not initialized in the constructor.
  240. [util/probing_hash_table_test.cc:61]: (warning, inconclusive) Member variable 'Entry64::key' is not initialized in the constructor.
  241. [util/proxy_iterator.hh:56]: (warning, inconclusive) Member variable 'ProxyIterator::p_' is not assigned a value in 'ProxyIterator::operator='.
  242. [util/proxy_iterator.hh:80]: (style, inconclusive) Technically the member function 'util::ProxyIterator::operator*' can be const.
  243. [util/read_compressed.cc:247]: (performance, inconclusive) Technically the member function 'util::::BZip::HandleError' can be static.
  244. [util/read_compressed.cc:305]: (performance, inconclusive) Technically the member function 'util::::XZip::HandleError' can be static.
  245. [util/read_compressed.cc:418]: (warning, inconclusive) Member variable 'ReadCompressed::raw_amount_' is not initialized in the constructor.
  246. [util/read_compressed.cc:97]: (warning) Assert statement calls a function which may have desired side effects: 'get'.
  247. [util/scoped.cc:1]: (information) Skipping configuration 'MADV_HUGEPAGE' since the value of 'MADV_HUGEPAGE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  248. [util/sized_iterator.hh:17]: (warning, inconclusive) Member variable 'SizedInnerIterator::ptr_' is not initialized in the constructor.
  249. [util/sized_iterator.hh:17]: (warning, inconclusive) Member variable 'SizedInnerIterator::size_' is not initialized in the constructor.
  250. [util/sized_iterator.hh:86]: (style) Unused private function: 'SizedProxy::Inner'
  251. [util/sized_iterator.hh:87]: (style) Unused private function: 'SizedProxy::Inner'
  252. [util/sorted_uniform_test.cc:56]: (error, inconclusive) Null pointer dereference: i
  253. [util/stream/chain.cc:23] -> [util/stream/chain.hh:85]: (performance, inconclusive) Technically the member function 'util::stream::Thread::UnhandledException' can be static.
  254. [util/stream/chain.cc:28] -> [util/stream/chain.hh:101]: (performance, inconclusive) Technically the member function 'util::stream::Recycler::Run' can be static.
  255. [util/stream/chain.hh:76]: (style, inconclusive) Technically the member function 'util::stream::Thread::operator()' can be const.
  256. [util/stream/chain.hh:85]: (style) Unused private function: 'Thread::UnhandledException'
  257. [util/stream/config.hh:15]: (warning, inconclusive) Member variable 'ChainConfig::block_count' is not initialized in the constructor.
  258. [util/stream/config.hh:15]: (warning, inconclusive) Member variable 'ChainConfig::entry_size' is not initialized in the constructor.
  259. [util/stream/config.hh:15]: (warning, inconclusive) Member variable 'ChainConfig::total_memory' is not initialized in the constructor.
  260. [util/stream/multi_progress.cc:26]: (warning) Member variable 'MultiProgress::display_' is not initialized in the constructor.
  261. [util/stream/multi_progress.hh:53]: (warning) Member variable 'WorkerProgress::character_' is not initialized in the constructor.
  262. [util/stream/multi_progress.hh:53]: (warning) Member variable 'WorkerProgress::current_' is not initialized in the constructor.
  263. [util/stream/multi_progress.hh:53]: (warning) Member variable 'WorkerProgress::next_' is not initialized in the constructor.
  264. [util/stream/multi_progress.hh:53]: (warning) Member variable 'WorkerProgress::stone_' is not initialized in the constructor.
  265. [util/stream/multi_stream.hh:105]: (style) Class 'GenericStreams' has a constructor with 1 argument that is not explicit.
  266. [util/stream/multi_stream.hh:109]: (performance, inconclusive) Technically the member function 'util::stream::GenericStreams::Init' can be static.
  267. [util/stream/multi_stream.hh:95]: (performance, inconclusive) Technically the member function 'util::stream::GenericStreams::Init' can be static.
  268. [util/stream/rewindable_stream.cc:9]: (warning) Member variable 'RewindableStream::block_count_' is not initialized in the constructor.
  269. [util/stream/rewindable_stream.cc:9]: (warning) Member variable 'RewindableStream::block_end_' is not initialized in the constructor.
  270. [util/stream/rewindable_stream.cc:9]: (warning) Member variable 'RewindableStream::block_size_' is not initialized in the constructor.
  271. [util/stream/rewindable_stream.cc:9]: (warning) Member variable 'RewindableStream::blocks_it_' is not initialized in the constructor.
  272. [util/stream/rewindable_stream.cc:9]: (warning) Member variable 'RewindableStream::entry_size_' is not initialized in the constructor.
  273. [util/stream/rewindable_stream.cc:9]: (warning) Member variable 'RewindableStream::hit_poison_' is not initialized in the constructor.
  274. [util/stream/rewindable_stream.cc:9]: (warning) Member variable 'RewindableStream::marked_' is not initialized in the constructor.
  275. [util/stream/sort.hh:157]: (warning, inconclusive) Member variable 'Entry::buffer_end_' is not initialized in the constructor.
  276. [util/stream/sort.hh:157]: (warning, inconclusive) Member variable 'Entry::current_' is not initialized in the constructor.
  277. [util/stream/sort.hh:157]: (warning, inconclusive) Member variable 'Entry::offset_' is not initialized in the constructor.
  278. [util/stream/sort.hh:157]: (warning, inconclusive) Member variable 'Entry::remaining_' is not initialized in the constructor.
  279. [util/stream/sort.hh:507]: (style, inconclusive) Technically the member function 'util::stream::Sort::DefaultLazy' can be const.
  280. [util/stream/sort_test.cc:21]: (style) Struct 'Putter' has a constructor with 1 argument that is not explicit.
  281. [util/stream/sort_test.cc:23]: (style, inconclusive) Technically the member function 'util::stream::::Putter::Run' can be const.
  282. [util/stream/stream.hh:16]: (warning) Member variable 'Stream::block_size_' is not initialized in the constructor.
  283. [util/stream/stream.hh:16]: (warning) Member variable 'Stream::entry_size_' is not initialized in the constructor.
  284. [util/string_piece.cc:30]: (style) Checking if unsigned variable 'length_' is less than zero.
  285. [util/string_piece.cc:48]: (style) Checking if unsigned variable 'length_' is less than zero.
  286. [util/string_piece.hh:108]: (style) Class 'StringPiece' has a constructor with 1 argument that is not explicit.
  287. [util/string_piece.hh:110]: (style) Class 'StringPiece' has a constructor with 1 argument that is not explicit.
  288. [util/tokenize_piece.hh:23]: (warning, inconclusive) Member variable 'SingleCharacter::delim_' is not initialized in the constructor.
  289. [util/tokenize_piece.hh:63]: (warning, inconclusive) Member variable 'BoolCharacter::delimiter_' is not initialized in the constructor.
  290. [util/usage.cc:1]: (information) Skipping configuration '_SC_PAGESIZE;_SC_PHYS_PAGES' since the value of '_SC_PAGESIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  291. [util/usage.cc:1]: (information) Skipping configuration 'HW_PHYSMEM' since the value of 'HW_PHYSMEM' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
  292. [y.tab.c:1298]: (warning) Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement