{"action":"created","issue":{"url":"https://api.github.com/repos/sisong/HDiffPatch/issues/26","repository_url":"https://api.github.com/repos/sisong/HDiffPatch","labels_url":"https://api.github.com/repos/sisong/HDiffPatch/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/sisong/HDiffPatch/issues/26/comments","events_url":"https://api.github.com/repos/sisong/HDiffPatch/issues/26/events","html_url":"https://github.com/sisong/HDiffPatch/issues/26","id":202365591,"number":26,"title":"cppcheck warnings","user":{"login":"JayXon","id":1552641,"avatar_url":"https://avatars.githubusercontent.com/u/1552641?v=3","gravatar_id":"","url":"https://api.github.com/users/JayXon","html_url":"https://github.com/JayXon","followers_url":"https://api.github.com/users/JayXon/followers","following_url":"https://api.github.com/users/JayXon/following{/other_user}","gists_url":"https://api.github.com/users/JayXon/gists{/gist_id}","starred_url":"https://api.github.com/users/JayXon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayXon/subscriptions","organizations_url":"https://api.github.com/users/JayXon/orgs","repos_url":"https://api.github.com/users/JayXon/repos","events_url":"https://api.github.com/users/JayXon/events{/privacy}","received_events_url":"https://api.github.com/users/JayXon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-22T07:03:24Z","updated_at":"2017-01-22T14:26:47Z","closed_at":null,"body":"Skipping configuration 的那些可以忽略，其他的还有点用\r\n```\r\ncppcheck --quiet --force --enable=all .\r\n```\r\n```\r\n[builds\\HDiffPatch\\libHDiffPatch\\HDiff\\private_diff\\suffix_string.h:73]: (style) Condition 'sizeof(long)>=sizeof(int32_t)' is always true\r\n[builds\\_private_searchBestParams.cpp:113]: (style) The scope of the variable 'have' can be reduced.\r\n[builds\\_private_searchBestParams.cpp:258]: (style) The scope of the variable 'bestZipDiffR' can be reduced.\r\n[builds\\_private_searchBestParams.cpp:299]: (style) Variable 'bestZipDiffR' is assigned a value that is never used.\r\n[builds\\HDiffPatch\\libHDiffPatch\\HDiff\\private_diff\\suffix_string.h:73]: (style) Condition 'sizeof(long)>=sizeof(int)' is always true\r\n[libHDiffPatch\\HDiff\\private_diff\\suffix_string.h:73]: (style) Condition 'sizeof(long)>=sizeof(int32_t)' is always true\r\n[libHDiffPatch\\HDiff\\private_diff\\suffix_string.h:73]: (style) Condition 'sizeof(long)>=sizeof(int)' is always true\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:41]: (style) The scope of the variable 'ISAb' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:41]: (style) The scope of the variable 'buf' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:46]: (style) The scope of the variable 'k' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:46]: (style) The scope of the variable 'bufsize' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:200]: (style) The scope of the variable 'c1' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:264]: (style) The scope of the variable 'c1' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:364]: (style) The scope of the variable 'm' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:364]: (style) The scope of the variable 'i' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\trsort.c.inc.h:101]: (style) The scope of the variable 'd' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\trsort.c.inc.h:101]: (style) The scope of the variable 'e' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\trsort.c.inc.h:225]: (style) The scope of the variable 'e' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\trsort.c.inc.h:225]: (style) The scope of the variable 'f' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\trsort.c.inc.h:226]: (style) The scope of the variable 's' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\trsort.c.inc.h:557]: (style) The scope of the variable 'first' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\trsort.c.inc.h:559]: (style) The scope of the variable 'skip' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\trsort.c.inc.h:559]: (style) The scope of the variable 'unsorted' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:196]: (style) The scope of the variable 'd' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:196]: (style) The scope of the variable 'e' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:294]: (style) The scope of the variable 't' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:550]: (style) The scope of the variable 'r' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:601]: (style) The scope of the variable 'r' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:753]: (style) The scope of the variable 'curbuf' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:754]: (style) The scope of the variable 'curbufsize' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:54]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:55]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:65]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:69]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:81]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:84]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:85]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:86]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:87]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:88]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:97]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:100]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:134]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:135]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:136]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:172]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:173]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:175]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:176]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:177]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:180]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:184]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:185]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:205]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:207]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:219]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:220]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:269]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:271]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:283]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:284]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:343]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:344]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:371]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:372]: (information) Skipping configuration 'ALPHABET_SIZE' since the value of 'ALPHABET_SIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:111]: (information) Skipping configuration 'SS_BLOCKSIZE' since the value of 'SS_BLOCKSIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:763]: (information) Skipping configuration 'SS_BLOCKSIZE' since the value of 'SS_BLOCKSIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:766]: (information) Skipping configuration 'SS_BLOCKSIZE' since the value of 'SS_BLOCKSIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:771]: (information) Skipping configuration 'SS_BLOCKSIZE' since the value of 'SS_BLOCKSIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:777]: (information) Skipping configuration 'SS_BLOCKSIZE' since the value of 'SS_BLOCKSIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:778]: (information) Skipping configuration 'SS_BLOCKSIZE' since the value of 'SS_BLOCKSIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:780]: (information) Skipping configuration 'SS_BLOCKSIZE' since the value of 'SS_BLOCKSIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:789]: (information) Skipping configuration 'SS_BLOCKSIZE' since the value of 'SS_BLOCKSIZE' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\sssort.c.inc.h:324]: (information) Skipping configuration 'SS_INSERTIONSORT_THRESHOLD' since the value of 'SS_INSERTIONSORT_THRESHOLD' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:43]: (style) The scope of the variable 'curbuf' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:44]: (style) The scope of the variable 'l' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:49]: (style) The scope of the variable 'd0' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:49]: (style) The scope of the variable 'd1' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\libdivsufsort\\divsufsort.c.inc.h:50]: (style) The scope of the variable 'tmp' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\sais.hxx:112]: (style) The scope of the variable 'diff' can be reduced.\r\n[libHDiffPatch\\HDiff\\private_diff\\suffix_string.cpp:107]: (style) Variable 'rt' is assigned a value that is never used.\r\n[libHDiffPatch\\HPatch\\patch.c:170]: (style) Variable 'newPosBack' is assigned a value that is never used.\r\n[libHDiffPatch\\HPatch\\patch.c:685]: (style) Variable 'newPosBack' is assigned a value that is never used.\r\n[patch_demo.cpp:82]: (style) Condition 'sizeof(long)<=4' is always false\r\n[patch_demo.cpp:201]: (style) C-style pointer casting\r\n[patch_demo.cpp:187]: (style) Struct 'TFileStreamInput' has a constructor with 1 argument that is not explicit.\r\n[builds\\_private_searchBestParams.cpp:109]: (style) The function 'zip_decompress' is never used.\r\n(information) Cppcheck cannot find all the include files (use --check-config for details)\r\n```"},"comment":{"url":"https://api.github.com/repos/sisong/HDiffPatch/issues/comments/274334002","html_url":"https://github.com/sisong/HDiffPatch/issues/26#issuecomment-274334002","issue_url":"https://api.github.com/repos/sisong/HDiffPatch/issues/26","id":274334002,"user":{"login":"sisong","id":2347214,"avatar_url":"https://avatars.githubusercontent.com/u/2347214?v=3","gravatar_id":"","url":"https://api.github.com/users/sisong","html_url":"https://github.com/sisong","followers_url":"https://api.github.com/users/sisong/followers","following_url":"https://api.github.com/users/sisong/following{/other_user}","gists_url":"https://api.github.com/users/sisong/gists{/gist_id}","starred_url":"https://api.github.com/users/sisong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sisong/subscriptions","organizations_url":"https://api.github.com/users/sisong/orgs","repos_url":"https://api.github.com/users/sisong/repos","events_url":"https://api.github.com/users/sisong/events{/privacy}","received_events_url":"https://api.github.com/users/sisong/received_events","type":"User","site_admin":false},"created_at":"2017-01-22T14:26:47Z","updated_at":"2017-01-22T14:26:47Z","body":"这几个意见都不错，可能要春节完后才能处理了；过年不在家；"}}
{"actor":{"display_login":"sisong"}}