2025-08-29 11:43 ftp://ftp.de.debian.org/debian/pool/main/v/viking/viking_1.10.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=zlib --library=sqlite3 --library=libcurl --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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 327ef3c (2025-08-29 11:03:21 +0200) count: 230 2032 elapsed-time: 1.8 16.6 head-timing-info: old-timing-info: head results: viking-1.10/src/vik_compat.h:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/src/vik_compat.h:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/src/coords.c:79:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] viking-1.10/src/degrees_converters.c:40:12: style: Redundant initialization for 'sign_c'. The initialized value is overwritten before it is read. [redundantInitialization] viking-1.10/src/degrees_converters.c:35:16: note: sign_c is initialized viking-1.10/src/degrees_converters.c:40:12: note: sign_c is overwritten viking-1.10/src/degrees_converters.c:77:12: style: Redundant initialization for 'sign_c'. The initialized value is overwritten before it is read. [redundantInitialization] viking-1.10/src/degrees_converters.c:71:16: note: sign_c is initialized viking-1.10/src/degrees_converters.c:77:12: note: sign_c is overwritten viking-1.10/src/degrees_converters.c:119:12: style: Redundant initialization for 'sign_c'. The initialized value is overwritten before it is read. [redundantInitialization] viking-1.10/src/degrees_converters.c:113:16: note: sign_c is initialized viking-1.10/src/degrees_converters.c:119:12: note: sign_c is overwritten viking-1.10/src/dir.c:64:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] viking-1.10/src/dir.c:84:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] viking-1.10/src/dir.c:137:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SEARCHPATH_SEPARATOR_S [valueFlowBailoutIncompleteVar] viking-1.10/src/fileutils.c:134:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR [valueFlowBailoutIncompleteVar] viking-1.10/src/fileutils.c:103:48: style: Parameter 'currentDirectory' can be declared as pointer to const [constParameterPointer] viking-1.10/src/fileutils.c:103:73: style: Parameter 'absoluteFilename' can be declared as pointer to const [constParameterPointer] viking-1.10/src/libjpeg/jpeg-data.c:162:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JPEG_MARKER_SOS [valueFlowBailoutIncompleteVar] viking-1.10/src/libjpeg/jpeg-data.c:204:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIF_LOG_CODE_CORRUPT_DATA [valueFlowBailoutIncompleteVar] viking-1.10/src/libjpeg/jpeg-data.c:301:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIF_LOG_CODE_CORRUPT_DATA [valueFlowBailoutIncompleteVar] viking-1.10/src/libjpeg/jpeg-data.c:447:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JPEG_MARKER_APP1 [valueFlowBailoutIncompleteVar] viking-1.10/src/libjpeg/jpeg-data.c:463:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JPEG_MARKER_APP1 [valueFlowBailoutIncompleteVar] viking-1.10/src/libjpeg/jpeg-data.c:402:2: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] viking-1.10/src/libjpeg/jpeg-data.c:406:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] viking-1.10/src/libjpeg/jpeg-data.c:418:4: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] viking-1.10/src/libjpeg/jpeg-data.c:113:71: style:inconclusive: Function 'jpeg_data_save_data' argument 3 names different: declaration 'size' definition 'ds'. [funcArgNamesDifferent] viking-1.10/src/libjpeg/jpeg-data.h:78:22: note: Function 'jpeg_data_save_data' argument 3 names different: declaration 'size' definition 'ds'. viking-1.10/src/libjpeg/jpeg-data.c:113:71: note: Function 'jpeg_data_save_data' argument 3 names different: declaration 'size' definition 'ds'. viking-1.10/src/libjpeg/jpeg-data.c:173:47: style:inconclusive: Function 'jpeg_data_new_from_data' argument 1 names different: declaration 'data' definition 'd'. [funcArgNamesDifferent] viking-1.10/src/libjpeg/jpeg-data.h:68:57: note: Function 'jpeg_data_new_from_data' argument 1 names different: declaration 'data' definition 'd'. viking-1.10/src/libjpeg/jpeg-data.c:173:47: note: Function 'jpeg_data_new_from_data' argument 1 names different: declaration 'data' definition 'd'. viking-1.10/src/mapnik_interface.cpp:120:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAPNIK_VERSION_STRING [valueFlowBailoutIncompleteVar] viking-1.10/src/mapnik_interface.cpp:187:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAPNIK_GMERC_PROJ [valueFlowBailoutIncompleteVar] viking-1.10/src/mapnik_interface.cpp:257:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] viking-1.10/src/mapnik_interface.cpp:331:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAPNIK_VERSION_STRING [valueFlowBailoutIncompleteVar] viking-1.10/src/mapnik_interface.cpp:203:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] viking-1.10/src/mapnik_interface.cpp:100:24: style: C-style pointer casting [cstyleCast] viking-1.10/src/mapnik_interface.cpp:153:31: style: C-style pointer casting [cstyleCast] viking-1.10/src/mapnik_interface.cpp:253:37: style: C-style pointer casting [cstyleCast] viking-1.10/src/mapnik_interface.cpp:303:28: style: C-style pointer casting [cstyleCast] viking-1.10/src/mapnik_interface.cpp:112:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] viking-1.10/src/mapnik_interface.cpp:329:33: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] viking-1.10/src/mapnik_interface.cpp:330:33: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] viking-1.10/src/mapnik_interface.cpp:79:65: style: Parameter 'mic' can be declared as pointer to const [constParameterPointer] viking-1.10/src/mapnik_interface.cpp:83:54: style: Parameter 'mi' can be declared as pointer to const [constParameterPointer] viking-1.10/src/mapnik_interface.cpp:276:58: style: Parameter 'mi' can be declared as pointer to const [constParameterPointer] viking-1.10/src/mapnik_interface.cpp:148:79: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] viking-1.10/src/mapnik_interface.cpp:294:81: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] viking-1.10/src/md5_hash.c:58:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] viking-1.10/src/metatile.c:102:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] viking-1.10/src/misc/gtkhtml.c:102:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] viking-1.10/src/misc/gtkhtml.c:119:9: style: Unused variable: first_end [unusedVariable] viking-1.10/src/misc/gtkhtml.c:119:21: style: Unused variable: colon [unusedVariable] viking-1.10/src/metatile.c:165:19: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] viking-1.10/src/metatile.c:165:19: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] viking-1.10/src/metatile.c:124:21: style: Variable 'ignored' is assigned a value that is never used. [unreadVariable] viking-1.10/src/metatile.c:135:17: style: Variable 'ignored' is assigned a value that is never used. [unreadVariable] viking-1.10/src/metatile.c:142:21: style: Variable 'ignored' is assigned a value that is never used. [unreadVariable] viking-1.10/src/metatile.c:153:17: style: Variable 'ignored' is assigned a value that is never used. [unreadVariable] viking-1.10/src/metatile.c:165:17: style: Variable 'ignored' is assigned a value that is never used. [unreadVariable] viking-1.10/src/metatile.c:166:19: style: Variable 'tile_size' is assigned a value that is never used. [unreadVariable] viking-1.10/src/metatile.c:172:17: style: Variable 'ignored' is assigned a value that is never used. [unreadVariable] viking-1.10/src/metatile.c:182:21: style: Variable 'ignored' is assigned a value that is never used. [unreadVariable] viking-1.10/src/icons/icons.c:9275:70: style: union member 'Anonymous0::alignment' is never used. [unusedStructMember] viking-1.10/src/icons/icons.c:9275:94: style: union member 'Anonymous0::ptr' is never used. [unusedStructMember] viking-1.10/src/misc/strtod.c:90:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] viking-1.10/src/misc/fpconv.c:333:24: style:inconclusive: Function 'fpconv_dtoa' argument 1 names different: declaration 'fp' definition 'd'. [funcArgNamesDifferent] viking-1.10/src/misc/fpconv.h:30:24: note: Function 'fpconv_dtoa' argument 1 names different: declaration 'fp' definition 'd'. viking-1.10/src/misc/fpconv.c:333:24: note: Function 'fpconv_dtoa' argument 1 names different: declaration 'fp' definition 'd'. viking-1.10/src/misc/fpconv.c:67:43: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] viking-1.10/src/misc/fpconv.c:93:24: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] viking-1.10/src/misc/fpconv.c:93:31: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] viking-1.10/src/misc/fpconv.c:124:32: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] viking-1.10/src/misc/fpconv.c:124:40: style: Parameter 'upper' can be declared as pointer to const [constParameterPointer] viking-1.10/src/misc/fpconv.c:124:51: style: Parameter 'lower' can be declared as pointer to const [constParameterPointer] viking-1.10/src/misc/fpconv.c:161:15: style: Variable 'unit' can be declared as pointer to const [constVariablePointer] viking-1.10/src/misc/fpconv.c:209:30: style: Parameter 'digits' can be declared as pointer to const [constParameterPointer] viking-1.10/src/misc/fpconv.c:29:18: style: union member 'Anonymous0::dbl' is never used. [unusedStructMember] viking-1.10/src/misc/kdtree.c:215:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] viking-1.10/src/misc/kdtree.c:464:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] viking-1.10/src/misc/kdtree.c:566:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] viking-1.10/src/misc/kdtree.c:162:39: style:inconclusive: Function 'insert_rec' argument 1 names different: declaration 'node' definition 'nptr'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.c:87:39: note: Function 'insert_rec' argument 1 names different: declaration 'node' definition 'nptr'. viking-1.10/src/misc/kdtree.c:162:39: note: Function 'insert_rec' argument 1 names different: declaration 'node' definition 'nptr'. viking-1.10/src/misc/kdtree.c:399:41: style:inconclusive: Function 'kd_nearest' argument 1 names different: declaration 'tree' definition 'kd'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:63:41: note: Function 'kd_nearest' argument 1 names different: declaration 'tree' definition 'kd'. viking-1.10/src/misc/kdtree.c:399:41: note: Function 'kd_nearest' argument 1 names different: declaration 'tree' definition 'kd'. viking-1.10/src/misc/kdtree.c:532:47: style:inconclusive: Function 'kd_nearest_range' argument 1 names different: declaration 'tree' definition 'kd'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:91:47: note: Function 'kd_nearest_range' argument 1 names different: declaration 'tree' definition 'kd'. viking-1.10/src/misc/kdtree.c:532:47: note: Function 'kd_nearest_range' argument 1 names different: declaration 'tree' definition 'kd'. viking-1.10/src/misc/kdtree.c:556:48: style:inconclusive: Function 'kd_nearest_rangef' argument 1 names different: declaration 'tree' definition 'kd'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:92:48: note: Function 'kd_nearest_rangef' argument 1 names different: declaration 'tree' definition 'kd'. viking-1.10/src/misc/kdtree.c:556:48: note: Function 'kd_nearest_rangef' argument 1 names different: declaration 'tree' definition 'kd'. viking-1.10/src/misc/kdtree.c:608:32: style:inconclusive: Function 'kd_res_free' argument 1 names different: declaration 'set' definition 'rset'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:97:32: note: Function 'kd_res_free' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:608:32: note: Function 'kd_res_free' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:620:34: style:inconclusive: Function 'kd_res_rewind' argument 1 names different: declaration 'set' definition 'rset'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:103:34: note: Function 'kd_res_rewind' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:620:34: note: Function 'kd_res_rewind' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:625:30: style:inconclusive: Function 'kd_res_end' argument 1 names different: declaration 'set' definition 'rset'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:106:30: note: Function 'kd_res_end' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:625:30: note: Function 'kd_res_end' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:630:31: style:inconclusive: Function 'kd_res_next' argument 1 names different: declaration 'set' definition 'rset'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:111:31: note: Function 'kd_res_next' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:630:31: note: Function 'kd_res_next' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:636:33: style:inconclusive: Function 'kd_res_item' argument 1 names different: declaration 'set' definition 'rset'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:116:33: note: Function 'kd_res_item' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:636:33: note: Function 'kd_res_item' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:647:34: style:inconclusive: Function 'kd_res_itemf' argument 1 names different: declaration 'set' definition 'rset'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:117:34: note: Function 'kd_res_itemf' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:647:34: note: Function 'kd_res_itemf' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:661:34: style:inconclusive: Function 'kd_res_item3' argument 1 names different: declaration 'set' definition 'rset'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:118:34: note: Function 'kd_res_item3' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:661:34: note: Function 'kd_res_item3' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:671:35: style:inconclusive: Function 'kd_res_item3f' argument 1 names different: declaration 'set' definition 'rset'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.h:119:35: note: Function 'kd_res_item3f' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:671:35: note: Function 'kd_res_item3f' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:825:41: style:inconclusive: Function 'clear_results' argument 1 names different: declaration 'set' definition 'rset'. [funcArgNamesDifferent] viking-1.10/src/misc/kdtree.c:89:41: note: Function 'clear_results' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:825:41: note: Function 'clear_results' argument 1 names different: declaration 'set' definition 'rset'. viking-1.10/src/misc/kdtree.c:615:31: style: Parameter 'set' can be declared as pointer to const [constParameterPointer] viking-1.10/src/misc/kdtree.c:625:30: style: Parameter 'rset' can be declared as pointer to const [constParameterPointer] viking-1.10/src/misc/heatmap.c:53:12: warning: If memory allocation fails, then there is a possible null pointer dereference: hm [nullPointerOutOfMemory] viking-1.10/src/misc/heatmap.c:61:39: note: Assuming allocation function fails viking-1.10/src/misc/heatmap.c:61:21: note: Assignment 'hm=(struct heatmap_t*)malloc(sizeof(struct heatmap_t))', assigned value is 0 viking-1.10/src/misc/heatmap.c:62:18: note: Calling function 'heatmap_init', 1st argument 'hm' value is 0 viking-1.10/src/misc/heatmap.c:53:12: note: Null pointer dereference viking-1.10/src/misc/heatmap.c:54:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hm [nullPointerOutOfMemory] viking-1.10/src/misc/heatmap.c:61:39: note: Assuming allocation function fails viking-1.10/src/misc/heatmap.c:61:21: note: Assignment 'hm=(struct heatmap_t*)malloc(sizeof(struct heatmap_t))', assigned value is 0 viking-1.10/src/misc/heatmap.c:62:18: note: Calling function 'heatmap_init', 1st argument 'hm' value is 0 viking-1.10/src/misc/heatmap.c:54:5: note: Null pointer dereference viking-1.10/src/misc/heatmap.c:55:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hm [nullPointerOutOfMemory] viking-1.10/src/misc/heatmap.c:61:39: note: Assuming allocation function fails viking-1.10/src/misc/heatmap.c:61:21: note: Assignment 'hm=(struct heatmap_t*)malloc(sizeof(struct heatmap_t))', assigned value is 0 viking-1.10/src/misc/heatmap.c:62:18: note: Calling function 'heatmap_init', 1st argument 'hm' value is 0 viking-1.10/src/misc/heatmap.c:55:5: note: Null pointer dereference viking-1.10/src/misc/heatmap.c:56:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hm [nullPointerOutOfMemory] viking-1.10/src/misc/heatmap.c:61:39: note: Assuming allocation function fails viking-1.10/src/misc/heatmap.c:61:21: note: Assignment 'hm=(struct heatmap_t*)malloc(sizeof(struct heatmap_t))', assigned value is 0 viking-1.10/src/misc/heatmap.c:62:18: note: Calling function 'heatmap_init', 1st argument 'hm' value is 0 viking-1.10/src/misc/heatmap.c:56:5: note: Null pointer dereference viking-1.10/src/misc/heatmap.c:251:12: warning: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] viking-1.10/src/misc/heatmap.c:250:33: note: Assuming allocation function fails viking-1.10/src/misc/heatmap.c:250:19: note: Assignment 'copy=(float*)malloc(sizeof(float)*w*h)', assigned value is 0 viking-1.10/src/misc/heatmap.c:251:12: note: Null pointer dereference viking-1.10/src/misc/heatmap.c:260:45: style:inconclusive: Function 'heatmap_stamp_gen' argument 1 names different: declaration 'radius' definition 'r'. [funcArgNamesDifferent] viking-1.10/src/misc/heatmap.h:137:45: note: Function 'heatmap_stamp_gen' argument 1 names different: declaration 'radius' definition 'r'. viking-1.10/src/misc/heatmap.c:260:45: note: Function 'heatmap_stamp_gen' argument 1 names different: declaration 'radius' definition 'r'. viking-1.10/src/misc/heatmap.c:265:55: style:inconclusive: Function 'heatmap_stamp_gen_nonlinear' argument 1 names different: declaration 'radius' definition 'r'. [funcArgNamesDifferent] viking-1.10/src/misc/heatmap.h:150:55: note: Function 'heatmap_stamp_gen_nonlinear' argument 1 names different: declaration 'radius' definition 'r'. viking-1.10/src/misc/heatmap.c:265:55: note: Function 'heatmap_stamp_gen_nonlinear' argument 1 names different: declaration 'radius' definition 'r'. viking-1.10/src/misc/heatmap.c:297:70: style:inconclusive: Function 'heatmap_colorscheme_load' argument 1 names different: declaration 'colors' definition 'in_colors'. [funcArgNamesDifferent] viking-1.10/src/misc/heatmap.h:162:70: note: Function 'heatmap_colorscheme_load' argument 1 names different: declaration 'colors' definition 'in_colors'. viking-1.10/src/misc/heatmap.c:297:70: note: Function 'heatmap_colorscheme_load' argument 1 names different: declaration 'colors' definition 'in_colors'. viking-1.10/src/misc/heatmap.c:248:68: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] viking-1.10/src/settings.c:43:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_KEEP_COMMENTS [valueFlowBailoutIncompleteVar] viking-1.10/src/settings.c:87:2: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] viking-1.10/src/util.c:115:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] viking-1.10/src/util.c:211:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] viking-1.10/src/util.c:232:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] viking-1.10/src/util.c:262:32: style: Parameter 'tm' can be declared as pointer to const [constParameterPointer] viking-1.10/src/util.c:358:49: style: Parameter 'aa' can be declared as pointer to const [constParameterPointer] viking-1.10/src/util.c:358:60: style: Parameter 'bb' can be declared as pointer to const [constParameterPointer] viking-1.10/src/vikcoord.c:142:43: style: Parameter 'center' can be declared as pointer to const [constParameterPointer] viking-1.10/src/vikcoord.c:142:66: style: Parameter 'dist' can be declared as pointer to const [constParameterPointer] viking-1.10/src/vikcoord.c:154:43: style: Parameter 'center' can be declared as pointer to const [constParameterPointer] viking-1.10/src/vikcoord.c:154:66: style: Parameter 'dist' can be declared as pointer to const [constParameterPointer] viking-1.10/src/vikfilelist.c:33:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/src/vikfilelist.c:33:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/src/vikgobjectbuilder.c:65:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vik_gobject_builder_parent_class [valueFlowBailoutIncompleteVar] viking-1.10/src/vikgobjectbuilder.c:91:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] viking-1.10/src/vikgobjectbuilder.c:151:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] viking-1.10/src/vikgobjectbuilder.c:177:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] viking-1.10/src/vikgobjectbuilder.c:241:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] viking-1.10/src/vikgobjectbuilder.c:55:46: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] viking-1.10/src/vikgobjectbuilder.c:69:52: style: Parameter 'self' can be declared as pointer to const. However it seems that 'vik_gobject_builder_new_object' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgobjectbuilder.c:81:22: note: You might need to cast the function pointer here viking-1.10/src/vikgobjectbuilder.c:69:52: note: Parameter 'self' can be declared as pointer to const viking-1.10/src/vikgobjectbuilder.c:69:67: style: Parameter 'object' can be declared as pointer to const. However it seems that 'vik_gobject_builder_new_object' is a callback function, if 'object' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgobjectbuilder.c:81:22: note: You might need to cast the function pointer here viking-1.10/src/vikgobjectbuilder.c:69:67: note: Parameter 'object' can be declared as pointer to const viking-1.10/src/vikradiogroup.c:33:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/src/vikradiogroup.c:33:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/src/vikwaypoint.c:37:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] viking-1.10/src/vikwaypoint.c:271:69: style:inconclusive: Function 'vik_waypoint_marshall' argument 3 names different: declaration 'len' definition 'datalen'. [funcArgNamesDifferent] viking-1.10/src/vikwaypoint.h:95:69: note: Function 'vik_waypoint_marshall' argument 3 names different: declaration 'len' definition 'datalen'. viking-1.10/src/vikwaypoint.c:271:69: note: Function 'vik_waypoint_marshall' argument 3 names different: declaration 'len' definition 'datalen'. viking-1.10/src/viktrack.c:225:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:295:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:347:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:367:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable newsegment [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:384:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:403:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:421:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:452:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:472:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:554:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:581:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable newsegment [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:609:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable newsegment [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:653:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable newsegment [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:673:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable newsegment [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:713:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:750:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:783:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:819:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:851:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable speed [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:871:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable heart_rate [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:897:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable heart_rate [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:917:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable heart_rate [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:981:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1066:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cadence [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1084:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cadence [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1104:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cadence [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1130:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable temp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1159:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable temp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1177:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable temp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1196:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable temp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1216:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable power [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1235:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable power [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1255:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable power [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1271:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1300:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable altitude [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1431:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1487:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1561:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1635:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1717:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1760:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1801:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1851:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable speed [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1892:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable altitude [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:1915:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable altitude [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:2019:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:2110:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:2207:90: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:2232:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable altitude [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:2321:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:2502:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] viking-1.10/test/geotag_write.c:15:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIK_COORD_LATLON [valueFlowBailoutIncompleteVar] viking-1.10/test/geotag_write.c:18:64: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] viking-1.10/test/test_babel.c:8:56: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'print_file_format' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/test/test_babel.c:28:39: note: You might need to cast the function pointer here viking-1.10/test/test_babel.c:8:56: note: Parameter 'user_data' can be declared as pointer to const viking-1.10/test/test_babel.c:10:13: style: Variable 'file' can be declared as pointer to const [constVariablePointer] viking-1.10/test/test_babel.c:18:25: style: Parameter 'argv' can be declared as const array [constParameter] viking-1.10/test/test_coord_conversion.c:31:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/test_coord_conversion.c:31:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/test_decimal_output.c:17:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/test_decimal_output.c:17:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/test_metatile.c:36:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable METATILE_MAX_SIZE [valueFlowBailoutIncompleteVar] viking-1.10/test/test_parse_latlon.c:12:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/test_parse_latlon.c:12:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/test_time.c:16:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/test_time.c:16:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/vik2vik.c:25:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/vik2vik.c:25:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] viking-1.10/test/test_vikgotoxmltool.c:7:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] viking-1.10/test/test_vikgotoxmltool.c:17:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIK_GOTO_XML_TOOL_TYPE [valueFlowBailoutIncompleteVar] viking-1.10/src/viktrack.c:629:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] viking-1.10/src/viktrack.c:629:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] viking-1.10/src/viktrack.c:397:56: style:inconclusive: Function 'vik_track_get_dup_point_count' argument 1 names different: declaration 'vt' definition 'tr'. [funcArgNamesDifferent] viking-1.10/src/viktrack.h:140:56: note: Function 'vik_track_get_dup_point_count' argument 1 names different: declaration 'vt' definition 'tr'. viking-1.10/src/viktrack.c:397:56: note: Function 'vik_track_get_dup_point_count' argument 1 names different: declaration 'vt' definition 'tr'. viking-1.10/src/viktrack.c:415:48: style:inconclusive: Function 'vik_track_remove_dup_points' argument 1 names different: declaration 'vt' definition 'tr'. [funcArgNamesDifferent] viking-1.10/src/viktrack.h:141:48: note: Function 'vik_track_remove_dup_points' argument 1 names different: declaration 'vt' definition 'tr'. viking-1.10/src/viktrack.c:415:48: note: Function 'vik_track_remove_dup_points' argument 1 names different: declaration 'vt' definition 'tr'. viking-1.10/src/viktrack.c:446:62: style:inconclusive: Function 'vik_track_get_same_time_point_count' argument 1 names different: declaration 'vt' definition 'tr'. [funcArgNamesDifferent] viking-1.10/src/viktrack.h:142:62: note: Function 'vik_track_get_same_time_point_count' argument 1 names different: declaration 'vt' definition 'tr'. viking-1.10/src/viktrack.c:446:62: note: Function 'vik_track_get_same_time_point_count' argument 1 names different: declaration 'vt' definition 'tr'. viking-1.10/src/viktrack.c:466:54: style:inconclusive: Function 'vik_track_remove_same_time_points' argument 1 names different: declaration 'vt' definition 'tr'. [funcArgNamesDifferent] viking-1.10/src/viktrack.h:143:54: note: Function 'vik_track_remove_same_time_points' argument 1 names different: declaration 'vt' definition 'tr'. viking-1.10/src/viktrack.c:466:54: note: Function 'vik_track_remove_same_time_points' argument 1 names different: declaration 'vt' definition 'tr'. viking-1.10/src/viktrack.c:587:52: style:inconclusive: Function 'vik_track_split_into_segments' argument 1 names different: declaration 'tr' definition 't'. [funcArgNamesDifferent] viking-1.10/src/viktrack.h:133:52: note: Function 'vik_track_split_into_segments' argument 1 names different: declaration 'tr' definition 't'. viking-1.10/src/viktrack.c:587:52: note: Function 'vik_track_split_into_segments' argument 1 names different: declaration 'tr' definition 't'. viking-1.10/src/viktrack.c:693:62: style:inconclusive: Function 'vik_track_get_duration' argument 2 names different: declaration 'include_segments' definition 'segment_gaps'. [funcArgNamesDifferent] viking-1.10/src/viktrack.h:136:62: note: Function 'vik_track_get_duration' argument 2 names different: declaration 'include_segments' definition 'segment_gaps'. viking-1.10/src/viktrack.c:693:62: note: Function 'vik_track_get_duration' argument 2 names different: declaration 'include_segments' definition 'segment_gaps'. viking-1.10/src/viktrack.c:1795:84: style:inconclusive: Function 'vik_track_get_closest_tp_by_percentage_time' argument 2 names different: declaration 'reldist' definition 'reltime'. [funcArgNamesDifferent] viking-1.10/src/viktrack.h:177:84: note: Function 'vik_track_get_closest_tp_by_percentage_time' argument 2 names different: declaration 'reldist' definition 'reltime'. viking-1.10/src/viktrack.c:1795:84: note: Function 'vik_track_get_closest_tp_by_percentage_time' argument 2 names different: declaration 'reldist' definition 'reltime'. viking-1.10/src/viktrack.c:1995:63: style:inconclusive: Function 'vik_track_marshall' argument 3 names different: declaration 'len' definition 'datalen'. [funcArgNamesDifferent] viking-1.10/src/viktrack.h:199:63: note: Function 'vik_track_marshall' argument 3 names different: declaration 'len' definition 'datalen'. viking-1.10/src/viktrack.c:1995:63: note: Function 'vik_track_marshall' argument 3 names different: declaration 'len' definition 'datalen'. viking-1.10/src/viktrack.c:449:10: style: Variable 'iter' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:576:10: style: Variable 'iter' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:587:52: style: Parameter 't' can be declared as pointer to const [constParameterPointer] viking-1.10/src/viktrack.c:702:24: style: Variable 'trkpt_last' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:730:43: style: Parameter 'trk' can be declared as pointer to const [constParameterPointer] viking-1.10/src/viktrack.c:946:20: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:1000:20: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:1419:22: style: Variable 'tp1' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:1420:22: style: Variable 'tp2' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:1709:53: style: Parameter 'trk' can be declared as pointer to const [constParameterPointer] viking-1.10/src/viktrack.c:1944:75: style: Parameter 'tp' can be declared as pointer to const [constParameterPointer] viking-1.10/src/viktrack.c:1980:22: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:2287:43: style: Parameter 'tp2' can be declared as pointer to const [constParameterPointer] viking-1.10/src/viktrack.c:2323:18: style: Variable 'tp_missing' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:2413:15: style: Variable 'cur_coord' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:2414:15: style: Variable 'prev_coord' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:2448:13: style: Variable 'a' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:2449:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:2451:18: style: Variable 'tpa' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:2452:18: style: Variable 'tpb' can be declared as pointer to const [constVariablePointer] viking-1.10/src/viktrack.c:2127:77: warning: Uninitialized variable: topleft.lat [uninitvar] viking-1.10/src/viktrack.c:2109:8: note: Assuming condition is false viking-1.10/src/viktrack.c:2127:77: note: Uninitialized variable: topleft.lat viking-1.10/src/viktrack.c:2127:107: warning: Uninitialized variable: bottomright.lat [uninitvar] viking-1.10/src/viktrack.c:2109:8: note: Assuming condition is false viking-1.10/src/viktrack.c:2127:107: note: Uninitialized variable: bottomright.lat viking-1.10/src/viktrack.c:2127:69: error: Uninitialized struct member: topleft.lat [uninitStructMember] viking-1.10/src/viktrack.c:2127:82: error: Uninitialized struct member: topleft.lon [uninitStructMember] viking-1.10/src/viktrack.c:2127:95: error: Uninitialized struct member: bottomright.lat [uninitStructMember] viking-1.10/src/viktrack.c:2127:112: error: Uninitialized struct member: bottomright.lon [uninitStructMember] viking-1.10/src/viktrack.c:813:34: style: Variable 'speed' is assigned a value that is never used. [unreadVariable] viking-1.10/src/viktrack.c:1323:16: style: Variable 'current_dist' is assigned a value that is never used. [unreadVariable] viking-1.10/src/viktrack.c:1324:28: style: Variable 'current_area_under_curve' is assigned a value that is never used. [unreadVariable] viking-1.10/src/viktrack.c:1398:20: style: Variable 'current_dist' is assigned a value that is never used. [unreadVariable] viking-1.10/src/viktrack.c:1841:33: style: Variable 'speed' is assigned a value that is never used. [unreadVariable] diff: 2.18.0 viking-1.10/src/acquire.c:109:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/acquire.c:178:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 viking-1.10/src/acquire.c:230:7: error: Memory leak: options [memleak] 2.18.0 viking-1.10/src/acquire.c:239:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/acquire.c:253:7: error: Memory leak: options [memleak] 2.18.0 viking-1.10/src/acquire.c:265:7: error: Memory leak: options [memleak] 2.18.0 viking-1.10/src/acquire.c:376:7: error: Return value of allocation function 'g_thread_try_new' is not stored. [leakReturnValNotUsed] 2.18.0 viking-1.10/src/acquire.c:487:113: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel.c:103:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel.c:176:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel.c:192:13: warning: If resource allocation fails, then there is a possible null pointer dereference: diag [nullPointerOutOfResources] viking-1.10/src/babel.c:191:18: note: Assuming allocation function fails viking-1.10/src/babel.c:191:18: note: Assignment 'diag=fdopen(babel_stdout,"r")', assigned value is 0 viking-1.10/src/babel.c:192:13: note: Null pointer dereference 2.18.0 viking-1.10/src/babel.c:194:38: warning: If resource allocation fails, then there is a possible null pointer dereference: diag [nullPointerOutOfResources] viking-1.10/src/babel.c:191:18: note: Assuming allocation function fails viking-1.10/src/babel.c:191:18: note: Assignment 'diag=fdopen(babel_stdout,"r")', assigned value is 0 viking-1.10/src/babel.c:194:38: note: Null pointer dereference 2.18.0 viking-1.10/src/babel.c:281:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel.c:350:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel.c:396:189: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/babel.c:408:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel.c:408:53: warning: Either the condition 'input_type!=NULL' is redundant or there is possible null pointer dereference: input_type. [nullPointerRedundantCheck] viking-1.10/src/babel.c:428:24: note: Assuming that condition 'input_type!=NULL' is not redundant viking-1.10/src/babel.c:408:53: note: Null pointer dereference 2.18.0 viking-1.10/src/babel.c:486:66: style: Parameter 'process_options' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/babel.c:525:99: style:inconclusive: Function 'a_babel_convert_to' argument 4 names different: declaration 'file' definition 'to'. [funcArgNamesDifferent] viking-1.10/src/babel.h:118:99: note: Function 'a_babel_convert_to' argument 4 names different: declaration 'file' definition 'to'. viking-1.10/src/babel.c:525:99: note: Function 'a_babel_convert_to' argument 4 names different: declaration 'file' definition 'to'. 2.18.0 viking-1.10/src/babel.c:534:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel.c:568:46: style: Parameter 'smode' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/babel.c:583:45: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/babel.c:599:11: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:599:11: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:599:11: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:599:11: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:599:11: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:599:11: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:620:11: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:620:11: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:620:11: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:620:11: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:620:11: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:620:11: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/babel.c:722:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel.c:739:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel.c:73:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/babel_ui.c:141:21: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/babel_ui.c:48:14: style: Variable 'file' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/babel_ui.c:52:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/background.c:170:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/background.c:195:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkTreeIter [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/background.c:234:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/background.c:287:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/background.c:379:99: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CLOSE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/background.c:411:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window_list [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/background.c:418:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window_list [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/background.c:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window_list [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/bingmapsource.c:121:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bing_map_source_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/bingmapsource.c:128:30: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/bingmapsource.c:196:31: note: You might need to cast the function pointer here viking-1.10/src/bingmapsource.c:128:30: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/bingmapsource.c:160:28: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/bingmapsource.c:197:31: note: You might need to cast the function pointer here viking-1.10/src/bingmapsource.c:160:28: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/bingmapsource.c:163:24: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/bingmapsource.c:207:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/bingmapsource.c:258:48: style: Parameter 'src' can be declared as pointer to const. However it seems that 'bget_uri' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/bingmapsource.c:198:31: note: You might need to cast the function pointer here viking-1.10/src/bingmapsource.c:258:48: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/bingmapsource.c:279:26: style: Parameter 'self' can be declared as pointer to const. However it seems that '_get_logo' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/bingmapsource.c:200:30: note: You might need to cast the function pointer here viking-1.10/src/bingmapsource.c:279:26: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/bingmapsource.c:289:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/bingmapsource.c:405:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/bingmapsource.c:411:14: style: Condition 'offset==-1' is always false [knownConditionTrueFalse] 2.18.0 viking-1.10/src/bingmapsource.c:442:25: style: Variable 'aa' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/bingmapsource.c:466:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/bingmapsource.c:480:25: style: Parameter 'data' can be declared as pointer to const. However it seems that '_emit_update' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/bingmapsource.c:498:31: note: You might need to cast the function pointer here viking-1.10/src/bingmapsource.c:480:25: note: Parameter 'data' can be declared as pointer to const 2.18.0 viking-1.10/src/clipboard.c:144:10: style: Variable 'cand' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/clipboard.c:171:13: style: Variable 'latc' can be declared as const array [constVariable] 2.18.0 viking-1.10/src/clipboard.c:172:13: style: Variable 'lonc' can be declared as const array [constVariable] 2.18.0 viking-1.10/src/clipboard.c:247:61: style: Parameter 'coord' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/clipboard.c:256:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/clipboard.c:268:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/clipboard.c:303:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/clipboard.c:362:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_TARGET_STRING [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/clipboard.c:435:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/clipboard.c:453:1: error: Memory leak: vc [memleak] 2.18.0 viking-1.10/src/clipboard.c:453:1: error: Memory leak: vc.text [memleak] 2.18.0 viking-1.10/src/clipboard.c:463:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/clipboard.c:477:20: style: Variable 'vc' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/clipboard.c:525:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/compression.c:113:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZIP_ER_OK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/compression.c:189:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WBITS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/compression.c:236:3: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/compression.c:258:2: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/compression.c:298:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BZ_OK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/compression.c:353:9: style: Variable 'tmp_name' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/curl_download.c:108:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_GLOBAL_ALL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/curl_download.c:146:77: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/curl_download.c:148:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/curl_download.c:176:114: style: Parameter 'cdo' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/curl_download.c:176:114: style:inconclusive: Function 'curl_download_uri' argument 4 names different: declaration 'curl_options' definition 'cdo'. [funcArgNamesDifferent] viking-1.10/src/curl_download.h:57:114: note: Function 'curl_download_uri' argument 4 names different: declaration 'curl_options' definition 'cdo'. viking-1.10/src/curl_download.c:176:114: note: Function 'curl_download_uri' argument 4 names different: declaration 'curl_options' definition 'cdo'. 2.18.0 viking-1.10/src/curl_download.c:176:60: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/curl_download.c:180:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLE_FAILED_INIT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/curl_download.c:271:154: style:inconclusive: Function 'curl_download_get_url' argument 6 names different: declaration 'curl_options' definition 'cdo'. [funcArgNamesDifferent] viking-1.10/src/curl_download.h:56:154: note: Function 'curl_download_get_url' argument 6 names different: declaration 'curl_options' definition 'cdo'. viking-1.10/src/curl_download.c:271:154: note: Function 'curl_download_get_url' argument 6 names different: declaration 'curl_options' definition 'cdo'. 2.18.0 viking-1.10/src/curl_download.c:307:41: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'WriteMemoryCallback' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/curl_download.c:340:51: note: You might need to cast the function pointer here viking-1.10/src/curl_download.c:307:41: note: Parameter 'ptr' can be declared as pointer to const 2.18.0 viking-1.10/src/curl_download.c:339:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_WRITEDATA [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/curl_download.c:352:27: error: Dereferencing 'curl' after it is deallocated / released [deallocuse] 2.18.0 viking-1.10/src/curl_download.c:354:27: error: Dereferencing 'curl' after it is deallocated / released [deallocuse] 2.18.0 viking-1.10/src/curl_download.c:61:37: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'curl_write_func' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/curl_download.c:188:51: note: You might need to cast the function pointer here viking-1.10/src/curl_download.c:61:37: note: Parameter 'ptr' can be declared as pointer to const 2.18.0 viking-1.10/src/curl_download.c:66:40: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'curl_get_etag_func' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/curl_download.c:205:58: note: You might need to cast the function pointer here viking-1.10/src/curl_download.c:66:40: note: Parameter 'ptr' can be declared as pointer to const 2.18.0 viking-1.10/src/curl_download.c:74:11: style: Variable 'etag_str' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/curl_download.c:75:11: style: Variable 'end_str' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/curl_download.c:76:9: style: Condition 'etag_str' is always true [knownConditionTrueFalse] 2.18.0 viking-1.10/src/curl_download.c:78:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_bfilter.c:219:80: style: Parameter 'paramdatas' can be declared as pointer to const. However it seems that 'datasource_bfilter_manual_get_process_options' is a callback function, if 'paramdatas' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/datasource_bfilter.c:235:40: note: You might need to cast the function pointer here viking-1.10/src/datasource_bfilter.c:219:80: note: Parameter 'paramdatas' can be declared as pointer to const 2.18.0 viking-1.10/src/datasource_bfilter.c:54:23: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/datasource_file.c:120:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_file.c:168:10: style: Variable 'type' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/datasource_file.c:170:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_file.c:76:51: style: Parameter 'avt' can be declared as pointer to const. However it seems that 'datasource_file_init' is a callback function, if 'avt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/datasource_file.c:58:28: note: You might need to cast the function pointer here viking-1.10/src/datasource_file.c:76:51: note: Parameter 'avt' can be declared as pointer to const 2.18.0 viking-1.10/src/datasource_geojson.c:111:86: style:inconclusive: Function 'datasource_geojson_get_process_options' argument 1 names different: declaration 'user_data' definition 'userdata'. [funcArgNamesDifferent] viking-1.10/src/datasource_geojson.c:37:86: note: Function 'datasource_geojson_get_process_options' argument 1 names different: declaration 'user_data' definition 'userdata'. viking-1.10/src/datasource_geojson.c:111:86: note: Function 'datasource_geojson_get_process_options' argument 1 names different: declaration 'user_data' definition 'userdata'. 2.18.0 viking-1.10/src/datasource_geojson.c:154:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_geojson.c:76:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_geotag.c:163:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_geotag.c:79:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_gps.c:144:96: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_gps.c:216:9: style: Variable 'device' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/datasource_gps.c:217:9: style: Variable 'tracks' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/datasource_gps.c:218:9: style: Variable 'routes' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/datasource_gps.c:219:9: style: Variable 'waypoints' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/datasource_gps.c:269:43: style:inconclusive: Function 'datasource_gps_off' argument 1 names different: declaration 'add_widgets_data_not_used' definition 'user_data'. [funcArgNamesDifferent] viking-1.10/src/datasource_gps.c:46:43: note: Function 'datasource_gps_off' argument 1 names different: declaration 'add_widgets_data_not_used' definition 'user_data'. viking-1.10/src/datasource_gps.c:269:43: note: Function 'datasource_gps_off' argument 1 names different: declaration 'add_widgets_data_not_used' definition 'user_data'. 2.18.0 viking-1.10/src/datasource_gps.c:269:81: style:inconclusive: Function 'datasource_gps_off' argument 3 names different: declaration 'input_file' definition 'file_descriptor'. [funcArgNamesDifferent] viking-1.10/src/datasource_gps.c:46:97: note: Function 'datasource_gps_off' argument 3 names different: declaration 'input_file' definition 'file_descriptor'. viking-1.10/src/datasource_gps.c:269:81: note: Function 'datasource_gps_off' argument 3 names different: declaration 'input_file' definition 'file_descriptor'. 2.18.0 viking-1.10/src/datasource_gps.c:272:9: style: Variable 'device' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/datasource_gps.c:287:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_gps.c:516:8: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] 2.18.0 viking-1.10/src/datasource_gps.c:517:8: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] 2.18.0 viking-1.10/src/datasource_osm.c:100:126: style: Parameter 'options' can be declared as pointer to const. However it seems that 'datasource_osm_get_process_options' is a callback function, if 'options' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/datasource_osm.c:63:41: note: You might need to cast the function pointer here viking-1.10/src/datasource_osm.c:100:126: note: Parameter 'options' can be declared as pointer to const 2.18.0 viking-1.10/src/datasource_osm.c:104:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_osm.c:124:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:120:121: style: Parameter 'options' can be declared as pointer to const. However it seems that 'datasource_osm_my_traces_get_process_options' is a callback function, if 'options' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/datasource_osm_my_traces.c:61:40: note: You might need to cast the function pointer here viking-1.10/src/datasource_osm_my_traces.c:120:121: note: Parameter 'options' can be declared as pointer to const 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:130:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:246:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:344:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_STATUS_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:376:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:509:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:539:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:543:86: style: Parameter 'process_options' can be declared as pointer to const. However it seems that 'datasource_osm_my_traces_process' is a callback function, if 'process_options' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/datasource_osm_my_traces.c:62:40: note: You might need to cast the function pointer here viking-1.10/src/datasource_osm_my_traces.c:543:86: note: Parameter 'process_options' can be declared as pointer to const 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:583:7: style: Condition 'tmpname' is always true [knownConditionTrueFalse] 2.18.0 viking-1.10/src/datasource_osm_my_traces.c:676:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_routing.c:113:134: style: Parameter 'options' can be declared as pointer to const. However it seems that 'datasource_routing_get_process_options' is a callback function, if 'options' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/datasource_routing.c:59:41: note: You might need to cast the function pointer here viking-1.10/src/datasource_routing.c:113:134: note: Parameter 'options' can be declared as pointer to const 2.18.0 viking-1.10/src/datasource_routing.c:128:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 viking-1.10/src/datasource_routing.c:73:54: style: Parameter 'avt' can be declared as pointer to const. However it seems that 'datasource_routing_init' is a callback function, if 'avt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/datasource_routing.c:56:28: note: You might need to cast the function pointer here viking-1.10/src/datasource_routing.c:73:54: note: Parameter 'avt' can be declared as pointer to const 2.18.0 viking-1.10/src/datasource_url.c:153:103: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/datasource_url.c:68:50: style: Parameter 'avt' can be declared as pointer to const. However it seems that 'datasource_url_init' is a callback function, if 'avt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/datasource_url.c:52:40: note: You might need to cast the function pointer here viking-1.10/src/datasource_url.c:68:50: note: Parameter 'avt' can be declared as pointer to const 2.18.0 viking-1.10/src/dem.c:155:73: style: Parameter 'cur_column' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/dem.c:158:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_points [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dem.c:220:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable east_west [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dem.c:281:5: error: Memory leak: dem.columns [memleak] 2.18.0 viking-1.10/src/dem.c:310:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dem.c:411:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable east_west [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dem.c:427:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable points [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dem.c:433:44: style:inconclusive: Function 'vik_dem_get_xy' argument 2 names different: declaration 'x' definition 'col'. [funcArgNamesDifferent] viking-1.10/src/dem.h:71:44: note: Function 'vik_dem_get_xy' argument 2 names different: declaration 'x' definition 'col'. viking-1.10/src/dem.c:433:44: note: Function 'vik_dem_get_xy' argument 2 names different: declaration 'x' definition 'col'. 2.18.0 viking-1.10/src/dem.c:433:55: style:inconclusive: Function 'vik_dem_get_xy' argument 3 names different: declaration 'y' definition 'row'. [funcArgNamesDifferent] viking-1.10/src/dem.h:71:53: note: Function 'vik_dem_get_xy' argument 3 names different: declaration 'y' definition 'row'. viking-1.10/src/dem.c:433:55: note: Function 'vik_dem_get_xy' argument 3 names different: declaration 'y' definition 'row'. 2.18.0 viking-1.10/src/dem.c:436:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_points [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dem.c:569:41: style: Parameter 'dem' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/dems.c:153:34: style: Parameter 'dems' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/dems.c:174:10: style: Variable 'iter' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/dems.c:272:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/dems.c:272:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:132:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:148:14: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/dialog.c:190:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:212:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:281:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:329:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:32:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:361:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/dialog.c:361:16: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/dialog.c:361:16: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/dialog.c:372:10: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/dialog.c:391:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:429:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:439:21: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/dialog.c:478:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:52:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:558:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:632:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:642:16: style: Variable 'result' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/dialog.c:681:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:691:15: style: Variable 'result' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/dialog.c:743:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:78:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:871:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:919:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/dialog.c:986:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdk_pixbuf_version [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:135:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:141:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:144:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:197:8: style: Variable 'unzip_mem' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/download.c:210:1: error: Memory leak: mf [memleak] 2.18.0 viking-1.10/src/download.c:227:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:256:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:273:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:282:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:305:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:310:68: style: Parameter 'cdo' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/download.c:322:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:331:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:343:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/download.c:361:17: style: Condition 'options!=NULL' is always true [knownConditionTrueFalse] 2.18.0 viking-1.10/src/download.c:364:17: style: Condition 'options!=NULL' is always true [knownConditionTrueFalse] 2.18.0 viking-1.10/src/download.c:504:61: error: Invalid g_file_open_tmp() argument nr 2. A nul-terminated string is required. [invalidFunctionArgStr] 2.18.0 viking-1.10/src/expedia.c:164:58: style: Parameter 'src' can be declared as pointer to const. However it seems that 'expedia_mapcoord_to_center_coord' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/expedia.c:51:117: note: You might need to cast the function pointer here viking-1.10/src/expedia.c:164:58: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/expedia.c:171:54: style: Parameter 'src' can be declared as pointer to const. However it seems that 'expedia_download' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/expedia.c:51:151: note: You might need to cast the function pointer here viking-1.10/src/expedia.c:171:54: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/expedia.c:201:44: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'expedia_handle_cleanup' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/expedia.c:51:190: note: You might need to cast the function pointer here viking-1.10/src/expedia.c:201:44: note: Parameter 'handle' can be declared as pointer to const 2.18.0 viking-1.10/src/file.c:101:18: style: Variable 'iter' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/file.c:118:38: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/file.c:130:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/file.c:165:10: style: Variable 'modestring' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/file.c:194:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/file.c:282:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/file.c:327:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/file.c:633:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/file.c:642:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/file.c:644:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 viking-1.10/src/file.c:760:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/file.c:774:24: style: Redundant initialization for 'success'. The initialized value is overwritten before it is read. [redundantInitialization] viking-1.10/src/file.c:748:22: note: success is initialized viking-1.10/src/file.c:774:24: note: success is overwritten 2.18.0 viking-1.10/src/file.c:917:10: style: Variable 'ustr' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/file_magic.c:53:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAGIC_CONTINUE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/file_magic.c:84:65: warning: Either the condition 'magic' is redundant or there is possible null pointer dereference: magic. [nullPointerRedundantCheck] viking-1.10/src/file_magic.c:85:9: note: Assuming that condition 'magic' is not redundant viking-1.10/src/file_magic.c:84:65: note: Null pointer dereference 2.18.0 viking-1.10/src/garminsymbols.c:33:8: style: struct member 'Anonymous3::num' is never used. [unusedStructMember] 2.18.0 viking-1.10/src/garminsymbols.c:34:10: style: struct member 'Anonymous3::desc' is never used. [unusedStructMember] 2.18.0 viking-1.10/src/geojson.c:151:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/geojson.c:174:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] viking-1.10/src/geojson.c:173:22: note: Assuming allocation function fails viking-1.10/src/geojson.c:173:22: note: Assignment 'fout=fdopen(mystdout,"r")', assigned value is 0 viking-1.10/src/geojson.c:174:11: note: Null pointer dereference 2.18.0 viking-1.10/src/geojson.c:176:36: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] viking-1.10/src/geojson.c:173:22: note: Assuming allocation function fails viking-1.10/src/geojson.c:173:22: note: Assignment 'fout=fdopen(mystdout,"r")', assigned value is 0 viking-1.10/src/geojson.c:176:36: note: Null pointer dereference 2.18.0 viking-1.10/src/geojson.c:203:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/geojson.c:218:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/geojson.c:245:10: style: Variable 'coord' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/geojson.c:72:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SPAWN_SEARCH_PATH [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/geojson.c:88:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] viking-1.10/src/geojson.c:87:22: note: Assuming allocation function fails viking-1.10/src/geojson.c:87:22: note: Assignment 'fout=fdopen(mystdout,"r")', assigned value is 0 viking-1.10/src/geojson.c:88:11: note: Null pointer dereference 2.18.0 viking-1.10/src/geojson.c:90:36: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] viking-1.10/src/geojson.c:87:22: note: Assuming allocation function fails viking-1.10/src/geojson.c:87:22: note: Assignment 'fout=fdopen(mystdout,"r")', assigned value is 0 viking-1.10/src/geojson.c:90:36: note: Null pointer dereference 2.18.0 viking-1.10/src/geonamessearch.c:103:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/geonamessearch.c:121:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/geonamessearch.c:230:17: style: Variable 'more' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/geonamessearch.c:237:10: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/geonamessearch.c:252:10: style: Variable 'more' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/geonamessearch.c:372:11: style: The if condition is the same as the previous if condition [duplicateCondition] viking-1.10/src/geonamessearch.c:362:11: note: First condition viking-1.10/src/geonamessearch.c:372:11: note: Second condition 2.18.0 viking-1.10/src/geonamessearch.c:470:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/geonamessearch.c:63:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/geotag_exif.c:315:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/geotag_exif.c:775:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:120:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:153:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:154:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:226:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:46:40: style: Parameter 'version' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/globals.c:52:10: style: Variable 'part' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/globals.c:77:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:79:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:80:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:81:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:90:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/globals.c:97:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/googlesearch.c:142:73: style: Parameter 'self' can be declared as pointer to const. However it seems that 'google_goto_tool_parse_file_for_candidates' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/googlesearch.c:56:45: note: You might need to cast the function pointer here viking-1.10/src/googlesearch.c:142:73: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/googlesearch.c:142:86: style: Parameter 'file_name' can be declared as pointer to const. However it seems that 'google_goto_tool_parse_file_for_candidates' is a callback function, if 'file_name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/googlesearch.c:56:45: note: You might need to cast the function pointer here viking-1.10/src/googlesearch.c:142:86: note: Parameter 'file_name' can be declared as pointer to const 2.18.0 viking-1.10/src/googlesearch.c:142:86: style:inconclusive: Function 'google_goto_tool_parse_file_for_candidates' argument 2 names different: declaration 'filename' definition 'file_name'. [funcArgNamesDifferent] viking-1.10/src/googlesearch.c:38:86: note: Function 'google_goto_tool_parse_file_for_candidates' argument 2 names different: declaration 'filename' definition 'file_name'. viking-1.10/src/googlesearch.c:142:86: note: Function 'google_goto_tool_parse_file_for_candidates' argument 2 names different: declaration 'filename' definition 'file_name'. 2.18.0 viking-1.10/src/googlesearch.c:147:62: style: Parameter 'self' can be declared as pointer to const. However it seems that 'google_goto_tool_get_url_format' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/googlesearch.c:53:34: note: You might need to cast the function pointer here viking-1.10/src/googlesearch.c:147:62: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/googlesearch.c:152:75: style: Parameter 'self' can be declared as pointer to const. However it seems that 'google_goto_tool_get_download_options' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/googlesearch.c:54:40: note: You might need to cast the function pointer here viking-1.10/src/googlesearch.c:152:75: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/googlesearch.c:64:53: style: Parameter 'vlp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/googlesearch.c:73:82: style:inconclusive: Function 'google_goto_tool_parse_file_for_latlon' argument 2 names different: declaration 'filename' definition 'file_name'. [funcArgNamesDifferent] viking-1.10/src/googlesearch.c:37:82: note: Function 'google_goto_tool_parse_file_for_latlon' argument 2 names different: declaration 'filename' definition 'file_name'. viking-1.10/src/googlesearch.c:73:82: note: Function 'google_goto_tool_parse_file_for_latlon' argument 2 names different: declaration 'filename' definition 'file_name'. 2.18.0 viking-1.10/src/gpsmapper.c:144:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpsmapper.c:33:10: style: Variable 'layers' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpspoint.c:183:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpspoint.c:462:17: style: Variable 'value_start' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/gpspoint.c:462:29: style: Variable 'value_end' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/gpspoint.c:700:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/gpspoint.c:890:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpx.c:1120:40: style:inconclusive: Function 'a_gpx_read_file' argument 1 names different: declaration 'trw' definition 'vtl'. [funcArgNamesDifferent] viking-1.10/src/gpx.h:41:41: note: Function 'a_gpx_read_file' argument 1 names different: declaration 'trw' definition 'vtl'. viking-1.10/src/gpx.c:1120:40: note: Function 'a_gpx_read_file' argument 1 names different: declaration 'trw' definition 'vtl'. 2.18.0 viking-1.10/src/gpx.c:1123:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_STATUS_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpx.c:1186:14: style: struct member 'entity_types::not_html' is never used. [unusedStructMember] 2.18.0 viking-1.10/src/gpx.c:1428:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/gpx.c:1476:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpx.c:1484:26: style: Redundant condition: context->options. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] 2.18.0 viking-1.10/src/gpx.c:1513:12: style: Local variable 'tmp' shadows outer variable [shadowVariable] viking-1.10/src/gpx.c:1462:10: note: Shadowed declaration viking-1.10/src/gpx.c:1513:12: note: Shadow variable 2.18.0 viking-1.10/src/gpx.c:1516:16: style: Variable 'rtmp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:1604:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpx.c:1620:26: style: Redundant condition: context->options. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] 2.18.0 viking-1.10/src/gpx.c:1681:35: style: Variable 'first_tp_is_newsegment' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/gpx.c:1707:10: style: Variable 'header' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:1712:16: style: Redundant condition: header. '!header || (header && g_strrstr(header,"xmlns:gpxx="))' is equivalent to '!header || g_strrstr(header,"xmlns:gpxx=")' [redundantCondition] 2.18.0 viking-1.10/src/gpx.c:1743:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable newsegment [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpx.c:1778:12: style: Variable 'header' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:1804:11: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] viking-1.10/src/gpx.c:1959:20: note: Assuming allocation function fails viking-1.10/src/gpx.c:1959:20: note: Assignment 'ff=fdopen(fd,"w")', assigned value is 0 viking-1.10/src/gpx.c:1962:38: note: Calling function 'a_gpx_write_track_file', 3rd argument 'ff' value is 0 viking-1.10/src/gpx.c:1940:22: note: Calling function 'gpx_write_footer', 1st argument 'f' value is 0 viking-1.10/src/gpx.c:1804:11: note: Null pointer dereference 2.18.0 viking-1.10/src/gpx.c:1809:16: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:1810:16: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:1816:13: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:1817:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:1821:38: style:inconclusive: Function 'a_gpx_write_file' argument 1 names different: declaration 'trw' definition 'vtl'. [funcArgNamesDifferent] viking-1.10/src/gpx.h:42:38: note: Function 'a_gpx_write_file' argument 1 names different: declaration 'trw' definition 'vtl'. viking-1.10/src/gpx.c:1821:38: note: Function 'a_gpx_write_file' argument 1 names different: declaration 'trw' definition 'vtl'. 2.18.0 viking-1.10/src/gpx.c:1835:19: style: Variable 'md' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:1862:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpx.c:1872:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/gpx.c:1919:12: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:1935:44: style:inconclusive: Function 'a_gpx_write_track_file' argument 1 names different: declaration 'trw' definition 'vtl'. [funcArgNamesDifferent] viking-1.10/src/gpx.h:43:44: note: Function 'a_gpx_write_track_file' argument 1 names different: declaration 'trw' definition 'vtl'. viking-1.10/src/gpx.c:1935:44: note: Function 'a_gpx_write_track_file' argument 1 names different: declaration 'trw' definition 'vtl'. 2.18.0 viking-1.10/src/gpx.c:1957:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpx.c:1966:10: warning: If resource allocation fails, then there is a possible null pointer dereference: ff [nullPointerOutOfResources] viking-1.10/src/gpx.c:1959:20: note: Assuming allocation function fails viking-1.10/src/gpx.c:1959:20: note: Assignment 'ff=fdopen(fd,"w")', assigned value is 0 viking-1.10/src/gpx.c:1966:10: note: Null pointer dereference 2.18.0 viking-1.10/src/gpx.c:2002:16: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:2003:16: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:2009:13: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:2010:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:2016:13: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:2017:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/gpx.c:2046:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpx.c:472:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/gpx.c:747:22: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/gpx.c:756:22: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/gpx.c:760:22: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/gpx.c:941:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/jpg.c:59:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kml.c:126:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kml.c:172:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:198:19: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:228:11: style: Variable 'endptr' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/kml.c:237:11: style: Variable 'vp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/kml.c:238:35: warning: Either the condition 'cp==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] viking-1.10/src/kml.c:247:20: note: Assuming that condition 'cp==NULL' is not redundant viking-1.10/src/kml.c:238:35: note: Null pointer addition 2.18.0 viking-1.10/src/kml.c:239:11: warning: Either the condition 'cp==NULL' is redundant or there is possible null pointer dereference: cp. [nullPointerRedundantCheck] viking-1.10/src/kml.c:247:20: note: Assuming that condition 'cp==NULL' is not redundant viking-1.10/src/kml.c:239:11: note: Null pointer dereference 2.18.0 viking-1.10/src/kml.c:294:19: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:325:19: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:356:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kml.c:370:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:401:19: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:424:16: style: Variable 'dd' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/kml.c:425:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kml.c:429:6: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:429:6: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:439:13: style: Variable 'lts' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/kml.c:445:6: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:445:6: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:454:13: style: Variable 'lts' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/kml.c:460:6: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:460:6: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:471:16: style: Variable 'dd' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/kml.c:476:6: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:476:6: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/kml.c:504:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kml.c:691:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kml.c:696:33: style: Parameter 'xd' can be declared as pointer to const. However it seems that 'kml_end' is a callback function, if 'xd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/kml.c:745:93: note: You might need to cast the function pointer here viking-1.10/src/kml.c:696:33: note: Parameter 'xd' can be declared as pointer to const 2.18.0 viking-1.10/src/kml.c:720:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_STATUS_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kmz.c:110:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZIP_ER_OK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kmz.c:247:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kmz.c:336:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kmz.c:397:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_STATUS_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/kmz.c:455:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZIP_ER_OK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/libgeoclue.c:100:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCLUE_ACCURACY_LEVEL_NONE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/libgeoclue.c:57:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/logging.c:100:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/logging.c:129:59: style: Parameter 'theEvent' can be declared as pointer to const. However it seems that 'myXErrorHandler' is a callback function, if 'theEvent' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/logging.c:168:19: note: You might need to cast the function pointer here viking-1.10/src/logging.c:129:59: note: Parameter 'theEvent' can be declared as pointer to const 2.18.0 viking-1.10/src/logging.c:137:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/logging.c:222:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msg_lock [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/logging.c:259:44: style: Parameter 'tree_view' can be declared as pointer to const. However it seems that 'menu_popup_cb' is a callback function, if 'tree_view' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/logging.c:342:2: note: You might need to cast the function pointer here viking-1.10/src/logging.c:259:44: note: Parameter 'tree_view' can be declared as pointer to const 2.18.0 viking-1.10/src/logging.c:307:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msg_lock [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/logging.c:353:26: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/logging.c:377:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window_list [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/logging.c:384:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window_list [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/logging.c:68:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/logging.c:77:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window_list [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/main.c:107:7: error: Memory leak: zs [memleak] 2.18.0 viking-1.10/src/main.c:108:5: error: Memory leak: exts [memleak] 2.18.0 viking-1.10/src/main.c:112:5: error: Memory leak: regex [memleak] 2.18.0 viking-1.10/src/main.c:138:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/main.c:84:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_CASELESS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/main.c:87:5: error: Memory leak: regex [memleak] 2.18.0 viking-1.10/src/mapcache.c:156:16: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/mapcache.c:167:14: style: Variable 'oldkey' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/mapcache.c:195:3: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/mapcache.c:212:3: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/mapcache.c:223:37: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/mapcache.c:273:3: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/mapcache.c:65:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/modules.c:100:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/modules.c:108:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/modules.c:191:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIKING_SYSCONFDIR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/modules.c:75:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/modules.c:84:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/modules.c:92:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/osm-traces.c:169:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable oauth_cmpstringp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/osm-traces.c:200:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/osm-traces.c:223:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/osm-traces.c:232:42: style: Parameter 'request_token_key' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/osm-traces.c:279:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/osm-traces.c:279:36: warning: Either the condition 'authorize_url' is redundant or there is possible null pointer dereference: authorize_url. [nullPointerRedundantCheck] viking-1.10/src/osm-traces.c:280:8: note: Assuming that condition 'authorize_url' is not redundant viking-1.10/src/osm-traces.c:279:36: note: Null pointer dereference 2.18.0 viking-1.10/src/osm-traces.c:305:26: style: Same expression on both sides of '||'. [duplicateExpression] 2.18.0 viking-1.10/src/osm-traces.c:305:29: style: Condition '!access_token_key' is always false [knownConditionTrueFalse] 2.18.0 viking-1.10/src/osm-traces.c:331:22: style: Variable 'pref_user' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/osm-traces.c:332:22: style: Variable 'pref_pwd' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/osm-traces.c:415:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_ERROR_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/osm-traces.c:415:8: style: Variable 'curl_error_buffer' can be declared as const array [constVariable] 2.18.0 viking-1.10/src/osm-traces.c:500:45: error: Uninitialized variable: curl_error_buffer [uninitvar] 2.18.0 viking-1.10/src/osm-traces.c:562:14: style: Variable 'timeinfo' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/osm-traces.c:564:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 viking-1.10/src/osm-traces.c:573:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/osm-traces.c:609:22: style: Variable 'pref_user' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/osm-traces.c:610:22: style: Variable 'pref_password' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/osm-traces.c:651:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/osm-traces.c:731:19: style: Variable 'md' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/preferences.c:145:138: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/preferences.c:145:27: style: Variable 'val' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/preferences.c:158:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/preferences.c:265:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/preferences.c:284:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/preferences.c:363:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/preferences.c:411:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/preferences.c:411:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/preferences.c:439:48: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/preferences.c:94:29: style: Variable 'oldval' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/print-preview.c:149:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/print-preview.c:183:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vik_print_preview_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/print-preview.c:342:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_FLEUR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/print-preview.c:365:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON1_MOTION_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/print-preview.c:428:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_BILINEAR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/print-preview.c:86:28: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] 2.18.0 viking-1.10/src/print-preview.c:86:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/print.c:112:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/print.c:134:42: style: Parameter 'operation' can be declared as pointer to const. However it seems that 'end_print' is a callback function, if 'operation' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/print.c:106:3: note: You might need to cast the function pointer here viking-1.10/src/print.c:134:42: note: Parameter 'operation' can be declared as pointer to const 2.18.0 viking-1.10/src/print.c:135:42: style: Parameter 'context' can be declared as pointer to const. However it seems that 'end_print' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/print.c:106:3: note: You might need to cast the function pointer here viking-1.10/src/print.c:135:42: note: Parameter 'context' can be declared as pointer to const 2.18.0 viking-1.10/src/print.c:136:34: style: Parameter 'data' can be declared as pointer to const. However it seems that 'end_print' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/print.c:106:3: note: You might need to cast the function pointer here viking-1.10/src/print.c:136:34: note: Parameter 'data' can be declared as pointer to const 2.18.0 viking-1.10/src/print.c:145:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/print.c:161:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/print.c:206:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_RGB24 [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/print.c:38:19: style: struct member 'PrintCenterName::mode' is never used. [unusedStructMember] 2.18.0 viking-1.10/src/print.c:51:23: style: struct member 'PrintData::show_info_header' is never used. [unusedStructMember] 2.18.0 viking-1.10/src/print.c:554:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/print.c:558:15: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/print.c:562:15: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/print.c:565:10: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/print.c:580:10: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/print.c:609:10: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/print.c:612:10: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/tcx.c:166:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/tcx.c:225:21: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/tcx.c:275:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/tcx.c:449:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_STATUS_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/terraservermapsource.c:101:50: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'terraserver_map_source_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/terraservermapsource.c:127:34: note: You might need to cast the function pointer here viking-1.10/src/terraservermapsource.c:101:50: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/terraservermapsource.c:103:32: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/terraservermapsource.c:143:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXUINT8 [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/terraservermapsource.c:184:71: style:inconclusive: Function '_coord_to_mapcoord' argument 3 names different: declaration 'xzoom' definition 'xmpp'. [funcArgNamesDifferent] viking-1.10/src/terraservermapsource.c:28:87: note: Function '_coord_to_mapcoord' argument 3 names different: declaration 'xzoom' definition 'xmpp'. viking-1.10/src/terraservermapsource.c:184:71: note: Function '_coord_to_mapcoord' argument 3 names different: declaration 'xzoom' definition 'xmpp'. 2.18.0 viking-1.10/src/terraservermapsource.c:184:85: style:inconclusive: Function '_coord_to_mapcoord' argument 4 names different: declaration 'yzoom' definition 'ympp'. [funcArgNamesDifferent] viking-1.10/src/terraservermapsource.c:28:102: note: Function '_coord_to_mapcoord' argument 4 names different: declaration 'yzoom' definition 'ympp'. viking-1.10/src/terraservermapsource.c:184:85: note: Function '_coord_to_mapcoord' argument 4 names different: declaration 'yzoom' definition 'ympp'. 2.18.0 viking-1.10/src/terraservermapsource.c:188:31: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/terraservermapsource.c:207:40: style: Parameter 'self' can be declared as pointer to const. However it seems that '_is_direct_file_access' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/terraservermapsource.c:132:45: note: You might need to cast the function pointer here viking-1.10/src/terraservermapsource.c:207:40: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/terraservermapsource.c:213:29: style: Parameter 'self' can be declared as pointer to const. However it seems that '_is_mbtiles' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/terraservermapsource.c:133:34: note: You might need to cast the function pointer here viking-1.10/src/terraservermapsource.c:213:29: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/terraservermapsource.c:219:59: style: Parameter 'src' can be declared as pointer to const. However it seems that '_mapcoord_to_center_coord' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/terraservermapsource.c:131:48: note: You might need to cast the function pointer here viking-1.10/src/terraservermapsource.c:219:59: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/terraservermapsource.c:230:48: style: Parameter 'src' can be declared as pointer to const. However it seems that '_get_uri' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/terraservermapsource.c:135:26: note: You might need to cast the function pointer here viking-1.10/src/terraservermapsource.c:230:48: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/terraservermapsource.c:234:31: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/terraservermapsource.c:242:37: style: Parameter 'self' can be declared as pointer to const. However it seems that '_get_hostname' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/terraservermapsource.c:136:31: note: You might need to cast the function pointer here viking-1.10/src/terraservermapsource.c:242:37: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/terraservermapsource.c:250:45: style: Parameter 'self' can be declared as pointer to const. However it seems that '_get_download_options' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/terraservermapsource.c:137:39: note: You might need to cast the function pointer here viking-1.10/src/terraservermapsource.c:250:45: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/terraservermapsource.c:271:8: style: Variable 'copyright' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/terraservermapsource.c:73:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable terraserver_map_source_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/terraservermapsource.c:80:52: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'terraserver_map_source_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/terraservermapsource.c:126:31: note: You might need to cast the function pointer here viking-1.10/src/terraservermapsource.c:80:52: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/thumbnails.c:128:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_BILINEAR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/thumbnails.c:189:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/thumbnails.c:261:42: style:inconclusive: Function 'a_thumbnails_get' argument 1 names different: declaration 'filename' definition 'pathname'. [funcArgNamesDifferent] viking-1.10/src/thumbnails.h:35:42: note: Function 'a_thumbnails_get' argument 1 names different: declaration 'filename' definition 'pathname'. viking-1.10/src/thumbnails.c:261:42: note: Function 'a_thumbnails_get' argument 1 names different: declaration 'filename' definition 'pathname'. 2.18.0 viking-1.10/src/toolbar.c:1013:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:1107:17: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/toolbar.c:1114:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/toolbar.c:1141:124: debug: Function::addArguments found argument 'reload_cb' with varid 0. [varid0] 2.18.0 viking-1.10/src/toolbar.c:1145:10: style: Variable 'sl' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/toolbar.c:1163:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable reload_cb [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:160:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:273:82: style: Parameter 'action' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/toolbar.c:278:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkToggleActionEntry [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:329:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:344:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_SMALL_TOOLBAR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:408:43: style: Parameter 'vtb' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/toolbar.c:420:39: debug: Function::addArguments found argument 'reload_cb' with varid 0. [varid0] 2.18.0 viking-1.10/src/toolbar.c:480:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable reload_cb [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:499:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:520:27: debug: Function::addArguments found argument 'tool_cb' with varid 0. [varid0] 2.18.0 viking-1.10/src/toolbar.c:529:10: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/toolbar.c:532:19: style: Variable 'action' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/toolbar.c:533:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkActionEntry [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:546:25: style: Variable 'action' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/toolbar.c:561:24: style: Variable 'action' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/toolbar.c:577:24: style: Variable 'action' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/toolbar.c:68:54: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/toolbar.c:727:13: style: Variable 'action' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/toolbar.c:742:4: error: Memory leak: label_clean [memleak] 2.18.0 viking-1.10/src/toolbar.c:866:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable target [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:885:10: style: Variable 'text' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/toolbar.c:908:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TREE_VIEW_DROP_BEFORE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:974:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/toolbar.c:997:152: debug: Function::addArguments found argument 'reload_cb' with varid 0. [varid0] 2.18.0 viking-1.10/src/ui_util.c:109:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CURRENT_TIME [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/ui_util.c:139:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_BUTTON [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/ui_util.c:216:38: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/ui_util.c:218:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/ui_util.c:467:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/ui_util.c:489:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_LOOKUP_FORCE_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/ui_util.c:559:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_OPERATOR_CLEAR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/ui_util.c:92:90: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CURRENT_TIME [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/uibuilder.c:261:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/uibuilder.c:341:14: error: Overlapping read/write of union is undefined behavior [overlappingWriteUnion] 2.18.0 viking-1.10/src/uibuilder.c:364:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/uibuilder.c:37:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/uibuilder.c:38:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/uibuilder.c:434:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/uibuilder.c:499:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/uibuilder.c:672:119: style: Parameter 'params' can be declared as pointer to const. However it seems that 'uibuilder_run_setparam' is a callback function, if 'params' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/uibuilder.c:702:19: note: You might need to cast the function pointer here viking-1.10/src/uibuilder.c:672:119: note: Parameter 'params' can be declared as pointer to const 2.18.0 viking-1.10/src/uibuilder.c:684:70: style: Parameter 'params_defaults' can be declared as pointer to const. However it seems that 'uibuilder_run_getparam' is a callback function, if 'params_defaults' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/uibuilder.c:705:19: note: You might need to cast the function pointer here viking-1.10/src/uibuilder.c:684:70: note: Parameter 'params_defaults' can be declared as pointer to const 2.18.0 viking-1.10/src/uibuilder.c:719:82: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/uibuilder.c:747:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vik_compat.c:27:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GMutex [valueFlowBailoutIncompleteVar] head viking-1.10/src/vik_compat.h:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/src/vik_compat.h:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1041:21: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1089:24: style: Condition 'xinc==1' is always false [knownConditionTrueFalse] viking-1.10/src/vikaggregatelayer.c:936:40: note: Assignment 'xinc=(ulm.x==xmin)?1:-1', assigned value is -1 viking-1.10/src/vikaggregatelayer.c:1089:24: note: Condition 'xinc==1' is always false 2.18.0 viking-1.10/src/vikaggregatelayer.c:1095:24: style: Condition 'yinc==1' is always false [knownConditionTrueFalse] viking-1.10/src/vikaggregatelayer.c:937:40: note: Assignment 'yinc=(ulm.y==ymin)?1:-1', assigned value is -1 viking-1.10/src/vikaggregatelayer.c:1095:24: note: Condition 'yinc==1' is always false 2.18.0 viking-1.10/src/vikaggregatelayer.c:1124:83: style: Parameter 'center' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1126:18: style: Variable 'll' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:113:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1180:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_BILINEAR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1225:13: style: Variable 'trigger' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:133:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1347:13: style: Variable 'sa' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1348:13: style: Variable 'sb' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1364:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1371:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1398:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1405:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1416:77: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'aggregate_layer_waypoint_create_list' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikaggregatelayer.c:1440:74: note: You might need to cast the function pointer here viking-1.10/src/vikaggregatelayer.c:1416:77: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 viking-1.10/src/vikaggregatelayer.c:1439:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1447:75: style: Parameter 'date_str' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1450:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1481:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1498:74: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'aggregate_layer_track_create_list' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikaggregatelayer.c:1551:62: note: You might need to cast the function pointer here viking-1.10/src/vikaggregatelayer.c:1498:74: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 viking-1.10/src/vikaggregatelayer.c:1522:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1547:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1559:15: style: Variable 'vl' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1583:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1612:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1624:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1681:61: style: Parameter 'coord' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1687:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1709:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1718:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1747:14: style: Redundant initialization for 'tmpx'. The initialized value is overwritten before it is read. [redundantInitialization] viking-1.10/src/vikaggregatelayer.c:1745:13: note: tmpx is initialized viking-1.10/src/vikaggregatelayer.c:1747:14: note: tmpx is overwritten 2.18.0 viking-1.10/src/vikaggregatelayer.c:1753:14: style: Local variable 'tmpy' shadows outer variable [shadowVariable] viking-1.10/src/vikaggregatelayer.c:1746:8: note: Shadowed declaration viking-1.10/src/vikaggregatelayer.c:1753:14: note: Shadow variable 2.18.0 viking-1.10/src/vikaggregatelayer.c:1847:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1847:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1849:34: style:inconclusive: Same expression used in consecutive assignments of 'brx' and 'bry'. [duplicateAssignExpression] viking-1.10/src/vikaggregatelayer.c:1849:48: note: Same expression used in consecutive assignments of 'brx' and 'bry'. viking-1.10/src/vikaggregatelayer.c:1849:34: note: Same expression used in consecutive assignments of 'brx' and 'bry'. 2.18.0 viking-1.10/src/vikaggregatelayer.c:1925:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1925:3: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1935:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1935:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:1948:34: style:inconclusive: Same expression used in consecutive assignments of 'brx' and 'bry'. [duplicateAssignExpression] viking-1.10/src/vikaggregatelayer.c:1948:48: note: Same expression used in consecutive assignments of 'brx' and 'bry'. viking-1.10/src/vikaggregatelayer.c:1948:34: note: Same expression used in consecutive assignments of 'brx' and 'bry'. 2.18.0 viking-1.10/src/vikaggregatelayer.c:2022:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2022:3: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2034:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2034:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2041:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2049:11: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2074:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2074:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2115:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2115:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2171:22: style: Variable 'tracks_processed' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2178:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2246:22: warning: Either the condition 'trk->trackpoints' is redundant or there is possible null pointer dereference: trk->trackpoints. [nullPointerRedundantCheck] viking-1.10/src/vikaggregatelayer.c:2247:17: note: Assuming that condition 'trk->trackpoints' is not redundant viking-1.10/src/vikaggregatelayer.c:2246:22: note: Null pointer dereference 2.18.0 viking-1.10/src/vikaggregatelayer.c:2246:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2296:121: style: Parameter 'stamp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2304:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2370:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2393:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2499:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2520:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2520:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2542:18: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2587:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2607:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2647:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2700:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2712:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2724:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2757:80: style: Parameter 'menu' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2787:61: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2787:75: style: Parameter 'menu' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2807:74: style: Parameter 'mc' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2828:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2876:87: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2897:14: style: Variable 'sm' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2972:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2977:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:2979:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3036:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3058:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3129:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visible [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3133:13: style: Variable 'vl' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3204:68: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3209:60: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3218:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3248:10: style: Variable 'children' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3271:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3275:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3279:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3293:10: style: Variable 'children' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3308:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:3359:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:355:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:355:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:361:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikaggregatelayer.c:411:73: warning: Found calculation inside sizeof(). [sizeofCalculation] 2.18.0 viking-1.10/src/vikaggregatelayer.c:427:73: warning: Found calculation inside sizeof(). [sizeofCalculation] 2.18.0 viking-1.10/src/vikaggregatelayer.c:441:73: warning: Found calculation inside sizeof(). [sizeofCalculation] 2.18.0 viking-1.10/src/vikaggregatelayer.c:452:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable realized [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:457:67: style: Parameter 'vlsp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:460:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable realized [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:569:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:62:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:640:85: style:inconclusive: Function 'aggregate_layer_marshall' argument 3 names different: declaration 'len' definition 'datalen'. [funcArgNamesDifferent] viking-1.10/src/vikaggregatelayer.c:40:85: note: Function 'aggregate_layer_marshall' argument 3 names different: declaration 'len' definition 'datalen'. viking-1.10/src/vikaggregatelayer.c:640:85: note: Function 'aggregate_layer_marshall' argument 3 names different: declaration 'len' definition 'datalen'. 2.18.0 viking-1.10/src/vikaggregatelayer.c:68:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:714:91: style:inconclusive: Function 'vik_aggregate_layer_insert_layer' argument 3 names different: declaration 'replace_layer' definition 'replace_iter'. [funcArgNamesDifferent] viking-1.10/src/vikaggregatelayer.h:50:91: note: Function 'vik_aggregate_layer_insert_layer' argument 3 names different: declaration 'replace_layer' definition 'replace_iter'. viking-1.10/src/vikaggregatelayer.c:714:91: note: Function 'vik_aggregate_layer_insert_layer' argument 3 names different: declaration 'replace_layer' definition 'replace_iter'. 2.18.0 viking-1.10/src/vikaggregatelayer.c:876:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:902:84: style: Parameter 'ul' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:902:98: style: Parameter 'br' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikaggregatelayer.c:906:24: style: Variable 'shrinkfactor' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/vikaggregatelayer.c:91:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:925:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:92:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:936:31: style: Condition 'ulm.x==xmin' is always false [knownConditionTrueFalse] viking-1.10/src/vikaggregatelayer.c:916:21: note: xmin is assigned '(ulm.x<(brm.x))?(ulm.x):(brm.x)' here. viking-1.10/src/vikaggregatelayer.c:923:16: note: Assuming condition is false viking-1.10/src/vikaggregatelayer.c:936:31: note: Condition 'ulm.x==xmin' is always false 2.18.0 viking-1.10/src/vikaggregatelayer.c:937:31: style: Condition 'ulm.y==ymin' is always false [knownConditionTrueFalse] viking-1.10/src/vikaggregatelayer.c:917:21: note: ymin is assigned '(ulm.y<(brm.y))?(ulm.y):(brm.y)' here. viking-1.10/src/vikaggregatelayer.c:923:16: note: Assuming condition is false viking-1.10/src/vikaggregatelayer.c:937:31: note: Condition 'ulm.y==ymin' is always false 2.18.0 viking-1.10/src/vikaggregatelayer.c:938:29: style: Condition 'xinc==1' is always false [knownConditionTrueFalse] viking-1.10/src/vikaggregatelayer.c:936:40: note: Assignment 'xinc=(ulm.x==xmin)?1:-1', assigned value is -1 viking-1.10/src/vikaggregatelayer.c:938:29: note: Condition 'xinc==1' is always false 2.18.0 viking-1.10/src/vikaggregatelayer.c:939:29: style: Condition 'yinc==1' is always false [knownConditionTrueFalse] viking-1.10/src/vikaggregatelayer.c:937:40: note: Assignment 'yinc=(ulm.y==ymin)?1:-1', assigned value is -1 viking-1.10/src/vikaggregatelayer.c:939:29: note: Condition 'yinc==1' is always false 2.18.0 viking-1.10/src/vikaggregatelayer.c:945:22: style: Variable 'yy' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/vikaggregatelayer.c:974:22: style: Condition 'xinc==1' is always false [knownConditionTrueFalse] viking-1.10/src/vikaggregatelayer.c:936:40: note: Assignment 'xinc=(ulm.x==xmin)?1:-1', assigned value is -1 viking-1.10/src/vikaggregatelayer.c:974:22: note: Condition 'xinc==1' is always false 2.18.0 viking-1.10/src/vikaggregatelayer.c:976:24: style: Condition 'yinc==1' is always false [knownConditionTrueFalse] viking-1.10/src/vikaggregatelayer.c:937:40: note: Assignment 'yinc=(ulm.y==ymin)?1:-1', assigned value is -1 viking-1.10/src/vikaggregatelayer.c:976:24: note: Condition 'yinc==1' is always false 2.18.0 viking-1.10/src/vikaggregatelayer.c:97:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikaggregatelayer.c:98:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikcoordlayer.c:169:55: style: Parameter 'data' can be declared as pointer to const. However it seems that 'coord_layer_unmarshall' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikcoordlayer.c:108:29: note: You might need to cast the function pointer here viking-1.10/src/vikcoordlayer.c:169:55: note: Parameter 'data' can be declared as pointer to const 2.18.0 viking-1.10/src/vikcoordlayer.c:202:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikcoordlayer.c:206:65: style: Parameter 'vcl' can be declared as pointer to const. However it seems that 'coord_layer_get_param' is a callback function, if 'vcl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikcoordlayer.c:111:41: note: You might need to cast the function pointer here viking-1.10/src/vikcoordlayer.c:206:65: note: Parameter 'vcl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikcoordlayer.c:226:54: style:inconclusive: Function 'coord_layer_new' argument 1 names different: declaration 'vp' definition 'vvp'. [funcArgNamesDifferent] viking-1.10/src/vikcoordlayer.c:26:54: note: Function 'coord_layer_new' argument 1 names different: declaration 'vp' definition 'vvp'. viking-1.10/src/vikcoordlayer.c:226:54: note: Function 'coord_layer_new' argument 1 names different: declaration 'vp' definition 'vvp'. 2.18.0 viking-1.10/src/vikcoordlayer.c:46:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikcoordlayer.c:47:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikcoordlayer.c:54:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdatetime_edit_dialog.c:110:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdatetime_edit_dialog.c:124:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdatetime_edit_dialog.c:159:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdatetime_edit_dialog.c:182:25: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/vikdatetime_edit_dialog.c:216:25: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/vikdatetime_edit_dialog.c:271:12: style: Local variable 'cal' shadows outer variable [shadowVariable] viking-1.10/src/vikdatetime_edit_dialog.c:171:13: note: Shadowed declaration viking-1.10/src/vikdatetime_edit_dialog.c:271:12: note: Shadow variable 2.18.0 viking-1.10/src/vikdatetime_edit_dialog.c:74:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1127:14: style: Unsigned expression 'x' can't be negative so it is unnecessary to test it. [unsignedPositive] 2.18.0 viking-1.10/src/vikdemlayer.c:1194:10: style: Variable 'dems_iter' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikdemlayer.c:1211:8: warning: Size of pointer 'pixels' used instead of size of its data. [pointerSize] 2.18.0 viking-1.10/src/vikdemlayer.c:1220:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1258:40: style: Parameter 'b_url' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikdemlayer.c:1325:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1372:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1397:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:149:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:150:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1518:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:151:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:152:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:153:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:154:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1563:56: style: Parameter 'vw' can be declared as pointer to const. However it seems that 'dem_layer_download_create' is a callback function, if 'vw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikdemlayer.c:231:30: note: You might need to cast the function pointer here viking-1.10/src/vikdemlayer.c:1563:56: note: Parameter 'vw' can be declared as pointer to const 2.18.0 viking-1.10/src/vikdemlayer.c:156:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1577:18: style: Variable 'll' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikdemlayer.c:157:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1595:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1600:52: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/vikdemlayer.c:1644:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:1685:112: style: Parameter 'vvp' can be declared as pointer to const. However it seems that 'dem_layer_download_click' is a callback function, if 'vvp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikdemlayer.c:232:24: note: You might need to cast the function pointer here viking-1.10/src/vikdemlayer.c:1685:112: note: Parameter 'vvp' can be declared as pointer to const 2.18.0 viking-1.10/src/vikdemlayer.c:1685:71: style: Parameter 'vdl' can be declared as pointer to const. However it seems that 'dem_layer_download_click' is a callback function, if 'vdl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikdemlayer.c:232:24: note: You might need to cast the function pointer here viking-1.10/src/vikdemlayer.c:1685:71: note: Parameter 'vdl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikdemlayer.c:1685:92: style: Parameter 'event' can be declared as pointer to const. However it seems that 'dem_layer_download_click' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikdemlayer.c:232:24: note: You might need to cast the function pointer here viking-1.10/src/vikdemlayer.c:1685:92: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikdemlayer.c:178:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:419:44: style: Parameter 'vdl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikdemlayer.c:421:22: style: Variable 'pref_user' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikdemlayer.c:422:22: style: Variable 'pref_password' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikdemlayer.c:457:53: style: Parameter 'vdl' can be declared as pointer to const. However it seems that 'dem_layer_tooltip' is a callback function, if 'vdl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikdemlayer.c:317:41: note: You might need to cast the function pointer here viking-1.10/src/vikdemlayer.c:457:53: note: Parameter 'vdl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikdemlayer.c:469:51: style: Parameter 'data' can be declared as pointer to const. However it seems that 'dem_layer_unmarshall' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikdemlayer.c:322:29: note: You might need to cast the function pointer here viking-1.10/src/vikdemlayer.c:469:51: note: Parameter 'data' can be declared as pointer to const 2.18.0 viking-1.10/src/vikdemlayer.c:512:61: style: Parameter 'data' can be declared as pointer to const. However it seems that 'dem_layer_thread_cancel' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikdemlayer.c:651:51: note: You might need to cast the function pointer here viking-1.10/src/vikdemlayer.c:512:61: note: Parameter 'data' can be declared as pointer to const 2.18.0 viking-1.10/src/vikdemlayer.c:567:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:807:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GdkColor [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikdemlayer.c:850:26: style: Variable 'prevcolumn' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikdemlayer.c:850:39: style: Variable 'nextcolumn' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikexttool.c:123:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikexttool.c:157:48: style:inconclusive: Function 'ext_tool_get_label' argument 1 names different: declaration 'vw' definition 'self'. [funcArgNamesDifferent] viking-1.10/src/vikexttool.c:35:48: note: Function 'ext_tool_get_label' argument 1 names different: declaration 'vw' definition 'self'. viking-1.10/src/vikexttool.c:157:48: note: Function 'ext_tool_get_label' argument 1 names different: declaration 'vw' definition 'self'. 2.18.0 viking-1.10/src/vikexttool.c:163:45: style:inconclusive: Function 'vik_ext_tool_get_label' argument 1 names different: declaration 'self' definition 'w'. [funcArgNamesDifferent] viking-1.10/src/vikexttool.h:56:45: note: Function 'vik_ext_tool_get_label' argument 1 names different: declaration 'self' definition 'w'. viking-1.10/src/vikexttool.c:163:45: note: Function 'vik_ext_tool_get_label' argument 1 names different: declaration 'self' definition 'w'. 2.18.0 viking-1.10/src/vikexttool.c:175:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable open_at_position [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikexttool.c:60:37: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'ext_tool_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikexttool.c:116:33: note: You might need to cast the function pointer here viking-1.10/src/vikexttool.c:60:37: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikexttool.c:88:35: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'ext_tool_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikexttool.c:117:33: note: You might need to cast the function pointer here viking-1.10/src/vikexttool.c:88:35: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikexttool.c:90:22: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikexttools.c:69:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_UI_MANAGER_MENUITEM [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikfileentry.c:111:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikfileentry.c:64:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_HBOX [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikfilelist.c:103:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikfilelist.c:162:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_VBOX [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikfilelist.c:187:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikfilelist.c:204:10: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/vikfilelist.c:227:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] head viking-1.10/src/vikfilelist.c:33:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/src/vikfilelist.c:33:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 viking-1.10/src/vikfilelist.c:56:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikfilelist.c:95:17: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikgeocluelayer.c:222:62: style: Parameter 'vgl' can be declared as pointer to const. However it seems that 'geoclue_layer_tooltip' is a callback function, if 'vgl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeocluelayer.c:135:41: note: You might need to cast the function pointer here viking-1.10/src/vikgeocluelayer.c:222:62: note: Parameter 'vgl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeocluelayer.c:231:81: style:inconclusive: Function 'geoclue_layer_marshall' argument 3 names different: declaration 'len' definition 'datalen'. [funcArgNamesDifferent] viking-1.10/src/vikgeocluelayer.c:36:81: note: Function 'geoclue_layer_marshall' argument 3 names different: declaration 'len' definition 'datalen'. viking-1.10/src/vikgeocluelayer.c:231:81: note: Function 'geoclue_layer_marshall' argument 3 names different: declaration 'len' definition 'datalen'. 2.18.0 viking-1.10/src/vikgeocluelayer.c:279:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] 2.18.0 viking-1.10/src/vikgeocluelayer.c:279:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 viking-1.10/src/vikgeocluelayer.c:299:69: style: Parameter 'vgl' can be declared as pointer to const. However it seems that 'geoclue_layer_get_param' is a callback function, if 'vgl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeocluelayer.c:143:41: note: You might need to cast the function pointer here viking-1.10/src/vikgeocluelayer.c:299:69: note: Parameter 'vgl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeocluelayer.c:368:12: style: Variable 'trigger' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgeocluelayer.c:413:61: style:inconclusive: Function 'geoclue_layer_add_menu_items' argument 1 names different: declaration 'vtl' definition 'vgl'. [funcArgNamesDifferent] viking-1.10/src/vikgeocluelayer.c:44:61: note: Function 'geoclue_layer_add_menu_items' argument 1 names different: declaration 'vtl' definition 'vgl'. viking-1.10/src/vikgeocluelayer.c:413:61: note: Function 'geoclue_layer_add_menu_items' argument 1 names different: declaration 'vtl' definition 'vgl'. 2.18.0 viking-1.10/src/vikgeocluelayer.c:428:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeocluelayer.c:447:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeocluelayer.c:465:56: style: Parameter 'vgl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikgeocluelayer.c:472:59: style: Parameter 'vgl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikgeocluelayer.c:501:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TIME_SPAN_SECOND [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeocluelayer.c:547:113: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeocluelayer.c:584:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeocluelayer.c:63:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeocluelayer.c:641:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeocluelayer.c:662:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeocluelayer.c:706:2: warning: Redundant code: Found a statement that begins with NULL constant. [constStatement] 2.18.0 viking-1.10/src/vikgeocluelayer.c:723:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeocluelayer.c:74:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeoreflayer.c:1034:41: style: Comparing expression of type 'unsigned char' against value 255. Condition is always true. [compareValueOutOfTypeRangeError] 2.18.0 viking-1.10/src/vikgeoreflayer.c:1036:41: style: Comparing expression of type 'unsigned char' against value 255. Condition is always true. [compareValueOutOfTypeRangeError] 2.18.0 viking-1.10/src/vikgeoreflayer.c:1055:118: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mpp_easting [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeoreflayer.c:1078:73: style: Parameter 'menu' can be declared as pointer to const. However it seems that 'georef_layer_add_menu_items' is a callback function, if 'menu' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeoreflayer.c:133:41: note: You might need to cast the function pointer here viking-1.10/src/vikgeoreflayer.c:1078:73: note: Parameter 'menu' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeoreflayer.c:1092:55: style: Parameter 'vw' can be declared as pointer to const. However it seems that 'georef_layer_move_create' is a callback function, if 'vw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeoreflayer.c:85:30: note: You might need to cast the function pointer here viking-1.10/src/vikgeoreflayer.c:1092:55: note: Parameter 'vw' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeoreflayer.c:1097:96: style: Parameter 'event' can be declared as pointer to const. However it seems that 'georef_layer_move_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeoreflayer.c:86:74: note: You might need to cast the function pointer here viking-1.10/src/vikgeoreflayer.c:1097:96: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeoreflayer.c:1112:55: style: Parameter 'vw' can be declared as pointer to const. However it seems that 'georef_layer_zoom_create' is a callback function, if 'vw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeoreflayer.c:94:30: note: You might need to cast the function pointer here viking-1.10/src/vikgeoreflayer.c:1112:55: note: Parameter 'vw' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeoreflayer.c:1117:94: style: Parameter 'event' can be declared as pointer to const. However it seems that 'georef_layer_zoom_press' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeoreflayer.c:95:24: note: You might need to cast the function pointer here viking-1.10/src/vikgeoreflayer.c:1117:94: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeoreflayer.c:1143:94: style: Parameter 'event' can be declared as pointer to const. However it seems that 'georef_layer_move_press' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeoreflayer.c:86:24: note: You might need to cast the function pointer here viking-1.10/src/vikgeoreflayer.c:1143:94: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeoreflayer.c:1175:54: style:inconclusive: Function 'vik_georef_layer_create' argument 4 names different: declaration 'pibxbuf' definition 'pixbuf'. [funcArgNamesDifferent] viking-1.10/src/vikgeoreflayer.h:50:54: note: Function 'vik_georef_layer_create' argument 4 names different: declaration 'pibxbuf' definition 'pixbuf'. viking-1.10/src/vikgeoreflayer.c:1175:54: note: Function 'vik_georef_layer_create' argument 4 names different: declaration 'pibxbuf' definition 'pixbuf'. 2.18.0 viking-1.10/src/vikgeoreflayer.c:1176:53: style: Parameter 'coord_tl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikgeoreflayer.c:1176:53: style:inconclusive: Function 'vik_georef_layer_create' argument 5 names different: declaration 'coord_tr' definition 'coord_tl'. [funcArgNamesDifferent] viking-1.10/src/vikgeoreflayer.h:51:53: note: Function 'vik_georef_layer_create' argument 5 names different: declaration 'coord_tr' definition 'coord_tl'. viking-1.10/src/vikgeoreflayer.c:1176:53: note: Function 'vik_georef_layer_create' argument 5 names different: declaration 'coord_tr' definition 'coord_tl'. 2.18.0 viking-1.10/src/vikgeoreflayer.c:1177:53: style: Parameter 'coord_br' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikgeoreflayer.c:238:60: style: Parameter 'vgl' can be declared as pointer to const. However it seems that 'georef_layer_tooltip' is a callback function, if 'vgl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeoreflayer.c:139:41: note: You might need to cast the function pointer here viking-1.10/src/vikgeoreflayer.c:238:60: note: Parameter 'vgl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeoreflayer.c:248:57: style: Parameter 'data' can be declared as pointer to const. However it seems that 'georef_layer_unmarshall' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgeoreflayer.c:144:29: note: You might need to cast the function pointer here viking-1.10/src/vikgeoreflayer.c:248:57: note: Parameter 'data' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgeoreflayer.c:480:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_BILINEAR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeoreflayer.c:548:39: style: Comparing expression of type 'unsigned char' against value 255. Condition is always true. [compareValueOutOfTypeRangeError] 2.18.0 viking-1.10/src/vikgeoreflayer.c:578:65: style: Parameter 'values' can be declared as const array [constParameter] 2.18.0 viking-1.10/src/vikgeoreflayer.c:609:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeoreflayer.c:639:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeoreflayer.c:663:19: style: Variable 'vgl' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgeoreflayer.c:667:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeoreflayer.c:813:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeoreflayer.c:863:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgeoreflayer.c:879:14: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/vikgeoreflayer.c:928:25: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/vikgeoreflayer.c:980:27: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/vikgoto.c:190:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgoto.c:194:12: style: Variable 'provider' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgoto.c:304:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgoto.c:407:49: style: Parameter 'vgp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikgoto.c:544:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgoto.c:556:10: style: Variable 'provider' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgoto.c:599:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgoto.c:627:19: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/vikgoto.c:765:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgoto.c:84:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgototool.c:128:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgototool.c:172:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgototool.c:176:75: style: Parameter 'self' can be declared as pointer to const. However it seems that 'goto_tool_get_download_options' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgototool.c:145:33: note: You might need to cast the function pointer here viking-1.10/src/vikgototool.c:176:75: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgototool.c:221:63: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikgototool.c:308:46: style:inconclusive: Function 'vik_goto_tool_free_candidate' argument 1 names different: declaration 'candidate' definition 'data'. [funcArgNamesDifferent] viking-1.10/src/vikgototool.h:67:46: note: Function 'vik_goto_tool_free_candidate' argument 1 names different: declaration 'candidate' definition 'data'. viking-1.10/src/vikgototool.c:308:46: note: Function 'vik_goto_tool_free_candidate' argument 1 names different: declaration 'candidate' definition 'data'. 2.18.0 viking-1.10/src/vikgototool.c:65:41: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'goto_tool_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgototool.c:121:33: note: You might need to cast the function pointer here viking-1.10/src/vikgototool.c:65:41: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgototool.c:93:39: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'goto_tool_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgototool.c:122:33: note: You might need to cast the function pointer here viking-1.10/src/vikgototool.c:93:39: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgototool.c:95:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgotoxmltool.c:169:45: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_goto_xml_tool_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgotoxmltool.c:221:32: note: You might need to cast the function pointer here viking-1.10/src/vikgotoxmltool.c:169:45: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgotoxmltool.c:171:26: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgotoxmltool.c:228:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgotoxmltool.c:306:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgotoxmltool.c:363:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgotoxmltool.c:465:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgotoxmltool.c:536:26: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgotoxmltool.c:543:27: style: Same expression on both sides of '||'. [duplicateExpression] 2.18.0 viking-1.10/src/vikgotoxmltool.c:562:26: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgotoxmltool.c:71:47: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_goto_xml_tool_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgotoxmltool.c:220:32: note: You might need to cast the function pointer here viking-1.10/src/vikgotoxmltool.c:71:47: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgpslayer.c:1274:9: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] 2.18.0 viking-1.10/src/vikgpslayer.c:1275:9: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] 2.18.0 viking-1.10/src/vikgpslayer.c:1335:9: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] 2.18.0 viking-1.10/src/vikgpslayer.c:1336:9: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] 2.18.0 viking-1.10/src/vikgpslayer.c:1387:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:1489:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:1542:5: error: Return value of allocation function 'g_thread_try_new' is not stored. [leakReturnValNotUsed] 2.18.0 viking-1.10/src/vikgpslayer.c:1581:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:1590:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:212:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:413:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:458:54: style: Parameter 'vgl' can be declared as pointer to const. However it seems that 'gps_layer_tooltip' is a callback function, if 'vgl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgpslayer.c:296:41: note: You might need to cast the function pointer here viking-1.10/src/vikgpslayer.c:458:54: note: Parameter 'vgl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgpslayer.c:483:73: style:inconclusive: Function 'gps_layer_marshall' argument 3 names different: declaration 'len' definition 'datalen'. [funcArgNamesDifferent] viking-1.10/src/vikgpslayer.c:45:73: note: Function 'gps_layer_marshall' argument 3 names different: declaration 'len' definition 'datalen'. viking-1.10/src/vikgpslayer.c:483:73: note: Function 'gps_layer_marshall' argument 3 names different: declaration 'len' definition 'datalen'. 2.18.0 viking-1.10/src/vikgpslayer.c:568:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:654:61: style: Parameter 'vgl' can be declared as pointer to const. However it seems that 'gps_layer_get_param' is a callback function, if 'vgl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgpslayer.c:304:41: note: You might need to cast the function pointer here viking-1.10/src/vikgpslayer.c:654:61: note: Parameter 'vgl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgpslayer.c:661:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:764:70: style:inconclusive: Function 'vik_gps_layer_post_read' argument 2 names different: declaration 'vp' definition 'vvp'. [funcArgNamesDifferent] viking-1.10/src/vikgpslayer.c:43:70: note: Function 'vik_gps_layer_post_read' argument 2 names different: declaration 'vp' definition 'vvp'. viking-1.10/src/vikgpslayer.c:764:70: note: Function 'vik_gps_layer_post_read' argument 2 names different: declaration 'vp' definition 'vvp'. 2.18.0 viking-1.10/src/vikgpslayer.c:780:13: style: Variable 'trigger' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikgpslayer.c:825:52: style: Parameter 'vgl' can be declared as pointer to const. However it seems that 'vik_gps_layer_configure' is a callback function, if 'vgl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgpslayer.c:282:41: note: You might need to cast the function pointer here viking-1.10/src/vikgpslayer.c:825:52: note: Parameter 'vgl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgpslayer.c:825:70: style: Parameter 'vp' can be declared as pointer to const. However it seems that 'vik_gps_layer_configure' is a callback function, if 'vp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgpslayer.c:282:41: note: You might need to cast the function pointer here viking-1.10/src/vikgpslayer.c:825:70: note: Parameter 'vp' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgpslayer.c:841:52: style:inconclusive: Function 'gps_layer_add_menu_items' argument 1 names different: declaration 'vtl' definition 'vgl'. [funcArgNamesDifferent] viking-1.10/src/vikgpslayer.c:53:52: note: Function 'gps_layer_add_menu_items' argument 1 names different: declaration 'vtl' definition 'vgl'. viking-1.10/src/vikgpslayer.c:841:52: note: Function 'gps_layer_add_menu_items' argument 1 names different: declaration 'vtl' definition 'vgl'. 2.18.0 viking-1.10/src/vikgpslayer.c:841:66: style: Parameter 'menu' can be declared as pointer to const. However it seems that 'gps_layer_add_menu_items' is a callback function, if 'menu' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikgpslayer.c:290:41: note: You might need to cast the function pointer here viking-1.10/src/vikgpslayer.c:841:66: note: Parameter 'menu' can be declared as pointer to const 2.18.0 viking-1.10/src/vikgpslayer.c:871:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:908:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikgpslayer.c:947:48: style: Parameter 'vgl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viklayer.c:111:14: style: Variable 'thread' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viklayer.c:111:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer.c:137:14: style: Variable 'thread' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viklayer.c:137:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer.c:182:50: style: Parameter 'vl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viklayer.c:254:45: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viklayer.c:350:70: style:inconclusive: Function 'vik_layer_marshall_params' argument 3 names different: declaration 'len' definition 'datalen'. [funcArgNamesDifferent] viking-1.10/src/viklayer.h:310:75: note: Function 'vik_layer_marshall_params' argument 3 names different: declaration 'len' definition 'datalen'. viking-1.10/src/viklayer.c:350:70: note: Function 'vik_layer_marshall_params' argument 3 names different: declaration 'len' definition 'datalen'. 2.18.0 viking-1.10/src/viklayer.c:352:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viklayer.c:373:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer.c:418:76: style:inconclusive: Function 'vik_layer_unmarshall_params' argument 3 names different: declaration 'len' definition 'datalen'. [funcArgNamesDifferent] viking-1.10/src/viklayer.h:311:81: note: Function 'vik_layer_unmarshall_params' argument 3 names different: declaration 'len' definition 'datalen'. viking-1.10/src/viklayer.c:418:76: note: Function 'vik_layer_unmarshall_params' argument 3 names different: declaration 'len' definition 'datalen'. 2.18.0 viking-1.10/src/viklayer.c:420:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viklayer.c:448:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer.c:521:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer.c:609:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer.c:68:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_ACTION [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer.c:766:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer_defaults.c:155:17: style: Variable 'vlp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viklayer_defaults.c:164:17: style: Variable 'vlp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viklayer_defaults.c:217:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_KEEP_COMMENTS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer_defaults.c:275:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayer_defaults.c:304:18: style: Variable 'param' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viklayer_defaults.c:387:48: style: Parameter 'vlp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viklayer_defaults.c:46:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:1022:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visible [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:1028:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visible [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:104:118: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_ACTION [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:1194:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visible [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:1209:69: style: Parameter 'vlp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viklayerspanel.c:1238:62: style: Parameter 'vlp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viklayerspanel.c:134:62: style: Parameter 'vlp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viklayerspanel.c:1375:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:159:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable label [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:198:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:198:16: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:201:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:201:11: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:203:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:206:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viklayerspanel.c:206:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:286:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:303:21: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:303:21: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:303:21: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:318:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:335:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:335:16: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:335:16: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:343:7: warning: Size of pointer 'date_str' used instead of size of its data. [pointerSize] 2.18.0 viking-1.10/src/viklayerspanel.c:344:13: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'GDate *'. [invalidPrintfArgType_uint] 2.18.0 viking-1.10/src/viklayerspanel.c:376:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:376:16: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:376:16: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viklayerspanel.c:386:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:404:67: style: Parameter 'vlp' can be declared as pointer to const. However it seems that 'layers_calendar_button_press_cb' is a callback function, if 'vlp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viklayerspanel.c:623:3: note: You might need to cast the function pointer here viking-1.10/src/viklayerspanel.c:404:67: note: Parameter 'vlp' can be declared as pointer to const 2.18.0 viking-1.10/src/viklayerspanel.c:461:21: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viklayerspanel.c:461:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:504:62: style: Parameter 'vlp' can be declared as pointer to const. However it seems that 'track_tabs_button_press_cb' is a callback function, if 'vlp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viklayerspanel.c:664:3: note: You might need to cast the function pointer here viking-1.10/src/viklayerspanel.c:504:62: note: Parameter 'vlp' can be declared as pointer to const 2.18.0 viking-1.10/src/viklayerspanel.c:537:15: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viklayerspanel.c:554:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_SMALL_TOOLBAR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:703:12: style: Variable 'thread' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viklayerspanel.c:742:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visible [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viklayerspanel.c:801:79: style: Parameter 'event' can be declared as pointer to const. However it seems that 'layers_button_press_cb' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viklayerspanel.c:548:3: note: You might need to cast the function pointer here viking-1.10/src/viklayerspanel.c:801:79: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viklayerspanel.c:818:73: style: Parameter 'event' can be declared as pointer to const. However it seems that 'layers_key_press_cb' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viklayerspanel.c:551:3: note: You might need to cast the function pointer here viking-1.10/src/viklayerspanel.c:818:73: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viklayerspanel.c:821:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Delete [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikmapniklayer.c:628:27: error: There is an unknown macro here somewhere. Configuration is required. If G_DIR_SEPARATOR_S is a macro then please configure it. [unknownMacro] 2.18.0 viking-1.10/src/vikmapslayer.c:1180:47: error: There is an unknown macro here somewhere. Configuration is required. If G_DIR_SEPARATOR_S is a macro then please configure it. [unknownMacro] 2.18.0 viking-1.10/src/vikmapslayer_compat.c:34:84: style: Parameter 'map_type' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikmapsource.c:46:36: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikmapsource.c:56:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vik_map_source_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikmapsource.c:96:44: style: Parameter 'self' can be declared as pointer to const. However it seems that '_supports_download_only_new' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikmapsource.c:77:38: note: You might need to cast the function pointer here viking-1.10/src/vikmapsource.c:96:44: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/vikmapsource.c:96:44: style:inconclusive: Function '_supports_download_only_new' argument 1 names different: declaration 'object' definition 'self'. [funcArgNamesDifferent] viking-1.10/src/vikmapsource.c:41:60: note: Function '_supports_download_only_new' argument 1 names different: declaration 'object' definition 'self'. viking-1.10/src/vikmapsource.c:96:44: note: Function '_supports_download_only_new' argument 1 names different: declaration 'object' definition 'self'. 2.18.0 viking-1.10/src/vikmapsourcedefault.c:132:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vik_map_source_default_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:139:52: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_map_source_default_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikmapsourcedefault.c:290:31: note: You might need to cast the function pointer here viking-1.10/src/vikmapsourcedefault.c:139:52: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikmapsourcedefault.c:218:50: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_map_source_default_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikmapsourcedefault.c:291:34: note: You might need to cast the function pointer here viking-1.10/src/vikmapsourcedefault.c:218:50: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikmapsourcedefault.c:321:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:440:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:450:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:460:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:485:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:495:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:505:33: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:515:33: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:525:33: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:535:33: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:557:33: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:565:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:573:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmapsourcedefault.c:578:39: style: Parameter 'self' can be declared as pointer to const. However it seems that '_download_handle_init' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikmapsourcedefault.c:309:43: note: You might need to cast the function pointer here viking-1.10/src/vikmapsourcedefault.c:578:39: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/vikmaptype.c:112:21: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmaptype.c:130:24: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikmaptype.c:84:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vik_map_type_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikradiogroup.c:103:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] head viking-1.10/src/vikradiogroup.c:33:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/src/vikradiogroup.c:33:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 viking-1.10/src/vikradiogroup.c:60:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_VBOX [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikrouting.c:154:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikrouting.c:80:9: style: Variable 'engineId' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikrouting.c:97:9: style: Variable 'elem' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikroutingengine.c:101:39: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_routing_engine_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikroutingengine.c:136:32: note: You might need to cast the function pointer here viking-1.10/src/vikroutingengine.c:101:39: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikroutingengine.c:103:28: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikroutingengine.c:154:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikroutingengine.c:183:40: style:inconclusive: Function 'vik_routing_engine_finalize' argument 1 names different: declaration 'gob' definition 'self'. [funcArgNamesDifferent] viking-1.10/src/vikroutingengine.c:41:52: note: Function 'vik_routing_engine_finalize' argument 1 names different: declaration 'gob' definition 'self'. viking-1.10/src/vikroutingengine.c:183:40: note: Function 'vik_routing_engine_finalize' argument 1 names different: declaration 'gob' definition 'self'. 2.18.0 viking-1.10/src/vikroutingengine.c:230:28: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikroutingengine.c:243:28: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikroutingengine.c:258:28: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikroutingengine.c:69:41: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_routing_engine_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikroutingengine.c:135:32: note: You might need to cast the function pointer here viking-1.10/src/vikroutingengine.c:69:41: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikroutingwebengine.c:157:39: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_routing_web_engine_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikroutingwebengine.c:215:32: note: You might need to cast the function pointer here viking-1.10/src/vikroutingwebengine.c:157:39: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikroutingwebengine.c:235:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikroutingwebengine.c:394:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vik_routing_web_engine_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikroutingwebengine.c:410:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikroutingwebengine.c:420:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikroutingwebengine.c:478:31: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikroutingwebengine.c:513:31: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikroutingwebengine.c:587:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikroutingwebengine.c:619:31: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikroutingwebengine.c:97:41: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_routing_web_engine_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikroutingwebengine.c:214:32: note: You might need to cast the function pointer here viking-1.10/src/vikroutingwebengine.c:97:41: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikslippymapsource.c:167:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vik_slippy_map_source_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikslippymapsource.c:174:51: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_slippy_map_source_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikslippymapsource.c:359:31: note: You might need to cast the function pointer here viking-1.10/src/vikslippymapsource.c:174:51: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikslippymapsource.c:270:49: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_slippy_map_source_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikslippymapsource.c:360:34: note: You might need to cast the function pointer here viking-1.10/src/vikslippymapsource.c:270:49: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikslippymapsource.c:384:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikslippymapsource.c:521:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikslippymapsource.c:531:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikslippymapsource.c:543:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikslippymapsource.c:564:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikslippymapsource.c:575:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikslippymapsource.c:586:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikslippymapsource.c:597:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikslippymapsource.c:608:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikslippymapsource.c:619:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikslippymapsource.c:630:59: style: Parameter 'src' can be declared as pointer to const. However it seems that '_mapcoord_to_center_coord' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikslippymapsource.c:364:48: note: You might need to cast the function pointer here viking-1.10/src/vikslippymapsource.c:630:59: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/vikslippymapsource.c:636:48: style: Parameter 'src' can be declared as pointer to const. However it seems that '_get_uri' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikslippymapsource.c:376:26: note: You might need to cast the function pointer here viking-1.10/src/vikslippymapsource.c:636:48: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/vikslippymapsource.c:667:61: style: Parameter 'src' can be declared as pointer to const. However it seems that '_get_download_options' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikslippymapsource.c:378:39: note: You might need to cast the function pointer here viking-1.10/src/vikslippymapsource.c:667:61: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/vikstatus.c:127:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RELIEF_NONE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikstatus.c:84:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktmsmapsource.c:144:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vik_tms_map_source_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktmsmapsource.c:151:51: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_tms_map_source_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktmsmapsource.c:296:31: note: You might need to cast the function pointer here viking-1.10/src/viktmsmapsource.c:151:51: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/viktmsmapsource.c:227:49: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_tms_map_source_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktmsmapsource.c:297:34: note: You might need to cast the function pointer here viking-1.10/src/viktmsmapsource.c:227:49: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/viktmsmapsource.c:321:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktmsmapsource.c:419:40: style: Parameter 'self' can be declared as pointer to const. However it seems that '_is_direct_file_access' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktmsmapsource.c:303:45: note: You might need to cast the function pointer here viking-1.10/src/viktmsmapsource.c:419:40: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/viktmsmapsource.c:425:29: style: Parameter 'self' can be declared as pointer to const. However it seems that '_is_mbtiles' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktmsmapsource.c:304:34: note: You might need to cast the function pointer here viking-1.10/src/viktmsmapsource.c:425:29: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/viktmsmapsource.c:431:36: style: Parameter 'self' can be declared as pointer to const. However it seems that '_is_osm_meta_tiles' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktmsmapsource.c:305:41: note: You might need to cast the function pointer here viking-1.10/src/viktmsmapsource.c:431:36: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/viktmsmapsource.c:459:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktmsmapsource.c:473:59: style: Parameter 'src' can be declared as pointer to const. However it seems that '_mapcoord_to_center_coord' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktmsmapsource.c:301:48: note: You might need to cast the function pointer here viking-1.10/src/viktmsmapsource.c:473:59: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/viktmsmapsource.c:486:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktmsmapsource.c:491:48: style: Parameter 'src' can be declared as pointer to const. However it seems that '_get_uri' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktmsmapsource.c:313:26: note: You might need to cast the function pointer here viking-1.10/src/viktmsmapsource.c:491:48: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/viktmsmapsource.c:518:61: style: Parameter 'src' can be declared as pointer to const. However it seems that '_get_download_options' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktmsmapsource.c:315:39: note: You might need to cast the function pointer here viking-1.10/src/viktmsmapsource.c:518:61: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/viktmsmapsource.c:549:26: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktmsmapsource.c:560:26: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktmsmapsource.c:571:26: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktmsmapsource.c:582:26: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktmsmapsource.c:593:26: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktmsmapsource.c:604:26: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktreeview.c:116:123: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_ACTION [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktreeview.c:123:71: style: Parameter 'path_str' can be declared as pointer to const. However it seems that 'vik_treeview_edited_cb' is a callback function, if 'path_str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktreeview.c:388:3: note: You might need to cast the function pointer here viking-1.10/src/viktreeview.c:123:71: note: Parameter 'path_str' can be declared as pointer to const 2.18.0 viking-1.10/src/viktreeview.c:144:74: style: Parameter 'path_str' can be declared as pointer to const. However it seems that 'vik_treeview_toggled_cb' is a callback function, if 'path_str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktreeview.c:366:3: note: You might need to cast the function pointer here viking-1.10/src/viktreeview.c:144:74: note: Parameter 'path_str' can be declared as pointer to const 2.18.0 viking-1.10/src/viktreeview.c:377:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TREE_VIEW_COLUMN_AUTOSIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktreeview.c:407:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TREE_VIEW_COLUMN_FIXED [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktreeview.c:480:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktreeview.c:552:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_TREE_DRAG_SOURCE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktreeview.c:644:50: style: Parameter 'vt' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktreeview.c:790:14: style: Variable 'sa' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktreeview.c:791:14: style: Variable 'sb' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktreeview.c:86:28: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktreeview.c:86:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10070:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10092:50: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10239:75: style: Parameter 'event' can be declared as pointer to const. However it seems that 'trw_layer_select_move' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:926:41: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:10239:75: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:10250:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10252:22: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10260:20: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10275:78: style: Parameter 'event' can be declared as pointer to const. However it seems that 'trw_layer_select_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:927:41: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:10275:78: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:10288:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10290:22: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10298:20: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10343:112: style:inconclusive: Function 'trw_layer_select_click' argument 4 names different: declaration 't' definition 'tet'. [funcArgNamesDifferent] viking-1.10/src/viktrwlayer.c:854:112: note: Function 'trw_layer_select_click' argument 4 names different: declaration 't' definition 'tet'. viking-1.10/src/viktrwlayer.c:10343:112: note: Function 'trw_layer_select_click' argument 4 names different: declaration 't' definition 'tet'. 2.18.0 viking-1.10/src/viktrwlayer.c:10343:76: style: Parameter 'event' can be declared as pointer to const. However it seems that 'trw_layer_select_click' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:925:41: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:10343:76: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:10378:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10516:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10530:16: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10573:16: style: Variable 'wpf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10623:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INVERT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10639:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable drawpoints_size [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10669:92: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_edit_waypoint_click' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:505:24: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:10669:92: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:10746:91: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_edit_waypoint_move' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:506:28: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:10746:91: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:10759:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10761:22: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10769:20: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10785:94: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_edit_waypoint_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:507:24: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:10785:94: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:10799:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10801:22: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10809:20: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:10972:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable draw_sync_t [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:10983:1: error: Memory leak: passalong [memleak] 2.18.0 viking-1.10/src/viktrwlayer.c:1098:59: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11049:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:1110:60: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11118:14: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11121:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11126:14: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11135:63: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11150:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11172:5: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer.c:1120:52: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:1130:56: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11318:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable font_desc [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11375:5: error: Memory leak: passalong [memleak] 2.18.0 viking-1.10/src/viktrwlayer.c:11395:76: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_edit_track_key_press' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:470:22: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:11395:76: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:11398:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Escape [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11421:78: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_edit_track_key_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:485:22: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:11421:78: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:11423:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Shift_L [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11438:98: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11463:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_2BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11483:20: style: Variable 'other_tp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11511:53: style: Redundant condition: vtl->current_track. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] 2.18.0 viking-1.10/src/viktrwlayer.c:11515:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11565:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11595:53: style: Redundant condition: vtl->current_track. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] 2.18.0 viking-1.10/src/viktrwlayer.c:1159:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11600:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:1162:55: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:11646:29: style: Redundant condition: vtl->current_track. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] 2.18.0 viking-1.10/src/viktrwlayer.c:11649:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11692:91: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_edit_track_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:483:24: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:11692:91: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:11713:55: style:inconclusive: Function 'tool_edit_track_deactivate' argument 1 names different: declaration 'vtl' definition 'ignore'. [funcArgNamesDifferent] viking-1.10/src/viktrwlayer.c:411:55: note: Function 'tool_edit_track_deactivate' argument 1 names different: declaration 'vtl' definition 'ignore'. viking-1.10/src/viktrwlayer.c:11713:55: note: Function 'tool_edit_track_deactivate' argument 1 names different: declaration 'vtl' definition 'ignore'. 2.18.0 viking-1.10/src/viktrwlayer.c:11728:55: style: Parameter 'vw' can be declared as pointer to const. However it seems that 'tool_new_waypoint_create' is a callback function, if 'vw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:438:30: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:11728:55: note: Parameter 'vw' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:11733:91: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_new_waypoint_click' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:439:24: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:11733:91: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:11739:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11761:94: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_edit_trackpoint_click' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:518:24: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:11761:94: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:11767:17: warning: Either the condition '!vtl' is redundant or there is possible null pointer dereference: vtl. [nullPointerRedundantCheck] viking-1.10/src/viktrwlayer.c:11779:7: note: Assuming that condition '!vtl' is not redundant viking-1.10/src/viktrwlayer.c:11767:17: note: Null pointer dereference 2.18.0 viking-1.10/src/viktrwlayer.c:11789:15: style: Variable 'current_tr' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11815:93: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_edit_trackpoint_move' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:519:28: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:11815:93: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:11829:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11831:22: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11847:96: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_edit_trackpoint_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:520:24: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:11847:96: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:1185:28: style: Variable 'tpt' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11862:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11864:22: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11891:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11901:14: style: Variable 'last_to' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:11928:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:11989:87: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_extended_route_finder_key_press' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:484:22: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:11989:87: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:11991:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Escape [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12015:55: style: Parameter 'vw' can be declared as pointer to const. However it seems that 'tool_show_picture_create' is a callback function, if 'vw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:528:30: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:12015:55: note: Parameter 'vw' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:12026:21: style: Variable 'event' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12053:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:1211:55: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:12139:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12172:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:12172:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12229:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:12229:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12273:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12292:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12299:15: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12301:20: style: Variable 'tpt' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12315:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12319:18: style: Variable 'wpt' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12358:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable realized [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12363:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:12379:9: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer.c:12418:58: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12439:82: style: Parameter 'dest_mode' can be declared as pointer to const. However it seems that 'waypoint_convert' is a callback function, if 'dest_mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:12454:53: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:12439:82: note: Parameter 'dest_mode' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:12444:76: style: Parameter 'dest_mode' can be declared as pointer to const. However it seems that 'track_convert' is a callback function, if 'dest_mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:12456:50: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:12444:76: note: Parameter 'dest_mode' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:12465:60: style: Parameter 'vtl' can be declared as pointer to const. However it seems that 'trw_layer_get_menu_selection' is a callback function, if 'vtl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:895:41: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:12465:60: note: Parameter 'vtl' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:12485:43: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12485:59: style: Parameter 'to' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12485:78: style: Parameter 'dist' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12539:30: style: Condition 'get_download_area_width(vvp,zoom_level,&wh)' is always false [knownConditionTrueFalse] viking-1.10/src/viktrwlayer.c:12539:30: note: Calling function 'get_download_area_width' returns 0 viking-1.10/src/viktrwlayer.c:12539:30: note: Condition 'get_download_area_width(vvp,zoom_level,&wh)' is always false 2.18.0 viking-1.10/src/viktrwlayer.c:12547:13: style: Variable 'cur_coord' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12550:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12578:8: warning: Uninitialized variable: cur_coord [uninitvar] viking-1.10/src/viktrwlayer.c:12549:10: note: Assuming condition is false viking-1.10/src/viktrwlayer.c:12578:8: note: Uninitialized variable: cur_coord 2.18.0 viking-1.10/src/viktrwlayer.c:12640:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12735:50: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:12764:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12776:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12785:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12819:155: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12847:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12893:48: style:inconclusive: Function 'trw_layer_replace_external' argument 1 names different: declaration 'vtl' definition 'trw'. [funcArgNamesDifferent] viking-1.10/src/viktrwlayer.h:195:48: note: Function 'trw_layer_replace_external' argument 1 names different: declaration 'vtl' definition 'trw'. viking-1.10/src/viktrwlayer.c:12893:48: note: Function 'trw_layer_replace_external' argument 1 names different: declaration 'vtl' definition 'trw'. 2.18.0 viking-1.10/src/viktrwlayer.c:12904:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:12919:51: style: Parameter 'vw' can be declared as pointer to const. However it seems that 'tool_splitter_create' is a callback function, if 'vw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:491:30: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:12919:51: note: Parameter 'vw' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:12924:87: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_splitter_click' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:492:24: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:12924:87: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:1306:20: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:1313:17: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:1320:17: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:1373:80: style: Parameter 'item' can be declared as pointer to const. However it seems that 'trw_layer_paste_item' is a callback function, if 'item' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:920:41: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:1373:80: note: Parameter 'item' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:1688:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:1881:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:1881:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:2118:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:2165:14: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/viktrwlayer.c:2207:125: style: Parameter 'coord' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:2207:62: style: Parameter 'fgcolour' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:2207:79: style: Parameter 'bgcolour' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:2416:18: style: Variable 'tp_end' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:2419:18: style: Variable 'tp_begin' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:2501:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:2613:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:2716:15: style: Variable 'tmp_gc' is assigned an expression that holds the same value. [redundantAssignment] viking-1.10/src/viktrwlayer.c:2714:22: note: tmp_gc is assigned 'main_gc' here. viking-1.10/src/viktrwlayer.c:2716:15: note: Variable 'tmp_gc' is assigned an expression that holds the same value. 2.18.0 viking-1.10/src/viktrwlayer.c:2716:22: style: Redundant initialization for 'tmp_gc'. The initialized value is overwritten before it is read. [redundantInitialization] viking-1.10/src/viktrwlayer.c:2714:22: note: tmp_gc is initialized viking-1.10/src/viktrwlayer.c:2716:22: note: tmp_gc is overwritten 2.18.0 viking-1.10/src/viktrwlayer.c:2722:10: style: Variable 'tmp_gc' is reassigned a value before the old one has been used. [redundantAssignment] viking-1.10/src/viktrwlayer.c:2716:22: note: tmp_gc is assigned viking-1.10/src/viktrwlayer.c:2722:10: note: tmp_gc is overwritten 2.18.0 viking-1.10/src/viktrwlayer.c:2986:51: style: Parameter 'id' can be declared as pointer to const. However it seems that 'trw_layer_draw_waypoint_cb' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:3131:43: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:2986:51: note: Parameter 'id' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:3017:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3025:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3039:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3091:48: style:inconclusive: Function 'trw_layer_configure' argument 1 names different: declaration 'l' definition 'vtl'. [funcArgNamesDifferent] viking-1.10/src/viktrwlayer.c:830:48: note: Function 'trw_layer_configure' argument 1 names different: declaration 'l' definition 'vtl'. viking-1.10/src/viktrwlayer.c:3091:48: note: Function 'trw_layer_configure' argument 1 names different: declaration 'l' definition 'vtl'. 2.18.0 viking-1.10/src/viktrwlayer.c:3117:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3220:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CROSSHAIR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3251:38: style: Parameter 'symbol' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:3257:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_BILINEAR [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3263:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkTreeIter [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3271:18: style: Variable 'tpt' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:3292:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkTreeIter [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3365:82: style: Parameter 'trk' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:3367:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3400:20: style: Local variable 't' shadows outer variable [shadowVariable] viking-1.10/src/viktrwlayer.c:3385:13: note: Shadowed declaration viking-1.10/src/viktrwlayer.c:3400:20: note: Shadow variable 2.18.0 viking-1.10/src/viktrwlayer.c:3426:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visible [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3433:70: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:3441:69: style: Parameter 'tr' can be declared as pointer to const. However it seems that 'trw_layer_routes_tooltip' is a callback function, if 'tr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:3622:50: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:3441:69: note: Parameter 'tr' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:3459:69: style: Parameter 'tr' can be declared as pointer to const. However it seems that 'trw_layer_tracks_tooltip' is a callback function, if 'tr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer.c:3523:50: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer.c:3459:69: note: Parameter 'tr' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer.c:3471:20: style: Variable 'trkpt_last' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:3533:48: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:3534:48: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:3551:11: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'GDate *'. [invalidPrintfArgType_uint] 2.18.0 viking-1.10/src/viktrwlayer.c:3552:11: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'GDate *'. [invalidPrintfArgType_uint] 2.18.0 viking-1.10/src/viktrwlayer.c:3558:13: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'GDate *'. [invalidPrintfArgType_uint] 2.18.0 viking-1.10/src/viktrwlayer.c:3670:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 viking-1.10/src/viktrwlayer.c:3680:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 viking-1.10/src/viktrwlayer.c:3686:17: style: Variable 'tr' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:3755:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 viking-1.10/src/viktrwlayer.c:3794:115: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3834:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3843:94: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:3860:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3907:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:3921:7: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 viking-1.10/src/viktrwlayer.c:3933:6: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 viking-1.10/src/viktrwlayer.c:3948:6: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 viking-1.10/src/viktrwlayer.c:3963:6: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 viking-1.10/src/viktrwlayer.c:3980:6: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 viking-1.10/src/viktrwlayer.c:3984:7: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 viking-1.10/src/viktrwlayer.c:3992:53: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:3997:53: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4002:56: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4007:59: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4012:59: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4017:62: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4038:18: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:4038:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4056:61: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4061:61: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4066:64: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4071:60: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4185:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4188:52: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4214:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4292:10: style: Variable 'label' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4314:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4335:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4373:16: style: Variable 'wpf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4410:44: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4425:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4437:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4445:16: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4445:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable waypoints [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4453:16: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4453:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable waypoints [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4469:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4480:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4492:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4505:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4636:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4699:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4727:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4749:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4766:44: style: Parameter 'vtl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4766:60: style: Parameter 'te' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4793:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4794:21: style: Variable 'vti' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4847:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4854:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:4875:52: style: Parameter 'menu' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:4999:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5068:60: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5075:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable realized [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5108:57: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5115:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable realized [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5125:20: style: Variable 'tpt' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5149:57: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5156:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable realized [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5181:66: style: Parameter 'trk' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5193:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:5193:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5218:12: style: Variable 'id' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5238:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_CASELESS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5303:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:5303:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5376:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5443:14: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5452:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5490:14: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5499:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5515:72: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5522:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5542:14: style: Variable 'wpf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5558:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5596:12: style: Variable 'wpf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5637:12: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5665:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5683:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5708:98: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5722:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5735:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5745:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5762:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5818:12: style: Variable 'wpf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5822:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5841:12: style: Variable 'wpf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5847:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5859:12: style: Variable 'wpf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5865:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5896:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5936:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5954:12: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:5970:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:5987:36: warning: Function 'goto_coord' argument order different: declaration 'vlp, vvp, vl, coord' definition 'vlp, vl, vvp, coord' [funcArgOrderDifferent] viking-1.10/src/viktrwlayer.c:302:36: note: Function 'goto_coord' argument order different: declaration 'vlp, vvp, vl, coord' definition 'vlp, vl, vvp, coord' viking-1.10/src/viktrwlayer.c:5987:36: note: Function 'goto_coord' argument order different: declaration 'vlp, vvp, vl, coord' definition 'vlp, vl, vvp, coord' 2.18.0 viking-1.10/src/viktrwlayer.c:6020:13: style: Variable 'track' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:6041:13: style: Variable 'track' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:6049:20: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:6062:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6146:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6153:9: style: Variable 'wpnm' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:6223:20: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:6235:19: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer.c:6276:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:628:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:629:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:630:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:631:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:632:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6357:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:636:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:637:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:638:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6403:18: style: Local variable 'tp' shadows outer variable [shadowVariable] viking-1.10/src/viktrwlayer.c:6363:20: note: Shadowed declaration viking-1.10/src/viktrwlayer.c:6403:18: note: Shadow variable 2.18.0 viking-1.10/src/viktrwlayer.c:6411:18: style: Local variable 'tp' shadows outer variable [shadowVariable] viking-1.10/src/viktrwlayer.c:6363:20: note: Shadowed declaration viking-1.10/src/viktrwlayer.c:6411:18: note: Shadow variable 2.18.0 viking-1.10/src/viktrwlayer.c:643:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6455:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6478:26: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:6483:25: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:6488:25: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:6517:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:651:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6557:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6573:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6587:12: style: Variable 'dems' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:6590:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6612:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:662:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:664:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6656:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:666:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:667:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:668:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6700:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:670:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6721:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:6721:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6750:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:6750:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:679:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:681:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6905:68: style: Parameter 'trk' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:6931:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:693:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:6956:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7045:18: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7045:23: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7046:13: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7080:13: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7083:13: style: Variable 'orig_trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7093:14: style: Variable 'udata' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7104:20: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7105:20: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7145:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7201:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7304:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7386:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7459:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7471:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7499:10: style: Variable 'trps' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7556:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable newsegment [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7619:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7637:50: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:7708:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7822:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7834:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable newsegment [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7936:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7967:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:7979:13: style: Variable 'track' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:7994:13: style: Variable 'track' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8037:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8052:15: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8058:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8060:57: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:8067:18: style: Variable 'wpt' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8075:57: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:8093:55: error: Invalid g_file_open_tmp() argument nr 2. A nul-terminated string is required. [invalidFunctionArgStr] 2.18.0 viking-1.10/src/viktrwlayer.c:8095:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8125:12: style: Redundant initialization for 'sign_c'. The initialized value is overwritten before it is read. [redundantInitialization] viking-1.10/src/viktrwlayer.c:8119:16: note: sign_c is initialized viking-1.10/src/viktrwlayer.c:8125:12: note: sign_c is overwritten 2.18.0 viking-1.10/src/viktrwlayer.c:8173:55: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:8175:57: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:8187:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8197:55: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:8199:57: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/viktrwlayer.c:8292:10: style: Variable 'dummy_list' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8325:10: style: Variable 'dummy_list1' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8343:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8357:14: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8381:12: style: Variable 'dummy_list2' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8412:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8463:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8513:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8593:10: style: Variable 'dummy_list' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8625:10: style: Variable 'dummy_list1' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8639:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8655:12: style: Variable 'dummy_list2' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:8677:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8727:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:8727:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8784:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8804:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8847:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer.c:8847:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8913:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8926:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8939:107: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8967:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8980:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:8993:104: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9005:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9018:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9031:104: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9051:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9096:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9126:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9144:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9163:16: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9167:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9174:16: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9178:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9197:18: style: Variable 'wpf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9201:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9227:15: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9264:15: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9294:49: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9303:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tracks [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9311:13: style: Variable 'tr' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9317:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable routes [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9353:17: style: Variable 'tr' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9358:17: style: Variable 'tr' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9377:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable waypoints [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9705:18: style: Local variable 'item' shadows outer variable [shadowVariable] viking-1.10/src/viktrwlayer.c:9333:14: note: Shadowed declaration viking-1.10/src/viktrwlayer.c:9705:18: note: Shadow variable 2.18.0 viking-1.10/src/viktrwlayer.c:9710:18: style: Local variable 'item' shadows outer variable [shadowVariable] viking-1.10/src/viktrwlayer.c:9333:14: note: Shadowed declaration viking-1.10/src/viktrwlayer.c:9710:18: note: Shadow variable 2.18.0 viking-1.10/src/viktrwlayer.c:9843:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer.c:9905:13: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9977:78: style: Parameter 'coord' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer.c:9979:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:1130:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:1212:18: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:127:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:248:53: style: Parameter 'trk' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:251:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:367:3: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'GDate *'. [invalidPrintfArgType_uint] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:373:3: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'GDate *'. [invalidPrintfArgType_uint] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:401:90: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:403:13: style: Variable 'num' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:407:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:497:19: style: Variable 'tot' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:507:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visible [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:530:19: style: Variable 'tot' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:540:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visible [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:574:56: style: Parameter 'tracks_and_layers' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:603:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:603:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:609:41: style: Parameter 'tracks_and_layers' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:625:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:625:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:664:3: error: Memory leak: str [memleak] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:689:47: style: Parameter 'tree_view' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:755:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:81:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:906:3: error: Memory leak: str [memleak] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:950:16: style: Variable 'acb' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:955:13: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_analysis.c:958:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_export.c:109:23: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_export.c:172:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_export.c:258:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_export.c:301:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_export.c:313:21: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_export.c:325:22: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_export.c:331:21: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_export.c:357:18: style: Variable 'active' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_export.c:83:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer_export.c:83:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:219:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:331:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:353:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:354:16: style: Variable 'wpt' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:37:39: style: Parameter 'StringTime' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:37:57: style: Parameter 'Format' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:443:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:617:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:683:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:701:17: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:706:15: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:747:2: error: Memory leak: gd [memleak] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:796:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:801:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:805:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:809:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:813:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:817:24: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:822:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:827:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:833:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_geotag.c:839:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1030:60: style: Parameter 'trackpoint' can be declared as pointer to const. However it seems that 'update_speed_distance_buttons' is a callback function, if 'trackpoint' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_propwin.c:2535:34: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_propwin.c:1030:60: note: Parameter 'trackpoint' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1050:48: style: Parameter 'trackpoint' can be declared as pointer to const. However it seems that 'update_hr_buttons' is a callback function, if 'trackpoint' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_propwin.c:2551:34: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_propwin.c:1050:48: note: Parameter 'trackpoint' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1063:49: style: Parameter 'trackpoint' can be declared as pointer to const. However it seems that 'update_cad_buttons' is a callback function, if 'trackpoint' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_propwin.c:2567:34: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_propwin.c:1063:49: note: Parameter 'trackpoint' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1076:50: style: Parameter 'trackpoint' can be declared as pointer to const. However it seems that 'update_temp_buttons' is a callback function, if 'trackpoint' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_propwin.c:2583:34: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_propwin.c:1076:50: note: Parameter 'trackpoint' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1092:51: style: Parameter 'trackpoint' can be declared as pointer to const. However it seems that 'update_power_buttons' is a callback function, if 'trackpoint' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_propwin.c:2599:34: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_propwin.c:1092:51: note: Parameter 'trackpoint' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1108:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1121:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1176:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable black_gc [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1239:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1329:77: warning: Uninitialized variable: ss [uninitvar] viking-1.10/src/viktrwlayer_propwin.c:2068:45: note: Calling function 'draw_grid_y', 5th argument 'ss' value is viking-1.10/src/viktrwlayer_propwin.c:1329:77: note: Uninitialized variable: ss 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1364:81: style: Parameter 'widgets' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1374:22: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1433:85: style: Parameter 'widgets' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1440:20: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:1830:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2062:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_ALIGN_RIGHT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2341:73: style: Parameter 'event' can be declared as pointer to const. However it seems that 'configure_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_propwin.c:3805:3: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_propwin.c:2341:73: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2428:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2442:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2677:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2835:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2880:21: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2881:21: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2960:62: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:2978:5: error: Memory leak: str [memleak] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3016:48: style: Parameter 'tree_view' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3062:52: style: Parameter 'trk' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3106:10: style: Variable 'hght_str' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3268:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3399:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3399:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3399:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3404:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3404:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3404:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3505:22: style: Variable 'vlpd' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3554:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3800:41: style: Checking if unsigned expression 'vik_track_get_dup_point_count(tr)' is less than zero. [unsignedLessThanZero] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3859:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3883:13: style: Condition 'pwgt==PGT_ELEVATION_DISTANCE' is always true [knownConditionTrueFalse] viking-1.10/src/viktrwlayer_propwin.c:3879:32: note: Assignment 'pwgt=PGT_ELEVATION_DISTANCE', assigned value is 0 viking-1.10/src/viktrwlayer_propwin.c:3883:13: note: Condition 'pwgt==PGT_ELEVATION_DISTANCE' is always true 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3892:13: style: Condition 'pwgt==PGT_SPEED_TIME' is always false [knownConditionTrueFalse] viking-1.10/src/viktrwlayer_propwin.c:3879:32: note: Assignment 'pwgt=PGT_ELEVATION_DISTANCE', assigned value is 0 viking-1.10/src/viktrwlayer_propwin.c:3892:13: note: Condition 'pwgt==PGT_SPEED_TIME' is always false 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3963:48: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'graph_tooltip_cb' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_propwin.c:4239:5: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_propwin.c:3963:48: note: Parameter 'widget' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3982:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:3999:22: style: Variable 'tp1' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:4044:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:4044:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:4044:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:4072:57: style:inconclusive: Function 'vik_trw_layer_propwin_main_refresh' argument 1 names different: declaration 'vtl' definition 'vl'. [funcArgNamesDifferent] viking-1.10/src/viktrwlayer_propwin.h:56:57: note: Function 'vik_trw_layer_propwin_main_refresh' argument 1 names different: declaration 'vtl' definition 'vl'. viking-1.10/src/viktrwlayer_propwin.c:4072:57: note: Function 'vik_trw_layer_propwin_main_refresh' argument 1 names different: declaration 'vtl' definition 'vl'. 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:4075:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:4126:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:4203:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:472:69: style: Parameter 'trackpoint' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:474:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:492:54: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:492:73: style: Parameter 'trackpoint' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:494:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:541:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:556:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_GRAVITY_STATIC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:578:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:625:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:749:57: style: Parameter 'widgets' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:768:70: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:794:14: style: Variable 'graph_box' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:795:14: style: Variable 'pc' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:795:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:839:67: style: Parameter 'event_box' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:839:91: style: Parameter 'widgets' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:896:72: style: Parameter 'trackpoint' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:925:54: style: Parameter 'trackpoint' can be declared as pointer to const. However it seems that 'update_gradient_buttons' is a callback function, if 'trackpoint' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_propwin.c:2467:34: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_propwin.c:925:54: note: Parameter 'trackpoint' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:951:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:951:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:951:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_propwin.c:956:94: style: Parameter 'trackpoint' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:162:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:172:36: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:172:76: style: Parameter 'tpwin' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:185:72: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tpwin_sync_time_to_tp' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_tpwin.c:311:3: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_tpwin.c:185:72: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:259:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_GRAVITY_STATIC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:310:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RELIEF_NONE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:329:16: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:351:21: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:362:15: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:368:26: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:376:32: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:391:25: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:512:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:603:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:603:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_tpwin.c:75:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_DIALOG [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:153:12: style: Variable 'trk' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:163:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:179:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:240:4: warning: %d in format string (no. 9) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:245:4: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:272:43: style: Parameter 'menu' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:272:60: style: Parameter 'tree_view' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:346:11: style: Variable 'trkf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:353:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:422:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:511:3: error: Memory leak: filter_case [memleak] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:53:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_GRAVITY_STATIC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:607:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:725:26: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:753:54: style:inconclusive: Function 'vik_trw_layer_track_list_show_dialog' argument 5 names different: declaration 'is_aggregate' definition 'show_layer_names'. [funcArgNamesDifferent] viking-1.10/src/viktrwlayer_tracklist.h:34:54: note: Function 'vik_trw_layer_track_list_show_dialog' argument 5 names different: declaration 'is_aggregate' definition 'show_layer_names'. viking-1.10/src/viktrwlayer_tracklist.c:753:54: note: Function 'vik_trw_layer_track_list_show_dialog' argument 5 names different: declaration 'is_aggregate' definition 'show_layer_names'. 2.18.0 viking-1.10/src/viktrwlayer_tracklist.c:756:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:158:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:173:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:202:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:248:135: error: Uninitialized struct member: ll.lat [uninitStructMember] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:248:148: error: Uninitialized struct member: ll.lon [uninitStructMember] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:292:44: style: Parameter 'menu' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:292:61: style: Parameter 'tree_view' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:376:11: style: Variable 'wptf' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:380:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:452:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:494:3: error: Memory leak: filter_case [memleak] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:54:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_GRAVITY_STATIC [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:625:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:710:26: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:738:57: style:inconclusive: Function 'vik_trw_layer_waypoint_list_show_dialog' argument 5 names different: declaration 'is_aggregate' definition 'show_layer_names'. [funcArgNamesDifferent] viking-1.10/src/viktrwlayer_waypointlist.h:34:57: note: Function 'vik_trw_layer_waypoint_list_show_dialog' argument 5 names different: declaration 'is_aggregate' definition 'show_layer_names'. viking-1.10/src/viktrwlayer_waypointlist.c:738:57: note: Function 'vik_trw_layer_waypoint_list_show_dialog' argument 5 names different: declaration 'is_aggregate' definition 'show_layer_names'. 2.18.0 viking-1.10/src/viktrwlayer_waypointlist.c:741:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:122:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RELIEF_NONE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:148:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:235:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:278:101: style: Parameter 'default_name' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:310:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_APPLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:317:24: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:320:25: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:380:24: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:414:26: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:427:24: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:50:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:550:12: style: Variable 'cmt' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:59:36: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:603:21: style: Local variable 'll' shadows outer variable [shadowVariable] viking-1.10/src/viktrwlayer_wpwin.c:515:17: note: Shadowed declaration viking-1.10/src/viktrwlayer_wpwin.c:603:21: note: Shadow variable 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:712:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/viktrwlayer_wpwin.c:71:66: style: Parameter 'event' can be declared as pointer to const. However it seems that 'time_edit_click' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/viktrwlayer_wpwin.c:392:5: note: You might need to cast the function pointer here viking-1.10/src/viktrwlayer_wpwin.c:71:66: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikutils.c:1262:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:1356:16: style: Variable 'sa' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikutils.c:1357:16: style: Variable 'sb' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikutils.c:1402:16: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] 2.18.0 viking-1.10/src/vikutils.c:1402:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:1431:9: style: Variable 'txt' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikutils.c:1439:44: style: Parameter 'trk' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikutils.c:1441:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:421:3: error: Return value of allocation function 'g_thread_try_new' is not stored. [leakReturnValNotUsed] 2.18.0 viking-1.10/src/vikutils.c:437:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:50:121: style: Parameter 'trk' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikutils.c:50:49: style: Parameter 'format_code' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikutils.c:519:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:553:13: style: Variable 'pt' can be declared as const array [constVariable] 2.18.0 viking-1.10/src/vikutils.c:570:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:601:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikutils.c:601:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:620:32: style: Parameter 'a1' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikutils.c:620:44: style: Parameter 'a2' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikutils.c:636:32: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/vikutils.c:645:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:64:13: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] 2.18.0 viking-1.10/src/vikutils.c:719:97: style:inconclusive: Function 'vu_get_time_string' argument 4 names different: declaration 'gtz' definition 'tz'. [funcArgNamesDifferent] viking-1.10/src/vikutils.h:39:97: note: Function 'vu_get_time_string' argument 4 names different: declaration 'gtz' definition 'tz'. viking-1.10/src/vikutils.c:719:97: note: Function 'vu_get_time_string' argument 4 names different: declaration 'gtz' definition 'tz'. 2.18.0 viking-1.10/src/vikutils.c:726:32: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/vikutils.c:754:32: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 viking-1.10/src/vikutils.c:782:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:901:9: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikutils.c:907:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikutils.c:954:103: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] 2.18.0 viking-1.10/src/vikviewport.c:1014:56: style:inconclusive: Function 'vik_viewport_set_zoom' argument 2 names different: declaration 'mpp' definition 'xympp'. [funcArgNamesDifferent] viking-1.10/src/vikviewport.h:78:56: note: Function 'vik_viewport_set_zoom' argument 2 names different: declaration 'mpp' definition 'xympp'. viking-1.10/src/vikviewport.c:1014:56: note: Function 'vik_viewport_set_zoom' argument 2 names different: declaration 'mpp' definition 'xympp'. 2.18.0 viking-1.10/src/vikviewport.c:1068:46: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1073:46: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1192:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:1233:13: style: Variable 'center' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:1257:13: style: Variable 'new_center' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:1278:13: style: Variable 'new_center' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:1424:43: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1430:44: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1486:17: style: Variable 'center' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:1487:17: style: Variable 'utm' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:1498:20: style: Variable 'center' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:1499:20: style: Variable 'll' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:1539:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT16 [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:1652:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_NONE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:171:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_ACTION [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:1814:50: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1842:62: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1853:50: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1858:48: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1865:48: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1877:52: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:1969:13: style: Variable 'found' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:1991:16: style: Variable 'found' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:1992:16: style: Condition 'found==NULL' is always true [knownConditionTrueFalse] viking-1.10/src/vikviewport.c:1991:24: note: Assignment 'found=NULL', assigned value is 0 viking-1.10/src/vikviewport.c:1992:16: note: Condition 'found==NULL' is always true 2.18.0 viking-1.10/src/vikviewport.c:213:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:216:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikviewport.c:315:62: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:321:63: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:328:73: style:inconclusive: Function 'vik_viewport_set_background_color' argument 2 names different: declaration 'color' definition 'colorname'. [funcArgNamesDifferent] viking-1.10/src/vikviewport.h:169:73: note: Function 'vik_viewport_set_background_color' argument 2 names different: declaration 'color' definition 'colorname'. viking-1.10/src/vikviewport.c:328:73: note: Function 'vik_viewport_set_background_color' argument 2 names different: declaration 'color' definition 'colorname'. 2.18.0 viking-1.10/src/vikviewport.c:336:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:349:61: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:355:62: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:362:72: style:inconclusive: Function 'vik_viewport_set_highlight_color' argument 2 names different: declaration 'color' definition 'colorname'. [funcArgNamesDifferent] viking-1.10/src/vikviewport.h:177:72: note: Function 'vik_viewport_set_highlight_color' argument 2 names different: declaration 'color' definition 'colorname'. viking-1.10/src/vikviewport.c:362:72: note: Function 'vik_viewport_set_highlight_color' argument 2 names different: declaration 'color' definition 'colorname'. 2.18.0 viking-1.10/src/vikviewport.c:380:53: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:385:58: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:407:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:428:49: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:526:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:538:63: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:564:56: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:579:48: style:inconclusive: Function 'vik_viewport_configure' argument 1 names different: declaration 'vp' definition 'vvp'. [funcArgNamesDifferent] viking-1.10/src/vikviewport.h:65:48: note: Function 'vik_viewport_configure' argument 1 names different: declaration 'vp' definition 'vvp'. viking-1.10/src/vikviewport.c:579:48: note: Function 'vik_viewport_configure' argument 1 names different: declaration 'vp' definition 'vvp'. 2.18.0 viking-1.10/src/vikviewport.c:586:25: style: Variable 'changed_size' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/vikviewport.c:588:18: style: Variable 'changed_size' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/vikviewport.c:737:53: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:824:98: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable font_desc [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:889:12: style: Variable 'copyright' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikviewport.c:904:96: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable font_desc [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikviewport.c:931:58: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikviewport.c:984:57: style: Parameter 'vvp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwebtool.c:100:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_url_at_position [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtool.c:64:44: style: Parameter 'vlp' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:123:58: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'webtool_datasource_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtool_datasource.c:306:32: note: You might need to cast the function pointer here viking-1.10/src/vikwebtool_datasource.c:123:58: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtool_datasource.c:125:31: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:189:31: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:195:9: style: Variable 'last_str' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:207:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:216:107: style: Parameter 'options' can be declared as pointer to const. However it seems that 'datasource_get_process_options' is a callback function, if 'options' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtool_datasource.c:279:41: note: You might need to cast the function pointer here viking-1.10/src/vikwebtool_datasource.c:216:107: note: Parameter 'options' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtool_datasource.c:232:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:249:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:312:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:423:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:463:13: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:515:31: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwebtool_datasource.c:77:60: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'webtool_datasource_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtool_datasource.c:305:32: note: You might need to cast the function pointer here viking-1.10/src/vikwebtool_datasource.c:77:60: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolbounds.c:120:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtoolbounds.c:161:52: style:inconclusive: Function 'webtool_bounds_get_url' argument 1 names different: declaration 'vw' definition 'self'. [funcArgNamesDifferent] viking-1.10/src/vikwebtoolbounds.c:39:52: note: Function 'webtool_bounds_get_url' argument 1 names different: declaration 'vw' definition 'self'. viking-1.10/src/vikwebtoolbounds.c:161:52: note: Function 'webtool_bounds_get_url' argument 1 names different: declaration 'vw' definition 'self'. 2.18.0 viking-1.10/src/vikwebtoolbounds.c:168:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtoolbounds.c:184:64: style:inconclusive: Function 'webtool_bounds_get_url_at_position' argument 1 names different: declaration 'vw' definition 'self'. [funcArgNamesDifferent] viking-1.10/src/vikwebtoolbounds.c:40:64: note: Function 'webtool_bounds_get_url_at_position' argument 1 names different: declaration 'vw' definition 'self'. viking-1.10/src/vikwebtoolbounds.c:184:64: note: Function 'webtool_bounds_get_url_at_position' argument 1 names different: declaration 'vw' definition 'self'. 2.18.0 viking-1.10/src/vikwebtoolbounds.c:63:44: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'webtool_bounds_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolbounds.c:113:33: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolbounds.c:63:44: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolbounds.c:86:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'webtool_bounds_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolbounds.c:114:33: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolbounds.c:86:42: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolbounds.c:88:28: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwebtoolcenter.c:123:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtoolcenter.c:166:56: style: Parameter 'self' can be declared as pointer to const. However it seems that 'webtool_center_mpp_to_zoom' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolcenter.c:134:24: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolcenter.c:166:56: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolcenter.c:170:100: style: Parameter 'vc' can be declared as pointer to const. However it seems that 'webtool_center_get_url_at_position' is a callback function, if 'vc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolcenter.c:132:37: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolcenter.c:170:100: note: Parameter 'vc' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolcenter.c:170:64: style:inconclusive: Function 'webtool_center_get_url_at_position' argument 1 names different: declaration 'vw' definition 'self'. [funcArgNamesDifferent] viking-1.10/src/vikwebtoolcenter.c:43:64: note: Function 'webtool_center_get_url_at_position' argument 1 names different: declaration 'vw' definition 'self'. viking-1.10/src/vikwebtoolcenter.c:170:64: note: Function 'webtool_center_get_url_at_position' argument 1 names different: declaration 'vw' definition 'self'. 2.18.0 viking-1.10/src/vikwebtoolcenter.c:176:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtoolcenter.c:200:52: style:inconclusive: Function 'webtool_center_get_url' argument 1 names different: declaration 'vw' definition 'self'. [funcArgNamesDifferent] viking-1.10/src/vikwebtoolcenter.c:42:52: note: Function 'webtool_center_get_url' argument 1 names different: declaration 'vw' definition 'self'. viking-1.10/src/vikwebtoolcenter.c:200:52: note: Function 'webtool_center_get_url' argument 1 names different: declaration 'vw' definition 'self'. 2.18.0 viking-1.10/src/vikwebtoolcenter.c:66:44: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'webtool_center_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolcenter.c:116:33: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolcenter.c:66:44: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolcenter.c:89:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'webtool_center_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolcenter.c:117:33: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolcenter.c:89:42: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolcenter.c:91:28: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwebtoolformat.c:131:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtoolformat.c:188:56: style: Parameter 'self' can be declared as pointer to const. However it seems that 'webtool_format_mpp_to_zoom' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolformat.c:151:23: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolformat.c:188:56: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolformat.c:194:64: warning: Function 'webtool_format_get_url_at_position' argument order different: declaration 'vw, vwindow, vc' definition 'self, vw, vc' [funcArgOrderDifferent] viking-1.10/src/vikwebtoolformat.c:42:64: note: Function 'webtool_format_get_url_at_position' argument order different: declaration 'vw, vwindow, vc' definition 'self, vw, vc' viking-1.10/src/vikwebtoolformat.c:194:64: note: Function 'webtool_format_get_url_at_position' argument order different: declaration 'vw, vwindow, vc' definition 'self, vw, vc' 2.18.0 viking-1.10/src/vikwebtoolformat.c:194:95: style: Parameter 'vc' can be declared as pointer to const. However it seems that 'webtool_format_get_url_at_position' is a callback function, if 'vc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolformat.c:149:36: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolformat.c:194:95: note: Parameter 'vc' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolformat.c:201:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwebtoolformat.c:255:13: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] 2.18.0 viking-1.10/src/vikwebtoolformat.c:283:52: warning: Function 'webtool_format_get_url' argument order different: declaration 'vw, vwindow' definition 'self, vw' [funcArgOrderDifferent] viking-1.10/src/vikwebtoolformat.c:41:52: note: Function 'webtool_format_get_url' argument order different: declaration 'vw, vwindow' definition 'self, vw' viking-1.10/src/vikwebtoolformat.c:283:52: note: Function 'webtool_format_get_url' argument order different: declaration 'vw, vwindow' definition 'self, vw' 2.18.0 viking-1.10/src/vikwebtoolformat.c:67:44: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'webtool_format_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolformat.c:124:32: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolformat.c:67:44: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolformat.c:94:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'webtool_format_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwebtoolformat.c:125:32: note: You might need to cast the function pointer here viking-1.10/src/vikwebtoolformat.c:94:42: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwebtoolformat.c:96:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwindow.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] 2.18.0 viking-1.10/src/vikwindow.c:1030:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:1072:90: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WATCH [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:1120:19: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 viking-1.10/src/vikwindow.c:1122:19: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 viking-1.10/src/vikwindow.c:1340:70: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:1348:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Escape [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:1385:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:1437:10: style: Condition 'vl' is always true [knownConditionTrueFalse] 2.18.0 viking-1.10/src/vikwindow.c:1465:52: style: Parameter 'vw' can be declared as pointer to const. However it seems that 'key_release_event_vlp' is a callback function, if 'vw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:1190:3: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:1465:52: note: Parameter 'vw' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:1465:69: style: Parameter 'event' can be declared as pointer to const. However it seems that 'key_release_event_vlp' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:1190:3: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:1465:69: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:1465:85: style: Parameter 'data' can be declared as pointer to const. However it seems that 'key_release_event_vlp' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:1190:3: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:1465:85: note: Parameter 'data' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:1477:10: style: Condition 'vl' is always true [knownConditionTrueFalse] 2.18.0 viking-1.10/src/vikwindow.c:1498:20: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikwindow.c:1503:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:1600:153: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tooltip [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:1610:10: style: Variable 'unit' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwindow.c:1630:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:1695:13: style: Variable 'old_trigger' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwindow.c:1748:66: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:1787:65: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:1915:69: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:1928:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:1982:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SCROLL_UP [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:1990:67: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:1992:24: style: Variable 'DELTA_STEP' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/vikwindow.c:2009:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2092:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2160:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable font_desc [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2503:63: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:2543:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2558:62: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:2598:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PRIORITY_HIGH_IDLE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2623:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable font_desc [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2709:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2717:76: style: Parameter 'event' can be declared as pointer to const. However it seems that 'ruler_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:2813:24: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:2717:76: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:2726:51: style: Parameter 'vl' can be declared as pointer to const. However it seems that 'tool_key_press_common' is a callback function, if 'vl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:3152:22: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:2726:51: note: Parameter 'vl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:2726:68: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_key_press_common' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:3152:22: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:2726:68: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:2726:84: style: Parameter 'unused_data' can be declared as pointer to const. However it seems that 'tool_key_press_common' is a callback function, if 'unused_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:3152:22: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:2726:84: note: Parameter 'unused_data' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:2729:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Right [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2741:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Up [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2764:70: style: Parameter 'event' can be declared as pointer to const. However it seems that 'tool_key_release_common' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:3153:22: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:2764:70: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:2768:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2789:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Escape [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2874:74: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:2918:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PRIORITY_HIGH_IDLE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2924:77: style: Parameter 'event' can be declared as pointer to const. However it seems that 'zoomtool_click' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:3084:24: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:2924:77: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:2926:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2973:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:2985:79: style: Parameter 'event' can be declared as pointer to const. However it seems that 'zoomtool_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:3086:24: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:2985:79: note: Parameter 'event' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:2987:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:302:46: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:307:53: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:3098:61: style: Parameter 'vvp' can be declared as pointer to const. However it seems that 'pantool_create' is a callback function, if 'vvp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:3145:30: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:3098:61: note: Parameter 'vvp' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:3106:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_2BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:315:54: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:3198:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:3224:59: style: Parameter 'vl' can be declared as pointer to const. However it seems that 'selecttool_click' is a callback function, if 'vl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:3454:24: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:3224:59: note: Parameter 'vl' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:3226:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_2BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:323:50: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:3304:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_MOD5_MASK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:3332:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:3395:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Left [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:3415:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Menu [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:3519:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwindow.c:3670:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CURRENT_TIME [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:390:12: style: Variable 'thread' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwindow.c:3982:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FORMAT_SIZE_LONG_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:414:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4218:46: style: Parameter 'vt' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:4222:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4280:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4308:140: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4356:91: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4396:54: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:4401:53: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:4413:59: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:4468:47: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:4530:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RECENT_SORT_MRU [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4549:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkRecentData [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4575:1: error: Memory leak: recent_data [memleak] 2.18.0 viking-1.10/src/vikwindow.c:4676:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4831:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4844:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_SAVE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:4913:78: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:4963:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5026:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5073:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5078:54: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 viking-1.10/src/vikwindow.c:5194:44: style: Parameter 'a' can be declared as pointer to const. However it seems that 'mapcache_flush_cb' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:6186:152: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:5194:44: note: Parameter 'a' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:5194:58: style: Parameter 'vw' can be declared as pointer to const. However it seems that 'mapcache_flush_cb' is a callback function, if 'vw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwindow.c:6186:152: note: You might need to cast the function pointer here viking-1.10/src/vikwindow.c:5194:58: note: Parameter 'vw' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwindow.c:5236:5: error: Memory leak: texts [memleak] 2.18.0 viking-1.10/src/vikwindow.c:5327:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5405:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5435:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikwindow.c:5435:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikwindow.c:5479:11: style: Variable 'x' is assigned a value that is never used. [unreadVariable] 2.18.0 viking-1.10/src/vikwindow.c:5498:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5506:7: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikwindow.c:5506:7: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 viking-1.10/src/vikwindow.c:5589:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable viking_vvp [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5641:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_SAVE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5657:12: style: Variable 'extension' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwindow.c:5738:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5930:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:5968:54: style:inconclusive: Function 'window_change_coord_mode_cb' argument 1 names different: declaration 'old' definition 'old_a'. [funcArgNamesDifferent] viking-1.10/src/vikwindow.c:138:54: note: Function 'window_change_coord_mode_cb' argument 1 names different: declaration 'old' definition 'old_a'. viking-1.10/src/vikwindow.c:5968:54: note: Function 'window_change_coord_mode_cb' argument 1 names different: declaration 'old' definition 'old_a'. 2.18.0 viking-1.10/src/vikwindow.c:6049:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:6064:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:6299:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_active [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:636:11: style: Variable 'zoom_vals' can be declared as const array [constVariable] 2.18.0 viking-1.10/src/vikwindow.c:6458:3: error: Memory leak: action.label [memleak] 2.18.0 viking-1.10/src/vikwindow.c:6458:3: error: Memory leak: action_dl.label [memleak] 2.18.0 viking-1.10/src/vikwindow.c:6458:3: error: Memory leak: action_dl.name [memleak] 2.18.0 viking-1.10/src/vikwindow.c:6504:57: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:6527:57: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:6546:54: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:6566:60: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:6583:56: style: Parameter 'vw' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:706:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:718:57: style: Parameter 'vl' can be declared as pointer to const [constParameterPointer] 2.18.0 viking-1.10/src/vikwindow.c:732:87: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:775:117: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_ACTION [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwindow.c:892:14: style: Variable 'str' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwindow.c:896:15: style: Local variable 'entries' shadows outer variable [shadowVariable] viking-1.10/src/vikwindow.c:6110:23: note: Shadowed declaration viking-1.10/src/vikwindow.c:896:15: note: Shadow variable 2.18.0 viking-1.10/src/vikwmscmapsource.c:137:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vik_wmsc_map_source_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwmscmapsource.c:144:51: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_wmsc_map_source_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwmscmapsource.c:289:31: note: You might need to cast the function pointer here viking-1.10/src/vikwmscmapsource.c:144:51: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwmscmapsource.c:220:49: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'vik_wmsc_map_source_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwmscmapsource.c:290:34: note: You might need to cast the function pointer here viking-1.10/src/vikwmscmapsource.c:220:49: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwmscmapsource.c:314:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwmscmapsource.c:422:40: style: Parameter 'self' can be declared as pointer to const. However it seems that '_is_direct_file_access' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwmscmapsource.c:296:45: note: You might need to cast the function pointer here viking-1.10/src/vikwmscmapsource.c:422:40: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwmscmapsource.c:428:29: style: Parameter 'self' can be declared as pointer to const. However it seems that '_is_mbtiles' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwmscmapsource.c:297:34: note: You might need to cast the function pointer here viking-1.10/src/vikwmscmapsource.c:428:29: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwmscmapsource.c:434:36: style: Parameter 'self' can be declared as pointer to const. However it seems that '_is_osm_meta_tiles' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwmscmapsource.c:298:41: note: You might need to cast the function pointer here viking-1.10/src/vikwmscmapsource.c:434:36: note: Parameter 'self' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwmscmapsource.c:452:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwmscmapsource.c:466:59: style: Parameter 'src' can be declared as pointer to const. However it seems that '_mapcoord_to_center_coord' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwmscmapsource.c:294:48: note: You might need to cast the function pointer here viking-1.10/src/vikwmscmapsource.c:466:59: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwmscmapsource.c:479:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwmscmapsource.c:484:48: style: Parameter 'src' can be declared as pointer to const. However it seems that '_get_uri' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwmscmapsource.c:306:26: note: You might need to cast the function pointer here viking-1.10/src/vikwmscmapsource.c:484:48: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwmscmapsource.c:502:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ASCII_DTOSTR_BUF_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/src/vikwmscmapsource.c:527:61: style: Parameter 'src' can be declared as pointer to const. However it seems that '_get_download_options' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] viking-1.10/src/vikwmscmapsource.c:308:39: note: You might need to cast the function pointer here viking-1.10/src/vikwmscmapsource.c:527:61: note: Parameter 'src' can be declared as pointer to const 2.18.0 viking-1.10/src/vikwmscmapsource.c:557:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwmscmapsource.c:568:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwmscmapsource.c:579:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwmscmapsource.c:590:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwmscmapsource.c:601:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 viking-1.10/src/vikwmscmapsource.c:612:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] head viking-1.10/test/test_coord_conversion.c:31:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/test/test_coord_conversion.c:31:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 viking-1.10/test/test_coord_conversion.c:36:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIK_TYPE_WMSC_MAP_SOURCE [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/test/test_coord_conversion.c:9:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIK_COORD_LATLON [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/test/test_decimal_output.c:15:27: style: Parameter 'argv' can be declared as const array [constParameter] head viking-1.10/test/test_decimal_output.c:17:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/test/test_decimal_output.c:17:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/test/test_parse_latlon.c:12:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/test/test_parse_latlon.c:12:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 viking-1.10/test/test_parse_latlon.c:24:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] 2.18.0 viking-1.10/test/test_time.c:14:26: style: Parameter 'argv' can be declared as const array [constParameter] head viking-1.10/test/test_time.c:16:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/test/test_time.c:16:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/test/vik2vik.c:25:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head viking-1.10/test/vik2vik.c:25:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 viking-1.10/test/vik2vik.c:46:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOAD_TYPE_VIK_FAILURE_NON_FATAL [valueFlowBailoutIncompleteVar] DONE