2025-05-05 11:31 ftp://ftp.de.debian.org/debian/pool/main/l/lensfun/lensfun_0.3.95.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=zlib --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: fcc0493 (2025-05-05 13:08:11 +0200) count: 490 487 elapsed-time: 1.7 1.7 head-timing-info: old-timing-info: head results: lensfun-0.3.95/docs/example/example.c:20:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/apps/lenstool/auxfun.h:77:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CropFactor [valueFlowBailoutIncompleteVar] lensfun-0.3.95/apps/lenstool/lenstool.cpp:137:97: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] lensfun-0.3.95/apps/lenstool/lenstool.cpp:361:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/docs/example/tfun.cpp:122:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/docs/example/tfun.cpp:100:26: style: Variable 'long_options' can be declared as const array [constVariable] lensfun-0.3.95/apps/lenstool/image.cpp:151:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_COLOR_MASK_ALPHA [valueFlowBailoutIncompleteVar] lensfun-0.3.95/apps/lenstool/image.cpp:250:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_COLOR_TYPE_RGB_ALPHA [valueFlowBailoutIncompleteVar] lensfun-0.3.95/apps/lenstool/rgbpixel.h:59:3: warning: Member variable 'RGBpixel::red' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/rgbpixel.h:59:3: warning: Member variable 'RGBpixel::green' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/rgbpixel.h:59:3: warning: Member variable 'RGBpixel::blue' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/rgbpixel.h:59:3: warning: Member variable 'RGBpixel::alpha' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/rgbpixel.h:62:3: warning: Member variable 'RGBpixel::red' is not initialized in the copy constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/rgbpixel.h:62:3: warning: Member variable 'RGBpixel::green' is not initialized in the copy constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/rgbpixel.h:62:3: warning: Member variable 'RGBpixel::blue' is not initialized in the copy constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/rgbpixel.h:62:3: warning: Member variable 'RGBpixel::alpha' is not initialized in the copy constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/rgbpixel.h:79:7: style:inconclusive: Technically the member function 'RGBpixel::Intensity' can be const. [functionConst] lensfun-0.3.95/apps/lenstool/rgbpixel.h:60:6: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/rgbpixel.h:64:6: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/rgbpixel.h:64:26: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/rgbpixel.h:71:13: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/rgbpixel.h:71:34: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/rgbpixel.h:77:15: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/rgbpixel.h:77:51: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/rgbpixel.h:89:6: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/rgbpixel.h:89:26: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/lenstool.cpp:282:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/lenstool.cpp:111:26: style: Variable 'long_options' can be declared as const array [constVariable] lensfun-0.3.95/libs/getopt/getopt.c:437:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/auxfun.cpp:329:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/auxfun.cpp:370:21: performance:inconclusive: Technically the member function 'lfFuzzyStrCmp::Split' can be static (but you may consider moving to unnamed namespace). [functionStatic] lensfun-0.3.95/libs/lensfun/lensfunprv.h:219:10: note: Technically the member function 'lfFuzzyStrCmp::Split' can be static (but you may consider moving to unnamed namespace). lensfun-0.3.95/libs/lensfun/auxfun.cpp:370:21: note: Technically the member function 'lfFuzzyStrCmp::Split' can be static (but you may consider moving to unnamed namespace). lensfun-0.3.95/libs/lensfun/auxfun.cpp:363:21: performance:inconclusive: Technically the member function 'lfFuzzyStrCmp::Free' can be static (but you may consider moving to unnamed namespace). [functionStatic] lensfun-0.3.95/libs/lensfun/lensfunprv.h:220:10: note: Technically the member function 'lfFuzzyStrCmp::Free' can be static (but you may consider moving to unnamed namespace). lensfun-0.3.95/libs/lensfun/auxfun.cpp:363:21: note: Technically the member function 'lfFuzzyStrCmp::Free' can be static (but you may consider moving to unnamed namespace). lensfun-0.3.95/libs/lensfun/auxfun.cpp:350:5: warning: Class 'lfFuzzyStrCmp' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] lensfun-0.3.95/libs/lensfun/auxfun.cpp:350:5: warning: Class 'lfFuzzyStrCmp' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] lensfun-0.3.95/libs/lensfun/auxfun.cpp:112:23: style: Condition 'lang' is always true [knownConditionTrueFalse] lensfun-0.3.95/libs/lensfun/auxfun.cpp:103:15: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/auxfun.cpp:114:11: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/auxfun.cpp:135:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/auxfun.cpp:423:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/auxfun.cpp:430:42: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/apps/lenstool/image.cpp:45:8: warning: Member variable 'Image::filesize' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/image.cpp:45:8: warning: Member variable 'Image::fGetR' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/image.cpp:45:8: warning: Member variable 'Image::fGetG' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/image.cpp:45:8: warning: Member variable 'Image::fGetB' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/image.cpp:45:8: warning: Member variable 'Image::fGet' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/image.cpp:45:8: warning: Member variable 'Image::width' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/image.cpp:45:8: warning: Member variable 'Image::height' is not initialized in the constructor. [uninitMemberVar] lensfun-0.3.95/apps/lenstool/image.cpp:58:5: warning: Possible leak in public function. The pointer 'file' is not deallocated before it is allocated. [publicAllocationError] lensfun-0.3.95/apps/lenstool/image.cpp:283:32: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/camera.cpp:12:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/camera.cpp:21:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/camera.cpp:29:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/camera.cpp:38:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/camera.cpp:51:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/camera.cpp:56:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Model [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/camera.cpp:61:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Variant [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/camera.cpp:66:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Mount [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/camera.cpp:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/apps/lenstool/image.cpp:361:37: style: Parameter 'This' can be declared as pointer to const. However it seems that 'GetR_n' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:317:21: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:361:37: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:368:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/apps/lenstool/image.cpp:372:37: style: Parameter 'This' can be declared as pointer to const. However it seems that 'GetG_n' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:318:21: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:372:37: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:379:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/apps/lenstool/image.cpp:383:37: style: Parameter 'This' can be declared as pointer to const. However it seems that 'GetB_n' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:319:21: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:383:37: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:390:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/apps/lenstool/image.cpp:394:27: style: Parameter 'This' can be declared as pointer to const. However it seems that 'Get_n' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:320:20: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:394:27: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:401:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/apps/lenstool/image.cpp:408:37: style: Parameter 'This' can be declared as pointer to const. However it seems that 'GetR_b' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:323:21: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:408:37: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:428:37: style: Parameter 'This' can be declared as pointer to const. However it seems that 'GetG_b' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:324:21: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:428:37: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:448:37: style: Parameter 'This' can be declared as pointer to const. However it seems that 'GetB_b' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:325:21: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:448:37: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:468:27: style: Parameter 'This' can be declared as pointer to const. However it seems that 'Get_b' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:326:20: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:468:27: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:502:37: style: Parameter 'This' can be declared as pointer to const. However it seems that 'GetR_l' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:329:21: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:502:37: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:561:37: style: Parameter 'This' can be declared as pointer to const. However it seems that 'GetG_l' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:330:21: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:561:37: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:620:37: style: Parameter 'This' can be declared as pointer to const. However it seems that 'GetB_l' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:331:21: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:620:37: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/apps/lenstool/image.cpp:679:27: style: Parameter 'This' can be declared as pointer to const. However it seems that 'Get_l' is a callback function, if 'This' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/apps/lenstool/image.cpp:332:20: note: You might need to cast the function pointer here lensfun-0.3.95/apps/lenstool/image.cpp:679:27: note: Parameter 'This' can be declared as pointer to const lensfun-0.3.95/libs/getopt/getopt.c:598:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/libs/lensfun/mod-color.cpp:18:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reverse [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-color.cpp:110:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Crop [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-color.cpp:125:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_VIGNETTING_MODEL_ACM [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-color.cpp:158:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NormScale [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-color.cpp:234:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_CR_UNKNOWN [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-color.cpp:270:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_CR_UNKNOWN [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:22:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:46:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:58:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:86:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:121:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Maker [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:126:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Model [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:138:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MountNames [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:171:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:266:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Model [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:628:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:647:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:676:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:685:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:699:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:708:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:722:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:731:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:745:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:754:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:768:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:777:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:952:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CropFactor [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:960:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:1056:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CropFactor [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:1064:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:1179:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CropFactor [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:1188:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:1273:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CropFactor [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:1281:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:1364:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CropFactor [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:1372:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/lens.cpp:1461:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calibrations [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-color.cpp:165:19: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-color.cpp:286:39: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-color.cpp:322:39: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/lens.cpp:134:16: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] lensfun-0.3.95/libs/lensfun/lens.cpp:133:32: note: Assuming allocation function fails lensfun-0.3.95/libs/lensfun/lens.cpp:133:19: note: Assignment 'p=(char*)malloc(strlen(val))', assigned value is 0 lensfun-0.3.95/libs/lensfun/lens.cpp:134:16: note: Null pointer dereference lensfun-0.3.95/libs/lensfun/lens.cpp:133:19: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/lens.cpp:141:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/lens.cpp:1462:27: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/lens.cpp:1465:20: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/lens.cpp:1468:27: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/lens.cpp:1471:21: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/lens.cpp:1474:20: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/lens.cpp:656:5: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] lensfun-0.3.95/libs/lensfun/lens.cpp:270:5: style: Consider using std::all_of or std::none_of algorithm instead of a raw loop. [useStlAlgorithm] lensfun-0.3.95/libs/lensfun/lens.cpp:658:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:36:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reverse [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:136:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Crop [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:146:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_UNKNOWN [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:328:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Width [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:359:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Width [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:388:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CoordCallbacks [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:437:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable angle [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:476:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NormScale [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:506:20: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:517:39: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:567:39: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:586:39: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:627:39: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:646:39: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:688:39: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:711:39: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:737:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:761:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:782:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:783:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:799:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:800:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:815:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:816:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:838:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:839:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:863:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:864:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:891:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:905:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:906:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:942:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:943:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:964:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:965:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:976:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:977:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:988:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:989:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1018:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1019:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1055:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1056:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1090:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1091:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1108:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1109:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1137:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1164:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1165:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1195:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1196:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1066:16: style: The scope of the variable 'cosc' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:846:20: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:871:20: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:913:20: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1026:22: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] lensfun-0.3.95/libs/lensfun/mod-coord.cpp:1203:20: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:13:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reverse [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:79:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Crop [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:92:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Width [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:114:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NormScale [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:151:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NormScale [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:579:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable enabledMods [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:186:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:204:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:284:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:333:35: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:349:11: style: The scope of the variable 'x' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:349:14: style: The scope of the variable 'y' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:349:17: style: The scope of the variable 'ru2' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:349:22: style: The scope of the variable 'ru4' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/mod-subpix.cpp:349:27: style: The scope of the variable 'common_term' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/modifier.cpp:23:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PixelFormat [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/modifier.cpp:108:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Crop [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/modifier.cpp:139:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Width [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/modifier.cpp:166:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reverse [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/modifier.cpp:185:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CoordCallbacks [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/modifier.cpp:195:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Crop [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:545:54: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:715:40: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:739:40: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mount.cpp:13:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Name [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mount.cpp:19:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Name [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mount.cpp:26:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Name [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mount.cpp:37:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Name [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mount.cpp:51:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Name [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mount.cpp:56:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Name [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mount.cpp:68:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MountCompat [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mount.cpp:82:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Name [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:356:12: style: The scope of the variable 'x_0' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:356:40: style: The scope of the variable 'z_0' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:357:12: style: The scope of the variable 'x_1' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:357:40: style: The scope of the variable 'z_1' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/mount.cpp:64:16: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] lensfun-0.3.95/libs/lensfun/mount.cpp:63:32: note: Assuming allocation function fails lensfun-0.3.95/libs/lensfun/mount.cpp:63:19: note: Assignment 'p=(char*)malloc(strlen(val))', assigned value is 0 lensfun-0.3.95/libs/lensfun/mount.cpp:64:16: note: Null pointer dereference lensfun-0.3.95/libs/lensfun/mount.cpp:63:19: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mount.cpp:71:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:86:34: performance: Function parameter 'coordinates' should be passed by const reference. [passedByValue] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:189:28: performance: Function parameter 'M' should be passed by const reference. [passedByValue] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:196:31: performance: Function parameter 'M' should be passed by const reference. [passedByValue] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:211:32: performance: Function parameter 'x' should be passed by const reference. [passedByValue] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:211:43: performance: Function parameter 'y' should be passed by const reference. [passedByValue] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:275:28: performance: Function parameter 'x' should be passed by const reference. [passedByValue] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:275:39: performance: Function parameter 'y' should be passed by const reference. [passedByValue] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:350:59: performance: Function parameter 'x' should be passed by const reference. [passedByValue] lensfun-0.3.95/libs/lensfun/mod-pc.cpp:350:70: performance: Function parameter 'y' should be passed by const reference. [passedByValue] lensfun-0.3.95/tests/test_database.cpp:115:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_database_old.cpp:79:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_lens.cpp:108:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_lffuzzystrcmp.cpp:43:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_lffuzzystrcmp.cpp:12:28: style: Parameter 'lfFix' can be declared as pointer to const. However it seems that 'mod_setup' is a callback function, if 'lfFix' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/tests/test_lffuzzystrcmp.cpp:50:15: note: You might need to cast the function pointer here lensfun-0.3.95/tests/test_lffuzzystrcmp.cpp:12:28: note: Parameter 'lfFix' can be declared as pointer to const lensfun-0.3.95/tests/test_lffuzzystrcmp.cpp:16:31: style: Parameter 'lfFix' can be declared as pointer to const. However it seems that 'mod_teardown' is a callback function, if 'lfFix' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/tests/test_lffuzzystrcmp.cpp:50:55: note: You might need to cast the function pointer here lensfun-0.3.95/tests/test_lffuzzystrcmp.cpp:16:31: note: Parameter 'lfFix' can be declared as pointer to const lensfun-0.3.95/tests/test_modifier.cpp:19:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier.cpp:46:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_UNKNOWN [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier.cpp:85:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_UNKNOWN [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier.cpp:125:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color.cpp:28:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U8 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color.cpp:33:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U8 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color.cpp:38:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U16 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color.cpp:43:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color.cpp:48:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color.cpp:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F64 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color.cpp:100:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color.cpp:225:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color.cpp:176:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_color.cpp:97:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color.cpp:122:30: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color.cpp:127:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color.cpp:141:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color.cpp:145:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color.cpp:217:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color.cpp:252:28: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color.cpp:81:38: style: Parameter 'lfFix' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/tests/test_modifier_color.cpp:81:59: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/tests/test_modifier_color.cpp:87:39: style: Parameter 'lfFix' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/tests/test_modifier_color.cpp:87:60: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/tests/test_modifier_color.cpp:127:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/tests/test_modifier_color_old.cpp:28:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U8 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color_old.cpp:33:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U8 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color_old.cpp:38:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U16 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color_old.cpp:43:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color_old.cpp:48:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color_old.cpp:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F64 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color_old.cpp:100:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_color_old.cpp:229:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_centering.cpp:31:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_DIST_MODEL_POLY3 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_centering.cpp:91:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_centering.cpp:59:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_centering.cpp:61:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_centering.cpp:75:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_centering.cpp:77:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_color_old.cpp:180:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_color_old.cpp:97:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color_old.cpp:126:30: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color_old.cpp:131:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color_old.cpp:145:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color_old.cpp:149:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color_old.cpp:221:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color_old.cpp:256:28: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_color_old.cpp:81:38: style: Parameter 'lfFix' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/tests/test_modifier_color_old.cpp:81:59: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/tests/test_modifier_color_old.cpp:87:39: style: Parameter 'lfFix' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/tests/test_modifier_color_old.cpp:87:60: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/tests/test_modifier_color_old.cpp:131:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/tests/test_modifier_coord_centering_old.cpp:27:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_DIST_MODEL_POLY3 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_centering_old.cpp:92:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_distortion.cpp:46:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_distortion.cpp:147:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_centering_old.cpp:60:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_centering_old.cpp:62:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_centering_old.cpp:76:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_centering_old.cpp:78:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_distortion.cpp:109:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_coord_distortion.cpp:43:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion.cpp:68:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion.cpp:83:24: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion.cpp:139:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion.cpp:189:28: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion.cpp:68:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/tests/test_modifier_coord_distortion_old.cpp:46:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_distortion_old.cpp:152:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_geometry.cpp:53:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_geometry.cpp:149:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_distortion_old.cpp:114:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_coord_distortion_old.cpp:43:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion_old.cpp:73:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion_old.cpp:88:24: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion_old.cpp:144:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion_old.cpp:191:28: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_distortion_old.cpp:73:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/tests/test_modifier_coord_geometry.cpp:109:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_coord_geometry.cpp:45:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry.cpp:68:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry.cpp:83:24: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry.cpp:140:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry.cpp:186:30: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry.cpp:68:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/tests/test_modifier_coord_geometry_old.cpp:57:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_geometry_old.cpp:153:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:24:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:95:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_MODIFY_PERSPECTIVE [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:117:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_MODIFY_PERSPECTIVE [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:139:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_MODIFY_PERSPECTIVE [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:160:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_MODIFY_PERSPECTIVE [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:176:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_MODIFY_PERSPECTIVE [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:198:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_MODIFY_PERSPECTIVE [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:216:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:39:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HomeDataDir [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:45:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HomeDataDir [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:90:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_NO_ERROR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:95:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_NO_ERROR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:127:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:245:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_MIN_DATABASE_VERSION [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:785:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:832:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:867:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:890:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:1167:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Cameras [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:1203:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_SEARCH_LOOSE [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:1433:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_SEARCH_LOOSE [valueFlowBailoutIncompleteVar] lensfun-0.3.95/libs/lensfun/database.cpp:1505:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Mounts [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_geometry_old.cpp:113:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_coord_geometry_old.cpp:45:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry_old.cpp:72:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry_old.cpp:87:24: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry_old.cpp:144:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry_old.cpp:190:30: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_geometry_old.cpp:72:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:60:40: style: Parameter 'lfFix' can be declared as pointer to const. However it seems that 'test_mod_coord_pc_svd' is a callback function, if 'lfFix' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:221:26: note: You might need to cast the function pointer here lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:60:40: note: Parameter 'lfFix' can be declared as pointer to const lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:97:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:99:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:119:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:121:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:141:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:143:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:178:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:180:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:200:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:202:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:157:25: style: Variable 'epsilon' is assigned a value that is never used. [unreadVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:157:17: style: Variable 'epsilon' is assigned a value that is never used. [unreadVariable] lensfun-0.3.95/tests/test_modifier_coord_scale.cpp:46:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_scale.cpp:131:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:24:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:46:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:227:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_scale.cpp:101:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_coord_scale.cpp:41:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_scale.cpp:61:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_scale.cpp:75:24: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_scale.cpp:157:28: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_scale.cpp:61:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:71:40: style: Parameter 'lfFix' can be declared as pointer to const. However it seems that 'test_mod_coord_pc_svd' is a callback function, if 'lfFix' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:232:26: note: You might need to cast the function pointer here lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:71:40: note: Parameter 'lfFix' can be declared as pointer to const lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:108:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:110:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:130:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:132:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:152:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:154:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:189:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:191:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:211:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:213:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:168:25: style: Variable 'epsilon' is assigned a value that is never used. [unreadVariable] lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:168:17: style: Variable 'epsilon' is assigned a value that is never used. [unreadVariable] lensfun-0.3.95/tests/test_modifier_coord_scale_old.cpp:46:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_scale_old.cpp:140:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_tiny_image.cpp:59:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_scale_old.cpp:110:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_coord_tiny_image.cpp:48:11: style: Variable 'expected_coordinates' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_coord_scale_old.cpp:42:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_scale_old.cpp:69:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_scale_old.cpp:84:24: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_scale_old.cpp:166:28: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_coord_scale_old.cpp:69:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/tests/test_modifier_coord_tiny_image_old.cpp:27:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_tiny_image_old.cpp:65:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_coord_tiny_image_old.cpp:54:11: style: Variable 'expected_coordinates' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_old.cpp:19:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_old.cpp:47:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_UNKNOWN [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_old.cpp:88:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_UNKNOWN [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_old.cpp:130:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_performance.cpp:68:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_performance.cpp:95:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_performance.cpp:72:27: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_performance.cpp:74:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_performance.cpp:76:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_performance.cpp:36:112: style: Parameter 'coords' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/tests/test_modifier_regression.cpp:305:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression.cpp:329:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:41:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:73:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:103:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_F32 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:133:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U16 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:163:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U16 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:197:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U16 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:232:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_PF_U16 [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:256:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_regression.cpp:47:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:48:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:102:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:103:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:132:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:133:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:162:12: style: Variable 'expected' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:217:11: style: Variable 'expected' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:251:11: style: Variable 'expected' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:310:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression.cpp:311:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:47:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:48:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:79:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:80:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:109:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:110:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:139:12: style: Variable 'expected' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:169:11: style: Variable 'expected' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:203:11: style: Variable 'expected' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:238:11: style: Variable 'expected_x' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_regression_old.cpp:239:11: style: Variable 'expected_y' can be declared as const array [constVariable] lensfun-0.3.95/tests/test_modifier_subpix.cpp:46:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_subpix.cpp:147:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_subpix_old.cpp:46:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LF_RECTILINEAR [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_subpix_old.cpp:152:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lensfun-0.3.95/tests/test_modifier_subpix.cpp:109:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_subpix.cpp:43:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix.cpp:68:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix.cpp:83:24: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix.cpp:139:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix.cpp:183:28: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix.cpp:68:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/tests/test_modifier_subpix_old.cpp:114:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] lensfun-0.3.95/tests/test_modifier_subpix_old.cpp:43:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix_old.cpp:73:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix_old.cpp:88:24: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix_old.cpp:144:22: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix_old.cpp:186:28: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/tests/test_modifier_subpix_old.cpp:73:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/libs/lensfun/database.cpp:215:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:631:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:692:25: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:1177:32: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:1222:32: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:1389:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:1390:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:1399:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:1400:18: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:1480:30: style: C-style pointer casting [cstyleCast] lensfun-0.3.95/libs/lensfun/database.cpp:1132:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] lensfun-0.3.95/libs/lensfun/database.cpp:1444:9: style: The scope of the variable 'score' can be reduced. [variableScope] lensfun-0.3.95/libs/lensfun/database.cpp:1264:20: style: Variable 'mc' can be declared as reference to const [constVariableReference] lensfun-0.3.95/libs/lensfun/database.cpp:1135:38: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/libs/lensfun/database.cpp:1135:51: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] lensfun-0.3.95/libs/lensfun/database.cpp:1189:42: style: Parameter 'a' can be declared as pointer to const. However it seems that '_lf_compare_camera_score' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/libs/lensfun/database.cpp:1218:59: note: You might need to cast the function pointer here lensfun-0.3.95/libs/lensfun/database.cpp:1189:42: note: Parameter 'a' can be declared as pointer to const lensfun-0.3.95/libs/lensfun/database.cpp:1189:55: style: Parameter 'b' can be declared as pointer to const. However it seems that '_lf_compare_camera_score' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/libs/lensfun/database.cpp:1218:59: note: You might need to cast the function pointer here lensfun-0.3.95/libs/lensfun/database.cpp:1189:55: note: Parameter 'b' can be declared as pointer to const lensfun-0.3.95/libs/lensfun/database.cpp:1389:13: style: Variable 'i1' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/libs/lensfun/database.cpp:1390:13: style: Variable 'i2' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/libs/lensfun/database.cpp:1399:13: style: Variable 'i1' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/libs/lensfun/database.cpp:1400:13: style: Variable 'i2' can be declared as pointer to const [constVariablePointer] lensfun-0.3.95/libs/lensfun/database.cpp:1409:37: style: Parameter 'a' can be declared as pointer to const. However it seems that '_lf_sort_lens_details' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/libs/lensfun/database.cpp:1474:57: note: You might need to cast the function pointer here lensfun-0.3.95/libs/lensfun/database.cpp:1409:37: note: Parameter 'a' can be declared as pointer to const lensfun-0.3.95/libs/lensfun/database.cpp:1409:48: style: Parameter 'b' can be declared as pointer to const. However it seems that '_lf_sort_lens_details' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lensfun-0.3.95/libs/lensfun/database.cpp:1474:57: note: You might need to cast the function pointer here lensfun-0.3.95/libs/lensfun/database.cpp:1409:48: note: Parameter 'b' can be declared as pointer to const lensfun-0.3.95/libs/lensfun/database.cpp:1458:21: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] lensfun-0.3.95/libs/lensfun/database.cpp:1507:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] diff: head lensfun-0.3.95/apps/lenstool/rgbpixel.h:64:26: style: C-style pointer casting [cstyleCast] head lensfun-0.3.95/apps/lenstool/rgbpixel.h:71:34: style: C-style pointer casting [cstyleCast] head lensfun-0.3.95/apps/lenstool/rgbpixel.h:77:51: style: C-style pointer casting [cstyleCast] head lensfun-0.3.95/apps/lenstool/rgbpixel.h:89:26: style: C-style pointer casting [cstyleCast] head lensfun-0.3.95/libs/lensfun/auxfun.cpp:363:21: performance:inconclusive: Technically the member function 'lfFuzzyStrCmp::Free' can be static (but you may consider moving to unnamed namespace). [functionStatic] lensfun-0.3.95/libs/lensfun/lensfunprv.h:220:10: note: Technically the member function 'lfFuzzyStrCmp::Free' can be static (but you may consider moving to unnamed namespace). lensfun-0.3.95/libs/lensfun/auxfun.cpp:363:21: note: Technically the member function 'lfFuzzyStrCmp::Free' can be static (but you may consider moving to unnamed namespace). head lensfun-0.3.95/libs/lensfun/auxfun.cpp:370:21: performance:inconclusive: Technically the member function 'lfFuzzyStrCmp::Split' can be static (but you may consider moving to unnamed namespace). [functionStatic] lensfun-0.3.95/libs/lensfun/lensfunprv.h:219:10: note: Technically the member function 'lfFuzzyStrCmp::Split' can be static (but you may consider moving to unnamed namespace). lensfun-0.3.95/libs/lensfun/auxfun.cpp:370:21: note: Technically the member function 'lfFuzzyStrCmp::Split' can be static (but you may consider moving to unnamed namespace). 2.17.0 lensfun-0.3.95/libs/lensfun/database.cpp:894:22: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] lensfun-0.3.95/libs/lensfun/database.cpp:892:42: note: Assuming allocation function fails lensfun-0.3.95/libs/lensfun/database.cpp:892:42: note: Assignment 'output=g_string_sized_new(1024)', assigned value is 0 lensfun-0.3.95/libs/lensfun/database.cpp:894:22: note: Null pointer dereference 2.17.0 lensfun-0.3.95/libs/lensfun/database.cpp:895:22: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] lensfun-0.3.95/libs/lensfun/database.cpp:892:42: note: Assuming allocation function fails lensfun-0.3.95/libs/lensfun/database.cpp:892:42: note: Assignment 'output=g_string_sized_new(1024)', assigned value is 0 lensfun-0.3.95/libs/lensfun/database.cpp:895:22: note: Null pointer dereference 2.17.0 lensfun-0.3.95/libs/lensfun/database.cpp:899:26: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] lensfun-0.3.95/libs/lensfun/database.cpp:892:42: note: Assuming allocation function fails lensfun-0.3.95/libs/lensfun/database.cpp:892:42: note: Assignment 'output=g_string_sized_new(1024)', assigned value is 0 lensfun-0.3.95/libs/lensfun/database.cpp:897:19: note: Assuming container is not empty lensfun-0.3.95/libs/lensfun/database.cpp:899:26: note: Null pointer dereference 2.17.0 lensfun-0.3.95/libs/lensfun/lensfunprv.h:219:10: performance:inconclusive: Technically the member function 'lfFuzzyStrCmp::Split' can be static (but you may consider moving to unnamed namespace). [functionStatic] lensfun-0.3.95/libs/lensfun/auxfun.cpp:370:21: note: Technically the member function 'lfFuzzyStrCmp::Split' can be static (but you may consider moving to unnamed namespace). lensfun-0.3.95/libs/lensfun/lensfunprv.h:219:10: note: Technically the member function 'lfFuzzyStrCmp::Split' can be static (but you may consider moving to unnamed namespace). 2.17.0 lensfun-0.3.95/libs/lensfun/lensfunprv.h:220:10: performance:inconclusive: Technically the member function 'lfFuzzyStrCmp::Free' can be static (but you may consider moving to unnamed namespace). [functionStatic] lensfun-0.3.95/libs/lensfun/auxfun.cpp:363:21: note: Technically the member function 'lfFuzzyStrCmp::Free' can be static (but you may consider moving to unnamed namespace). lensfun-0.3.95/libs/lensfun/lensfunprv.h:220:10: note: Technically the member function 'lfFuzzyStrCmp::Free' can be static (but you may consider moving to unnamed namespace). head lensfun-0.3.95/tests/test_modifier_coord_perspective_correction.cpp:157:17: style: Variable 'epsilon' is assigned a value that is never used. [unreadVariable] head lensfun-0.3.95/tests/test_modifier_coord_perspective_correction_old.cpp:168:17: style: Variable 'epsilon' is assigned a value that is never used. [unreadVariable] DONE