2026-02-14 15:17 ftp://ftp.de.debian.org/debian/pool/main/j/jpeg-compressor-cpp/jpeg-compressor-cpp_104+dfsg.orig.tar.gz 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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-100-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.19.0 head-info: 3dc52dc (2026-02-14 14:45:54 +0100) count: 368 368 elapsed-time: 206.5 50.9 head-timing-info: old-timing-info: head results: jpeg-compressor-104/jpgd.cpp:766:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCALE [valueFlowBailoutIncompleteVar] jpeg-compressor-104/jpgd.cpp:695:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCALE [valueFlowBailoutIncompleteVar] jpeg-compressor-104/jpgd.cpp:2930:15: warning: Member variable 'jpeg_decoder::m_crr' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpgd.cpp:2930:15: warning: Member variable 'jpeg_decoder::m_cbb' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpgd.cpp:2930:15: warning: Member variable 'jpeg_decoder::m_crg' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpgd.cpp:2930:15: warning: Member variable 'jpeg_decoder::m_cbg' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpgd.cpp:595:12: warning: Member variable 'Matrix44::v' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpgd.cpp:889:20: style: The member function 'jpgd::jpeg_decoder::word_clear' can be static. [functionStatic] jpeg-compressor-104/jpgd.h:261:10: note: The member function 'jpgd::jpeg_decoder::word_clear' can be static. jpeg-compressor-104/jpgd.cpp:889:20: note: The member function 'jpgd::jpeg_decoder::word_clear' can be static. jpeg-compressor-104/jpgd.cpp:1495:20: style:inconclusive: Technically the member function 'jpgd::jpeg_decoder::transform_mcu' can be const. [functionConst] jpeg-compressor-104/jpgd.h:277:10: note: Technically the member function 'jpgd::jpeg_decoder::transform_mcu' can be const. jpeg-compressor-104/jpgd.cpp:1495:20: note: Technically the member function 'jpgd::jpeg_decoder::transform_mcu' can be const. jpeg-compressor-104/jpgd.cpp:2591:36: style: The member function 'jpgd::jpeg_decoder::coeff_buf_getp' can be static. [functionStatic] jpeg-compressor-104/jpgd.h:280:26: note: The member function 'jpgd::jpeg_decoder::coeff_buf_getp' can be static. jpeg-compressor-104/jpgd.cpp:2591:36: note: The member function 'jpgd::jpeg_decoder::coeff_buf_getp' can be static. jpeg-compressor-104/jpgd.cpp:2213:20: style:inconclusive: Technically the member function 'jpgd::jpeg_decoder::make_huff_table' can be const. [functionConst] jpeg-compressor-104/jpgd.h:283:10: note: Technically the member function 'jpgd::jpeg_decoder::make_huff_table' can be const. jpeg-compressor-104/jpgd.cpp:2213:20: note: Technically the member function 'jpgd::jpeg_decoder::make_huff_table' can be const. jpeg-compressor-104/jpgd.cpp:1988:20: style:inconclusive: Technically the member function 'jpgd::jpeg_decoder::H2V2Convert' can be const. [functionConst] jpeg-compressor-104/jpgd.h:295:10: note: Technically the member function 'jpgd::jpeg_decoder::H2V2Convert' can be const. jpeg-compressor-104/jpgd.cpp:1988:20: note: Technically the member function 'jpgd::jpeg_decoder::H2V2Convert' can be const. jpeg-compressor-104/jpgd.cpp:1895:20: style:inconclusive: Technically the member function 'jpgd::jpeg_decoder::H2V1Convert' can be const. [functionConst] jpeg-compressor-104/jpgd.h:296:10: note: Technically the member function 'jpgd::jpeg_decoder::H2V1Convert' can be const. jpeg-compressor-104/jpgd.cpp:1895:20: note: Technically the member function 'jpgd::jpeg_decoder::H2V1Convert' can be const. jpeg-compressor-104/jpgd.cpp:1940:20: style:inconclusive: Technically the member function 'jpgd::jpeg_decoder::H1V2Convert' can be const. [functionConst] jpeg-compressor-104/jpgd.h:297:10: note: Technically the member function 'jpgd::jpeg_decoder::H1V2Convert' can be const. jpeg-compressor-104/jpgd.cpp:1940:20: note: Technically the member function 'jpgd::jpeg_decoder::H1V2Convert' can be const. jpeg-compressor-104/jpgd.cpp:1868:20: style:inconclusive: Technically the member function 'jpgd::jpeg_decoder::H1V1Convert' can be const. [functionConst] jpeg-compressor-104/jpgd.h:298:10: note: Technically the member function 'jpgd::jpeg_decoder::H1V1Convert' can be const. jpeg-compressor-104/jpgd.cpp:1868:20: note: Technically the member function 'jpgd::jpeg_decoder::H1V1Convert' can be const. jpeg-compressor-104/jpgd.cpp:2054:20: style:inconclusive: Technically the member function 'jpgd::jpeg_decoder::gray_convert' can be const. [functionConst] jpeg-compressor-104/jpgd.h:299:10: note: Technically the member function 'jpgd::jpeg_decoder::gray_convert' can be const. jpeg-compressor-104/jpgd.cpp:2054:20: note: Technically the member function 'jpgd::jpeg_decoder::gray_convert' can be const. jpeg-compressor-104/jpgd.cpp:2070:20: style:inconclusive: Technically the member function 'jpgd::jpeg_decoder::expanded_convert' can be const. [functionConst] jpeg-compressor-104/jpgd.h:300:10: note: Technically the member function 'jpgd::jpeg_decoder::expanded_convert' can be const. jpeg-compressor-104/jpgd.cpp:2070:20: note: Technically the member function 'jpgd::jpeg_decoder::expanded_convert' can be const. jpeg-compressor-104/jpgd.cpp:589:16: style: The member function 'jpgd::DCT_Upsample::Matrix44::rows' can be static. [functionStatic] jpeg-compressor-104/jpgd.cpp:590:16: style: The member function 'jpgd::DCT_Upsample::Matrix44::cols' can be static. [functionStatic] jpeg-compressor-104/jpgd.h:123:5: style: Class 'jpeg_decoder' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] jpeg-compressor-104/jpgd.h:80:14: style: The destructor '~jpeg_decoder_file_stream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] jpeg-compressor-104/jpgd.h:57:14: note: Virtual destructor in base class jpeg-compressor-104/jpgd.h:80:14: note: Destructor in derived class jpeg-compressor-104/jpgd.h:85:17: style: The function 'read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] jpeg-compressor-104/jpgd.h:66:17: note: Virtual function in base class jpeg-compressor-104/jpgd.h:85:17: note: Function in derived class jpeg-compressor-104/jpgd.h:98:14: style: The destructor '~jpeg_decoder_mem_stream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] jpeg-compressor-104/jpgd.h:57:14: note: Virtual destructor in base class jpeg-compressor-104/jpgd.h:98:14: note: Destructor in derived class jpeg-compressor-104/jpgd.h:103:17: style: The function 'read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] jpeg-compressor-104/jpgd.h:66:17: note: Virtual function in base class jpeg-compressor-104/jpgd.h:103:17: note: Function in derived class jpeg-compressor-104/jpgd.cpp:968:16: style: Expression '(X & 0x10) > 0x10' is always false. [comparisonError] jpeg-compressor-104/jpgd.cpp:497:47: style: Condition '(symbol=pH->look_up[m_bit_buf>>24])<0' is always false [knownConditionTrueFalse] jpeg-compressor-104/jpgd.cpp:521:48: style: Condition '(symbol=pH->look_up2[m_bit_buf>>24])<0' is always false [knownConditionTrueFalse] jpeg-compressor-104/jpgd.cpp:2299:13: style: Condition '!has_extrabits' is always true [knownConditionTrueFalse] jpeg-compressor-104/jpgd.cpp:2282:30: note: Assignment 'has_extrabits=false', assigned value is 0 jpeg-compressor-104/jpgd.cpp:2299:13: note: Condition '!has_extrabits' is always true jpeg-compressor-104/jpgd.cpp:878:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:891:15: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:977:27: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:980:27: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:1012:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:2376:27: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:2537:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:2539:22: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:2548:25: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:2563:21: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:2565:21: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:2580:19: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:2587:15: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:3085:24: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:3093:24: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/jpgd.cpp:258:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] jpeg-compressor-104/jpgd.cpp:259:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] jpeg-compressor-104/jpgd.cpp:2062:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] jpeg-compressor-104/jpgd.cpp:2062:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] jpeg-compressor-104/jpgd.cpp:2063:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] jpeg-compressor-104/jpgd.cpp:2063:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] jpeg-compressor-104/jpgd.cpp:2594:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] jpeg-compressor-104/jpgd.cpp:2559:33: style: Variable 'm_freq_domain_chroma_upsample' is reassigned a value before the old one has been used. [redundantAssignment] jpeg-compressor-104/jpgd.cpp:2557:33: note: m_freq_domain_chroma_upsample is assigned jpeg-compressor-104/jpgd.cpp:2559:33: note: m_freq_domain_chroma_upsample is overwritten jpeg-compressor-104/jpgd.cpp:1226:9: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jpeg-compressor-104/jpgd.cpp:1252:9: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jpeg-compressor-104/jpgd.cpp:1327:7: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jpeg-compressor-104/jpgd.cpp:1332:7: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jpeg-compressor-104/jpgd.cpp:930:10: style: The scope of the variable 'index' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:930:17: style: The scope of the variable 'count' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:991:7: style: The scope of the variable 'n' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:991:13: style: The scope of the variable 'prec' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:1107:17: style: The scope of the variable 'c' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:1107:20: style: The scope of the variable 'cc' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:1189:7: style: The scope of the variable 'c' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:1641:7: style: The scope of the variable 'component_num' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:2220:7: style: The scope of the variable 'code_size' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:2386:7: style: The scope of the variable 'component_num' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:2601:10: style: The scope of the variable 'r' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:2627:10: style: The scope of the variable 's' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:2627:13: style: The scope of the variable 'r' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:2678:7: style: The scope of the variable 's' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:2678:13: style: The scope of the variable 'r' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:2788:9: style: The scope of the variable 'component_num' can be reduced. [variableScope] jpeg-compressor-104/jpgd.cpp:566:50: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:65: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:80: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:95: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:110: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:125: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:140: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:155: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:170: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:185: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:201: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:217: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:233: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:249: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:566:265: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:1467:49: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:1468:49: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:2680:17: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/jpgd.cpp:455:51: style:inconclusive: Function 'get_bits_no_markers' argument 1 names different: declaration 'numbits' definition 'num_bits'. [funcArgNamesDifferent] jpeg-compressor-104/jpgd.h:307:41: note: Function 'get_bits_no_markers' argument 1 names different: declaration 'numbits' definition 'num_bits'. jpeg-compressor-104/jpgd.cpp:455:51: note: Function 'get_bits_no_markers' argument 1 names different: declaration 'numbits' definition 'num_bits'. jpeg-compressor-104/jpgd.cpp:516:60: style:inconclusive: Function 'huff_decode' argument 2 names different: declaration 'extrabits' definition 'extra_bits'. [funcArgNamesDifferent] jpeg-compressor-104/jpgd.h:309:50: note: Function 'huff_decode' argument 2 names different: declaration 'extrabits' definition 'extra_bits'. jpeg-compressor-104/jpgd.cpp:516:60: note: Function 'huff_decode' argument 2 names different: declaration 'extrabits' definition 'extra_bits'. jpeg-compressor-104/jpgd.cpp:862:34: style:inconclusive: Function 'alloc' argument 1 names different: declaration 'n' definition 'nSize'. [funcArgNamesDifferent] jpeg-compressor-104/jpgd.h:260:24: note: Function 'alloc' argument 1 names different: declaration 'n' definition 'nSize'. jpeg-compressor-104/jpgd.cpp:862:34: note: Function 'alloc' argument 1 names different: declaration 'n' definition 'nSize'. jpeg-compressor-104/jpgd.cpp:2782:41: style: Local variable 'm_block_y_mcu' shadows outer variable [shadowVariable] jpeg-compressor-104/jpgd.h:224:9: note: Shadowed declaration jpeg-compressor-104/jpgd.cpp:2782:41: note: Shadow variable jpeg-compressor-104/jpgd.cpp:1609:29: style: Variable 'b' can be declared as reference to const [constVariableReference] jpeg-compressor-104/jpgd.cpp:1611:29: style: Variable 'd' can be declared as reference to const [constVariableReference] jpeg-compressor-104/jpgd.cpp:124:25: style: Parameter 'pTemp' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/jpgd.cpp:1639:17: style: Variable 'q' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpgd.cpp:1657:21: style: Variable 'pAC' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpgd.cpp:1658:21: style: Variable 'pDC' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpgd.cpp:1773:21: style: Variable 'q' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpgd.cpp:2591:62: style: Parameter 'cb' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/jpgd.cpp:218:40: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:252:9: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:575:16: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:187:28: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:190:28: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:193:28: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:196:28: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:199:28: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:202:28: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:205:28: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:208:28: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] jpeg-compressor-104/jpgd.cpp:436:29: style: Variable 'num_bits' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/jpgd.cpp:464:29: style: Variable 'num_bits' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/jpge.h:64:87: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] jpeg-compressor-104/jpge.cpp:929:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_pStream' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_num_components' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_comp_h_samp' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_comp_v_samp' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_image_x' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_image_y' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_image_bpp' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_image_bpl' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_image_x_mcu' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_image_y_mcu' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_image_bpl_xlt' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_image_bpl_mcu' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_mcus_per_row' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_mcu_x' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_mcu_y' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_mcu_y_ofs' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_sample_array' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_coefficient_array' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_quantization_tables' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_huff_codes' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_huff_code_sizes' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_huff_bits' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_huff_val' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_huff_count' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_last_dc_val' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_out_buf' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_pOut_buf' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_out_buf_left' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_bit_buffer' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.cpp:856:15: warning: Member variable 'jpeg_encoder::m_bits_in' is not initialized in the constructor. [uninitMemberVar] jpeg-compressor-104/jpge.h:88:17: style:inconclusive: Technically the member function 'jpge::jpeg_encoder::get_cur_pass' can be const. [functionConst] jpeg-compressor-104/jpge.cpp:367:20: style: The member function 'jpge::jpeg_encoder::compute_huffman_table' can be static. [functionStatic] jpeg-compressor-104/jpge.h:142:10: note: The member function 'jpge::jpeg_encoder::compute_huffman_table' can be static. jpeg-compressor-104/jpge.cpp:367:20: note: The member function 'jpge::jpeg_encoder::compute_huffman_table' can be static. jpeg-compressor-104/jpge.cpp:511:20: style:inconclusive: Technically the member function 'jpge::jpeg_encoder::load_block_8_8_grey' can be const. [functionConst] jpeg-compressor-104/jpge.h:148:10: note: Technically the member function 'jpge::jpeg_encoder::load_block_8_8_grey' can be const. jpeg-compressor-104/jpge.cpp:511:20: note: Technically the member function 'jpge::jpeg_encoder::load_block_8_8_grey' can be const. jpeg-compressor-104/jpge.cpp:524:20: style:inconclusive: Technically the member function 'jpge::jpeg_encoder::load_block_8_8' can be const. [functionConst] jpeg-compressor-104/jpge.h:149:10: note: Technically the member function 'jpge::jpeg_encoder::load_block_8_8' can be const. jpeg-compressor-104/jpge.cpp:524:20: note: Technically the member function 'jpge::jpeg_encoder::load_block_8_8' can be const. jpeg-compressor-104/jpge.cpp:538:20: style:inconclusive: Technically the member function 'jpge::jpeg_encoder::load_block_16_8' can be const. [functionConst] jpeg-compressor-104/jpge.h:150:10: note: Technically the member function 'jpge::jpeg_encoder::load_block_16_8' can be const. jpeg-compressor-104/jpge.cpp:538:20: note: Technically the member function 'jpge::jpeg_encoder::load_block_16_8' can be const. jpeg-compressor-104/jpge.cpp:556:20: style:inconclusive: Technically the member function 'jpge::jpeg_encoder::load_block_16_8_8' can be const. [functionConst] jpeg-compressor-104/jpge.h:151:10: note: Technically the member function 'jpge::jpeg_encoder::load_block_16_8_8' can be const. jpeg-compressor-104/jpge.cpp:556:20: note: Technically the member function 'jpge::jpeg_encoder::load_block_16_8_8' can be const. jpeg-compressor-104/jpge.cpp:571:20: style:inconclusive: Technically the member function 'jpge::jpeg_encoder::load_quantized_coefficients' can be const. [functionConst] jpeg-compressor-104/jpge.h:152:10: note: Technically the member function 'jpge::jpeg_encoder::load_quantized_coefficients' can be const. jpeg-compressor-104/jpge.cpp:571:20: note: Technically the member function 'jpge::jpeg_encoder::load_quantized_coefficients' can be const. jpeg-compressor-104/jpge.cpp:912:13: style: The destructor '~cfile_stream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] jpeg-compressor-104/jpge.h:62:14: note: Virtual destructor in base class jpeg-compressor-104/jpge.cpp:912:13: note: Destructor in derived class jpeg-compressor-104/jpge.cpp:938:17: style: The function 'put_buf' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] jpeg-compressor-104/jpge.h:63:18: note: Virtual function in base class jpeg-compressor-104/jpge.cpp:938:17: note: Function in derived class jpeg-compressor-104/jpge.cpp:989:13: style: The destructor '~memory_stream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] jpeg-compressor-104/jpge.h:62:14: note: Virtual destructor in base class jpeg-compressor-104/jpge.cpp:989:13: note: Destructor in derived class jpeg-compressor-104/jpge.cpp:991:17: style: The function 'put_buf' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] jpeg-compressor-104/jpge.h:63:18: note: Virtual function in base class jpeg-compressor-104/jpge.cpp:991:17: note: Function in derived class jpeg-compressor-104/jpge.cpp:506:9: style: Condition '!second_pass_init()' is always false [knownConditionTrueFalse] jpeg-compressor-104/jpge.cpp:506:26: note: Calling function 'second_pass_init' returns 1 jpeg-compressor-104/jpge.cpp:506:9: note: Condition '!second_pass_init()' is always false jpeg-compressor-104/jpge.cpp:888:11: style: Condition '!process_end_of_image()' is always false [knownConditionTrueFalse] jpeg-compressor-104/jpge.cpp:773:26: note: Calling function 'second_pass_init' returns 1 jpeg-compressor-104/jpge.cpp:799:30: note: Calling function 'terminate_pass_one' returns 1 jpeg-compressor-104/jpge.cpp:888:32: note: Calling function 'process_end_of_image' returns 1 jpeg-compressor-104/jpge.cpp:888:11: note: Condition '!process_end_of_image()' is always false jpeg-compressor-104/jpge.cpp:540:10: style: The scope of the variable 'pSrc1' can be reduced. [variableScope] jpeg-compressor-104/jpge.cpp:540:18: style: The scope of the variable 'pSrc2' can be reduced. [variableScope] jpeg-compressor-104/jpge.cpp:558:10: style: The scope of the variable 'pSrc1' can be reduced. [variableScope] jpeg-compressor-104/jpge.cpp:401:47: style:inconclusive: Function 'compute_quant_table' argument 1 names different: declaration 'dst' definition 'pDst'. [funcArgNamesDifferent] jpeg-compressor-104/jpge.h:143:37: note: Function 'compute_quant_table' argument 1 names different: declaration 'dst' definition 'pDst'. jpeg-compressor-104/jpge.cpp:401:47: note: Function 'compute_quant_table' argument 1 names different: declaration 'dst' definition 'pDst'. jpeg-compressor-104/jpge.cpp:401:60: style:inconclusive: Function 'compute_quant_table' argument 2 names different: declaration 'src' definition 'pSrc'. [funcArgNamesDifferent] jpeg-compressor-104/jpge.h:143:49: note: Function 'compute_quant_table' argument 2 names different: declaration 'src' definition 'pSrc'. jpeg-compressor-104/jpge.cpp:401:60: note: Function 'compute_quant_table' argument 2 names different: declaration 'src' definition 'pSrc'. jpeg-compressor-104/jpge.cpp:804:41: style:inconclusive: Function 'load_mcu' argument 1 names different: declaration 'src' definition 'pSrc'. [funcArgNamesDifferent] jpeg-compressor-104/jpge.h:162:31: note: Function 'load_mcu' argument 1 names different: declaration 'src' definition 'pSrc'. jpeg-compressor-104/jpge.cpp:804:41: note: Function 'load_mcu' argument 1 names different: declaration 'src' definition 'pSrc'. jpeg-compressor-104/jpge.cpp:1007:50: style:inconclusive: Function 'compress_image_to_jpeg_file_in_memory' argument 1 names different: declaration 'pBuf' definition 'pDstBuf'. [funcArgNamesDifferent] jpeg-compressor-104/jpge.h:55:52: note: Function 'compress_image_to_jpeg_file_in_memory' argument 1 names different: declaration 'pBuf' definition 'pDstBuf'. jpeg-compressor-104/jpge.cpp:1007:50: note: Function 'compress_image_to_jpeg_file_in_memory' argument 1 names different: declaration 'pBuf' definition 'pDstBuf'. jpeg-compressor-104/jpge.cpp:306:36: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/jpge.cpp:306:49: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/jpge.cpp:367:81: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/jpge.cpp:367:94: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/jpge.cpp:401:60: style: Parameter 'pSrc' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/jpge.cpp:513:10: style: Variable 'pSrc' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpge.cpp:526:10: style: Variable 'pSrc' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpge.cpp:540:10: style: Variable 'pSrc1' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpge.cpp:540:18: style: Variable 'pSrc2' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpge.cpp:558:10: style: Variable 'pSrc1' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpge.cpp:573:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpge.cpp:622:10: style: Variable 'src' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/jpge.cpp:660:10: style: Variable 'pSrc' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:2255:18: warning: Either the condition 'b<0xffff' is redundant or the array 'z->size[288]' is accessed at index 65534, which is out of bounds. [arrayIndexOutOfBoundsCond] jpeg-compressor-104/stb_image.c:2254:10: note: Assuming that condition 'b<0xffff' is not redundant jpeg-compressor-104/stb_image.c:2255:18: note: Array index out of bounds jpeg-compressor-104/stb_image.c:2258:22: warning: Either the condition 'b<0xffff' is redundant or the array 'z->value[288]' is accessed at index 65534, which is out of bounds. [arrayIndexOutOfBoundsCond] jpeg-compressor-104/stb_image.c:2254:10: note: Assuming that condition 'b<0xffff' is not redundant jpeg-compressor-104/stb_image.c:2258:22: note: Array index out of bounds jpeg-compressor-104/stb_image.c:3272:17: style: Redundant condition: The condition 'req_comp' is redundant since 'req_comp >= 3' is sufficient. [redundantCondition] jpeg-compressor-104/stb_image.c:2964:20: style: Condition '!compute_transparency(z,tc,s->img_out_n)' is always false [knownConditionTrueFalse] jpeg-compressor-104/stb_image.c:2964:41: note: Calling function 'compute_transparency' returns 1 jpeg-compressor-104/stb_image.c:2964:20: note: Condition '!compute_transparency(z,tc,s->img_out_n)' is always false jpeg-compressor-104/stb_image.c:3884:31: style: Condition 'len>128' is always true [knownConditionTrueFalse] jpeg-compressor-104/stb_image.c:3873:24: note: Assuming that condition 'len==128' is not redundant jpeg-compressor-104/stb_image.c:3884:31: note: Condition 'len>128' is always true jpeg-compressor-104/stb_image.c:3577:10: error: Memory leak: tga_data [memleak] jpeg-compressor-104/stb_image.c:4151:11: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] jpeg-compressor-104/stb_image.c:4150:31: note: Assuming allocation function fails jpeg-compressor-104/stb_image.c:4150:13: note: Assignment 'result=(unsigned char*)malloc(x*y*4)', assigned value is 0 jpeg-compressor-104/stb_image.c:4151:11: note: Null pointer dereference jpeg-compressor-104/stb_image.c:4531:20: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] jpeg-compressor-104/stb_image.c:4558:13: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] jpeg-compressor-104/stb_image.c:4575:13: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] jpeg-compressor-104/stb_image.c:1773:4: style: Redundant assignment of 'out' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:1774:4: style: Redundant assignment of 'in_far' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:1775:4: style: Redundant assignment of 'w' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:1776:4: style: Redundant assignment of 'hs' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:1784:4: style: Redundant assignment of 'hs' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:1812:4: style: Redundant assignment of 'in_far' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:1813:4: style: Redundant assignment of 'hs' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:1839:4: style: Redundant assignment of 'hs' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:1848:11: style: Redundant assignment of 'in_far' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:2793:4: style: Redundant assignment of 'len' to itself. [selfAssignment] jpeg-compressor-104/stb_image.c:4655:6: style: Redundant initialization for 'c'. The initialized value is overwritten before it is read. [redundantInitialization] jpeg-compressor-104/stb_image.c:4653:11: note: c is initialized jpeg-compressor-104/stb_image.c:4655:6: note: c is overwritten jpeg-compressor-104/stb_image.c:1248:18: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] jpeg-compressor-104/stb_image.c:1576:29: style: Local variable 'm' shadows outer argument [shadowArgument] jpeg-compressor-104/stb_image.c:1539:40: note: Shadowed declaration jpeg-compressor-104/stb_image.c:1576:29: note: Shadow variable jpeg-compressor-104/stb_image.c:2192:17: style: Local variable 'k' shadows outer variable [shadowVariable] jpeg-compressor-104/stb_image.c:2161:10: note: Shadowed declaration jpeg-compressor-104/stb_image.c:2192:17: note: Shadow variable jpeg-compressor-104/stb_image.c:4099:26: style: Local variable 'i' shadows outer variable [shadowVariable] jpeg-compressor-104/stb_image.c:4094:40: note: Shadowed declaration jpeg-compressor-104/stb_image.c:4099:26: note: Shadow variable jpeg-compressor-104/stb_image.c:4382:16: style: Local variable 'code' shadows outer variable [shadowVariable] jpeg-compressor-104/stb_image.c:4348:15: note: Shadowed declaration jpeg-compressor-104/stb_image.c:4382:16: note: Shadow variable jpeg-compressor-104/stb_image.c:1115:43: style: Parameter 'count' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/stb_image.c:1780:51: style: Parameter 'in_near' can be declared as pointer to const. However it seems that 'resample_row_v_2' is a callback function, if 'in_near' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jpeg-compressor-104/stb_image.c:1963:59: note: You might need to cast the function pointer here jpeg-compressor-104/stb_image.c:1780:51: note: Parameter 'in_near' can be declared as pointer to const jpeg-compressor-104/stb_image.c:1780:67: style: Parameter 'in_far' can be declared as pointer to const. However it seems that 'resample_row_v_2' is a callback function, if 'in_far' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jpeg-compressor-104/stb_image.c:1963:59: note: You might need to cast the function pointer here jpeg-compressor-104/stb_image.c:1780:67: note: Parameter 'in_far' can be declared as pointer to const jpeg-compressor-104/stb_image.c:1794:11: style: Variable 'input' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:1820:52: style: Parameter 'in_near' can be declared as pointer to const. However it seems that 'resample_row_hv_2' is a callback function, if 'in_near' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jpeg-compressor-104/stb_image.c:1965:59: note: You might need to cast the function pointer here jpeg-compressor-104/stb_image.c:1820:52: note: Parameter 'in_near' can be declared as pointer to const jpeg-compressor-104/stb_image.c:1820:68: style: Parameter 'in_far' can be declared as pointer to const. However it seems that 'resample_row_hv_2' is a callback function, if 'in_far' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jpeg-compressor-104/stb_image.c:1965:59: note: You might need to cast the function pointer here jpeg-compressor-104/stb_image.c:1820:68: note: Parameter 'in_far' can be declared as pointer to const jpeg-compressor-104/stb_image.c:1844:55: style: Parameter 'in_near' can be declared as pointer to const. However it seems that 'resample_row_generic' is a callback function, if 'in_near' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jpeg-compressor-104/stb_image.c:1966:59: note: You might need to cast the function pointer here jpeg-compressor-104/stb_image.c:1844:55: note: Parameter 'in_near' can be declared as pointer to const jpeg-compressor-104/stb_image.c:1991:20: style: Variable 'y' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:2005:20: style: Variable 'y' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:2159:47: style: Parameter 'sizelist' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/stb_image.c:2316:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:2620:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:2708:11: style: Variable 'xorig' can be declared as const array [constVariable] jpeg-compressor-104/stb_image.c:2709:11: style: Variable 'yorig' can be declared as const array [constVariable] jpeg-compressor-104/stb_image.c:2710:11: style: Variable 'xspc' can be declared as const array [constVariable] jpeg-compressor-104/stb_image.c:2711:11: style: Variable 'yspc' can be declared as const array [constVariable] jpeg-compressor-104/stb_image.c:2738:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:2761:42: style: Parameter 'palette' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/stb_image.c:2764:26: style: Variable 'orig' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:2812:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:4053:24: style: Variable 'packet' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:4313:15: style: Variable 'c' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:4427:11: style: Variable 'c' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:4442:11: style: Variable 'old_out' can be declared as pointer to const [constVariablePointer] jpeg-compressor-104/stb_image.c:4672:49: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/stb_image.c:4886:36: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] jpeg-compressor-104/stb_image.c:4009:11: warning: Uninitialized variable: dest [uninitvar] jpeg-compressor-104/stb_image.c:4082:57: note: Calling function 'pic_readval', 3rd argument 'value' value is jpeg-compressor-104/stb_image.c:4003:19: note: Assuming condition is false jpeg-compressor-104/stb_image.c:4009:11: note: Uninitialized variable: dest jpeg-compressor-104/stb_image.c:1773:4: style: Variable 'out' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:1774:4: style: Variable 'in_far' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:1775:4: style: Variable 'w' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:1776:4: style: Variable 'hs' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:1784:4: style: Variable 'hs' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:1812:4: style: Variable 'in_far' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:1813:4: style: Variable 'hs' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:1839:4: style: Variable 'hs' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:1848:11: style: Variable 'in_far' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:2793:4: style: Variable 'len' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:3191:44: style: Variable 'fake_a' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:3193:28: style: Variable 'compress' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:3240:26: style: Variable 'fake_a' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:3715:22: style: Variable 'tga_palette_start' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:3715:40: style: Variable 'tga_palette_len' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:3715:59: style: Variable 'tga_palette_bits' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:3716:23: style: Variable 'tga_x_origin' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/stb_image.c:3716:38: style: Variable 'tga_y_origin' is assigned a value that is never used. [unreadVariable] jpeg-compressor-104/tga2jpg.cpp:471:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] jpeg-compressor-104/tga2jpg.cpp:82:29: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] jpeg-compressor-104/stb_image.c:626:19: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:655:11: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:682:11: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:692:19: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:708:11: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:722:11: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:819:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:820:24: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:954:11: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:957:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:994:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:995:45: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:1012:22: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:1013:45: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:1924:45: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:1952:35: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:1953:65: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:1970:16: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:1971:46: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2285:8: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2328:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2481:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2483:16: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2484:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2502:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2504:16: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2505:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2518:16: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2519:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2529:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2531:16: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2532:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2545:16: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2546:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2626:13: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2706:12: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2766:8: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2942:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2955:27: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2955:82: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:2955:114: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3007:45: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3195:49: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3201:66: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3209:32: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3211:25: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3219:50: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3253:26: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3256:23: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3276:10: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3277:21: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3280:58: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3291:32: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3329:40: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3565:15: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3575:21: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3786:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3790:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3798:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3806:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3819:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3836:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3839:10: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:3840:21: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4004:32: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4032:17: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4043:38: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4044:38: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4058:23: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4077:46: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4095:42: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4106:32: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4115:45: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4142:27: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4143:34: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4150:13: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4398:31: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4402:48: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4407:23: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4418:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4446:16: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4447:52: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4453:19: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4454:52: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4471:23: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4493:33: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4499:33: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4501:23: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4534:20: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4715:14: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4724:26: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4729:42: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4733:42: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4744:15: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4782:69: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4783:43: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4923:21: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4928:31: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4934:29: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4939:26: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4967:12: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:4976:19: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/tga2jpg.cpp:207:72: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/tga2jpg.cpp:209:54: style: C-style pointer casting [cstyleCast] jpeg-compressor-104/stb_image.c:1636:15: style: The scope of the variable 'q' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:1823:10: style: The scope of the variable 't0' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:2439:15: style: The scope of the variable 'type' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:2712:11: style: The scope of the variable 'i' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:2712:13: style: The scope of the variable 'j' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:3191:38: style: The scope of the variable 'fake_a' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:3193:20: style: The scope of the variable 'compress' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:3780:20: style: The scope of the variable 'count' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:3780:27: style: The scope of the variable 'len' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:4094:40: style: The scope of the variable 'i' can be reduced. [variableScope] jpeg-compressor-104/stb_image.c:4442:11: style: The scope of the variable 'old_out' can be reduced. [variableScope] jpeg-compressor-104/tga2jpg.cpp:424:10: style: Variable 'pImage_data' can be declared as pointer to const [constVariablePointer] diff: DONE