2024-03-26 21:54 ftp://ftp.de.debian.org/debian/pool/main/e/edid-decode/edid-decode_0.1~git20220315.cb74358c2896.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.55 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 61552d0 (2024-03-26 14:25:53 +0100) count: 157 143 elapsed-time: 2.4 3.9 head-timing-info: old-timing-info: head results: edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:35:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:100:3: performance: Variable 't' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:101:3: performance: Variable 'type' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:102:3: performance: Variable 'flags' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:53:44: style:inconclusive: Function 'calc_ovt_mode' argument 1 names different: declaration 'hact' definition 'Hactive'. [funcArgNamesDifferent] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:355:33: note: Function 'calc_ovt_mode' argument 1 names different: declaration 'hact' definition 'Hactive'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:53:44: note: Function 'calc_ovt_mode' argument 1 names different: declaration 'hact' definition 'Hactive'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:53:62: style:inconclusive: Function 'calc_ovt_mode' argument 2 names different: declaration 'vact' definition 'Vactive'. [funcArgNamesDifferent] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:355:48: note: Function 'calc_ovt_mode' argument 2 names different: declaration 'vact' definition 'Vactive'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:53:62: note: Function 'calc_ovt_mode' argument 2 names different: declaration 'vact' definition 'Vactive'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:54:16: style:inconclusive: Function 'calc_ovt_mode' argument 3 names different: declaration 'hratio' definition 'Hratio'. [funcArgNamesDifferent] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:356:19: note: Function 'calc_ovt_mode' argument 3 names different: declaration 'hratio' definition 'Hratio'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:54:16: note: Function 'calc_ovt_mode' argument 3 names different: declaration 'hratio' definition 'Hratio'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:54:33: style:inconclusive: Function 'calc_ovt_mode' argument 4 names different: declaration 'vratio' definition 'Vratio'. [funcArgNamesDifferent] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:356:36: note: Function 'calc_ovt_mode' argument 4 names different: declaration 'vratio' definition 'Vratio'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:54:33: note: Function 'calc_ovt_mode' argument 4 names different: declaration 'vratio' definition 'Vratio'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:55:16: style:inconclusive: Function 'calc_ovt_mode' argument 5 names different: declaration 'frame_rate' definition 'Vrate'. [funcArgNamesDifferent] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:357:19: note: Function 'calc_ovt_mode' argument 5 names different: declaration 'frame_rate' definition 'Vrate'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:55:16: note: Function 'calc_ovt_mode' argument 5 names different: declaration 'frame_rate' definition 'Vrate'. edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:131:25: style: int result is assigned to long long variable. If the variable is long long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] edid-decode-0.1~git20220315.cb74358c2896/calc-ovt.cpp:137:7: style: int result is assigned to long long variable. If the variable is long long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1114:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1149:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1245:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDID_PAGE_SIZE [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1588:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1651:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1727:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1811:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1860:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1907:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1941:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:341:10: performance:inconclusive: Technically the member function 'edid_state::calc_gtf_mode' can be static (but you may consider moving to unnamed namespace). [functionStatic] edid-decode-0.1~git20220315.cb74358c2896/calc-gtf-cvt.cpp:24:21: note: Technically the member function 'edid_state::calc_gtf_mode' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:341:10: note: Technically the member function 'edid_state::calc_gtf_mode' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:347:10: performance:inconclusive: Technically the member function 'edid_state::calc_cvt_mode' can be static (but you may consider moving to unnamed namespace). [functionStatic] edid-decode-0.1~git20220315.cb74358c2896/calc-gtf-cvt.cpp:132:21: note: Technically the member function 'edid_state::calc_cvt_mode' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:347:10: note: Technically the member function 'edid_state::calc_cvt_mode' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/parse-di-ext-block.cpp:45:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-di-ext-block.cpp:61:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-base-block.cpp:1354:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] edid-decode-0.1~git20220315.cb74358c2896/parse-base-block.cpp:719:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-base-block.cpp:721:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-base-block.cpp:830:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-base-block.cpp:915:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-base-block.cpp:915:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-base-block.cpp:1391:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-base-block.cpp:1289:9: style: Variable 'sn' can be declared as pointer to const [constVariablePointer] edid-decode-0.1~git20220315.cb74358c2896/parse-base-block.cpp:1321:13: style: Variable 'ptm' can be declared as pointer to const [constVariablePointer] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:449:7: style:inconclusive: Technically the member function 'edid_state::parse_string_table' can be const. [functionConst] edid-decode-0.1~git20220315.cb74358c2896/parse-ls-ext-block.cpp:18:18: note: Technically the member function 'edid_state::parse_string_table' can be const. edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:449:7: note: Technically the member function 'edid_state::parse_string_table' can be const. edid-decode-0.1~git20220315.cb74358c2896/parse-ls-ext-block.cpp:30:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-ls-ext-block.cpp:59:2: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-ls-ext-block.cpp:59:2: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1748:2: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:340:7: performance:inconclusive: Technically the member function 'edid_state::match_timings' can be static (but you may consider moving to unnamed namespace). [functionStatic] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:288:18: note: Technically the member function 'edid_state::match_timings' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:340:7: note: Technically the member function 'edid_state::match_timings' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1381:15: style: Condition 'native_width_int' is always true [knownConditionTrueFalse] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1377:8: note: Assuming that condition '!native_width_int' is not redundant edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1381:15: note: Condition 'native_width_int' is always true edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1392:15: style: Condition 'native_width' is always true [knownConditionTrueFalse] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1388:8: note: Assuming that condition '!native_width' is not redundant edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1392:15: note: Condition 'native_width' is always true edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1539:36: style: Condition 'strlen("SHA")' is always true [knownConditionTrueFalse] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1871:6: style: Condition 'opt_str' is always true [knownConditionTrueFalse] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:2041:13: style: Condition 'strlen("SHA")' is always true [knownConditionTrueFalse] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:395:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:395:2: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:395:2: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:429:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:429:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:429:2: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:429:2: warning: %d in format string (no. 10) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:498:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1585:31: style: C-style pointer casting [cstyleCast] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1724:31: style: C-style pointer casting [cstyleCast] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1857:31: style: C-style pointer casting [cstyleCast] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:880:14: style: The scope of the variable 'indentation' can be reduced. [variableScope] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:280:43: style:inconclusive: Function 'dtd_type' argument 1 names different: declaration 'dtd' definition 'cnt'. [funcArgNamesDifferent] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:329:32: note: Function 'dtd_type' argument 1 names different: declaration 'dtd' definition 'cnt'. edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:280:43: note: Function 'dtd_type' argument 1 names different: declaration 'dtd' definition 'cnt'. edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1231:12: style: Local variable 'block' shadows outer variable [shadowVariable] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:210:14: note: Shadowed declaration edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1231:12: note: Shadow variable edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:697:45: performance: Function parameter 'block_name' should be passed by const reference. [passedByValue] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1826:39: style: Parameter 'data' can be declared as reference to const [constParameterReference] edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:139:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:272:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable has_arg [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:466:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:409:7: performance:inconclusive: Technically the member function 'edid_state::check_displayid_datablock_revision' can be static (but you may consider moving to unnamed namespace). [functionStatic] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:43:18: note: Technically the member function 'edid_state::check_displayid_datablock_revision' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:409:7: note: Technically the member function 'edid_state::check_displayid_datablock_revision' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:443:7: performance:inconclusive: Technically the member function 'edid_state::parse_displayid_apple' can be static (but you may consider moving to unnamed namespace). [functionStatic] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1598:18: note: Technically the member function 'edid_state::parse_displayid_apple' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:443:7: note: Technically the member function 'edid_state::parse_displayid_apple' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:145:9: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:84:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:541:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:543:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:683:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:685:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:698:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:699:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:700:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:701:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:702:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:703:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:799:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:800:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:800:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:814:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:814:3: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1051:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1056:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1189:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1283:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1285:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1289:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1366:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1439:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:1571:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:879:13: style: Local variable 'x' shadows outer argument [shadowArgument] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:851:75: note: Shadowed declaration edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:879:13: note: Shadow variable edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:30:22: error:inconclusive: Shifting 32-bit value by 4294967295 bits is undefined behaviour [shiftTooManyBits] edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:29:20: note: Assignment 'i=0', assigned value is 0 edid-decode-0.1~git20220315.cb74358c2896/parse-displayid-block.cpp:30:22: note: Shift edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:475:14: style: Variable 'optind' is reassigned a value before the old one has been used. [redundantAssignment] edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:470:9: note: optind is assigned edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:475:14: note: optind is overwritten edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:120:38: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:120:49: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:120:70: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:283:26: portability: Undefined behaviour, when 'vic' is 219 the pointer arithmetic 'edid_cta_modes2+vic' is out of bounds. [pointerOutOfBoundsCond] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:282:24: note: Assuming that condition 'vic<(sizeof(edid_cta_modes2)/sizeof(*(edid_cta_modes2)))+193' is not redundant edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:283:26: note: Pointer arithmetic overflow edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:375:7: performance:inconclusive: Technically the member function 'edid_state::hdmi_latency' can be static (but you may consider moving to unnamed namespace). [functionStatic] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:907:18: note: Technically the member function 'edid_state::hdmi_latency' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:375:7: note: Technically the member function 'edid_state::hdmi_latency' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:383:10: performance:inconclusive: Technically the member function 'edid_state::cta_parse_vfd' can be static (but you may consider moving to unnamed namespace). [functionStatic] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:629:21: note: Technically the member function 'edid_state::cta_parse_vfd' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:383:10: note: Technically the member function 'edid_state::cta_parse_vfd' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:384:7: style:inconclusive: Technically the member function 'edid_state::cta_rcdb' can be const. [functionConst] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1843:18: note: Technically the member function 'edid_state::cta_rcdb' can be const. edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:384:7: note: Technically the member function 'edid_state::cta_rcdb' can be const. edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:385:7: style:inconclusive: Technically the member function 'edid_state::cta_sldb' can be const. [functionConst] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1927:18: note: Technically the member function 'edid_state::cta_sldb' can be const. edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:385:7: note: Technically the member function 'edid_state::cta_sldb' can be const. edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:399:7: performance:inconclusive: Technically the member function 'edid_state::cta_list_rids' can be static (but you may consider moving to unnamed namespace). [functionStatic] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:346:18: note: Technically the member function 'edid_state::cta_list_rids' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/edid-decode.h:399:7: note: Technically the member function 'edid_state::cta_list_rids' can be static (but you may consider moving to unnamed namespace). edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:526:21: style: Condition 'format>=9' is always true [knownConditionTrueFalse] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:507:21: note: Assuming that condition 'format<=8' is not redundant edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:526:21: note: Condition 'format>=9' is always true edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:537:20: style: Condition 'x[i+2]&1' is always true [knownConditionTrueFalse] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:468:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:473:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:479:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:508:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:525:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:541:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:814:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:823:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:972:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1334:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1418:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1419:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1421:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1468:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1468:3: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1494:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1499:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1535:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1536:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1691:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1692:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1693:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1695:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1698:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1699:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1702:11: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1707:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1707:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1717:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1718:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1719:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1719:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1790:3: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1802:3: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1806:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1806:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1830:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1833:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1833:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1859:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1938:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:2157:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:2197:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:2202:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:2276:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:2289:4: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:2642:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:446:14: style: The scope of the variable 'format' can be reduced. [variableScope] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:1050:26: style: The scope of the variable 't' can be reduced. [variableScope] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:2599:23: style: The scope of the variable 'detailed' can be reduced. [variableScope] edid-decode-0.1~git20220315.cb74358c2896/parse-cta-block.cpp:647:35: style: Parameter 'vfd' can be declared as reference to const [constParameterReference] diff: head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1149:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1245:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDID_PAGE_SIZE [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1585:31: style: C-style pointer casting [cstyleCast] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1588:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1651:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1724:31: style: C-style pointer casting [cstyleCast] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1727:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1811:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1857:31: style: C-style pointer casting [cstyleCast] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1860:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1907:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/edid-decode.cpp:1941:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:272:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable has_arg [valueFlowBailoutIncompleteVar] head edid-decode-0.1~git20220315.cb74358c2896/vs/getopt.c:466:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] DONE