2024-04-16 20:31 ftp://ftp.de.debian.org/debian/pool/main/g/geoip/geoip_1.6.12.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 8cd680b (2024-04-15 22:43:04 +0200) count: 96 TO! elapsed-time: 2.5 1800.1 head-timing-info: old-timing-info: head results: geoip-api-c-1.6.12/apps/geoiplookup6.c:27:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/apps/geoiplookup6.c:78:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_STANDARD [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/apps/geoiplookup6.c:134:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GeoIPDBDescription [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/apps/geoiplookup.c:34:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/apps/geoiplookup.c:50:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_CHARSET_UTF8 [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/apps/geoiplookup.c:253:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GeoIPDBDescription [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/apps/geoiplookup6.c:128:18: style: Variable 'gir' can be declared as pointer to const [constVariablePointer] geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:24:48: style:inconclusive: Function 'GeoIP_org_by_name' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:429:58: note: Function 'GeoIP_org_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:24:48: note: Function 'GeoIP_org_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:46:66: style:inconclusive: Function 'GeoIP_country_code_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:380:65: note: Function 'GeoIP_country_code_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:46:66: note: Function 'GeoIP_country_code_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:51:63: style:inconclusive: Function 'GeoIP_country_code_by_name' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:358:73: note: Function 'GeoIP_country_code_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:51:63: note: Function 'GeoIP_country_code_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:56:67: style:inconclusive: Function 'GeoIP_country_code3_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:384:66: note: Function 'GeoIP_country_code3_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:56:67: note: Function 'GeoIP_country_code3_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:61:64: style:inconclusive: Function 'GeoIP_country_code3_by_name' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:360:74: note: Function 'GeoIP_country_code3_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:61:64: note: Function 'GeoIP_country_code3_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:66:66: style:inconclusive: Function 'GeoIP_country_name_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:388:65: note: Function 'GeoIP_country_name_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:66:66: note: Function 'GeoIP_country_name_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:71:63: style:inconclusive: Function 'GeoIP_country_name_by_name' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:362:73: note: Function 'GeoIP_country_name_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:71:63: note: Function 'GeoIP_country_name_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:76:45: style:inconclusive: Function 'GeoIP_id_by_name' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:391:55: note: Function 'GeoIP_id_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:76:45: note: Function 'GeoIP_id_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:80:48: style:inconclusive: Function 'GeoIP_id_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:395:58: note: Function 'GeoIP_id_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:80:48: note: Function 'GeoIP_id_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:179:51: style:inconclusive: Function 'GeoIP_assign_region_by_inetaddr' argument 3 names different: declaration 'gir' definition 'region'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:408:61: note: Function 'GeoIP_assign_region_by_inetaddr' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:179:51: note: Function 'GeoIP_assign_region_by_inetaddr' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:186:54: style:inconclusive: Function 'GeoIP_assign_region_by_inetaddr_v6' argument 3 names different: declaration 'gir' definition 'region'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:411:64: note: Function 'GeoIP_assign_region_by_inetaddr_v6' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:186:54: note: Function 'GeoIP_assign_region_by_inetaddr_v6' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:200:58: style:inconclusive: Function 'GeoIP_region_by_name' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:399:68: note: Function 'GeoIP_region_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:200:58: note: Function 'GeoIP_region_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:204:61: style:inconclusive: Function 'GeoIP_region_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:403:71: note: Function 'GeoIP_region_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:204:61: note: Function 'GeoIP_region_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:240:49: style:inconclusive: Function 'GeoIP_name_by_name' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:415:59: note: Function 'GeoIP_name_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:240:49: note: Function 'GeoIP_name_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP_deprecated.c:34:31: style: Parameter 'gi' can be declared as pointer to const [constParameterPointer] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:860:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIPDATADIR [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1220:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1443:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1453:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1538:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1640:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1862:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2746:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:261:58: style:inconclusive: Function 'GeoIP_record_by_name' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIPCity.h:53:68: note: Function 'GeoIP_record_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:261:58: note: Function 'GeoIP_record_by_name' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:270:61: style:inconclusive: Function 'GeoIP_record_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIPCity.h:57:71: note: Function 'GeoIP_record_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:270:61: note: Function 'GeoIP_record_by_name_v6' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIPCity.c:66:20: style: Variable 'bytes_read' is assigned a value that is never used. [unreadVariable] geoip-api-c-1.6.12/apps/geoiplookup.c:225:5: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] geoip-api-c-1.6.12/apps/geoiplookup.c:222:10: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] geoip-api-c-1.6.12/apps/geoiplookup.c:201:12: warning: Uninitialized variable: ptr [uninitvar] geoip-api-c-1.6.12/apps/geoiplookup.c:213:58: note: Calling function '__num_to_addr_r', 2nd argument 'ipaddr' value is geoip-api-c-1.6.12/apps/geoiplookup.c:201:12: note: Uninitialized variable: ptr geoip-api-c-1.6.12/test/benchmark.c:71:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_SILENCE [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/benchmark.c:89:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_SILENCE [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/benchmark.c:108:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_SILENCE [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/benchmark.c:128:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_SILENCE [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/benchmark.c:145:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_CHECK_CACHE [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip-asnum.c:31:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_STANDARD [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip-asnum.c:45:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] geoip-api-c-1.6.12/test/test-geoip-asnum.c:28:11: style: Variable 'org' can be declared as pointer to const [constVariablePointer] geoip-api-c-1.6.12/test/test-geoip-city.c:34:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_INDEX_CACHE [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip-city.c:48:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] geoip-api-c-1.6.12/test/test-geoip-domain.c:32:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_INDEX_CACHE [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip-domain.c:47:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] geoip-api-c-1.6.12/test/test-geoip-invalid-file.c:4:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SRCDIR [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip-isp.c:31:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_STANDARD [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip-isp.c:45:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] geoip-api-c-1.6.12/test/test-geoip-netspeed.c:29:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_STANDARD [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip-netspeed.c:43:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] geoip-api-c-1.6.12/test/test-geoip-org.c:32:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_INDEX_CACHE [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip-org.c:47:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] geoip-api-c-1.6.12/test/test-geoip-region.c:57:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEOIP_MEMORY_CACHE [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip-region.c:39:12: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] geoip-api-c-1.6.12/test/test-geoip-region.c:78:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] geoip-api-c-1.6.12/test/test-geoip.c:38:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SRCDIR [valueFlowBailoutIncompleteVar] geoip-api-c-1.6.12/test/test-geoip.c:77:13: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] geoip-api-c-1.6.12/test/test-geoip.c:128:16: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] geoip-api-c-1.6.12/test/test-geoip.c:54:72: warning: Either the condition '!db_info' is redundant or there is possible null pointer dereference: db_info. [nullPointerRedundantCheck] geoip-api-c-1.6.12/test/test-geoip.c:51:13: note: Assuming that condition '!db_info' is not redundant geoip-api-c-1.6.12/test/test-geoip.c:54:72: note: Null pointer dereference geoip-api-c-1.6.12/test/test-geoip.c:86:25: warning: Either the condition 'returnedCountry==NULL' is redundant or there is possible null pointer dereference: returnedCountry. [nullPointerRedundantCheck] geoip-api-c-1.6.12/test/test-geoip.c:80:33: note: Assuming that condition 'returnedCountry==NULL' is not redundant geoip-api-c-1.6.12/test/test-geoip.c:86:25: note: Null pointer dereference geoip-api-c-1.6.12/test/test-geoip.c:97:25: warning: Either the condition 'returnedCountry==NULL' is redundant or there is possible null pointer dereference: returnedCountry. [nullPointerRedundantCheck] geoip-api-c-1.6.12/test/test-geoip.c:91:33: note: Assuming that condition 'returnedCountry==NULL' is not redundant geoip-api-c-1.6.12/test/test-geoip.c:97:25: note: Null pointer dereference geoip-api-c-1.6.12/test/test-geoip.c:108:25: warning: Either the condition 'returnedCountry==NULL' is redundant or there is possible null pointer dereference: returnedCountry. [nullPointerRedundantCheck] geoip-api-c-1.6.12/test/test-geoip.c:102:33: note: Assuming that condition 'returnedCountry==NULL' is not redundant geoip-api-c-1.6.12/test/test-geoip.c:108:25: note: Null pointer dereference geoip-api-c-1.6.12/test/test-geoip.c:119:25: warning: Either the condition 'returnedCountry==NULL' is redundant or there is possible null pointer dereference: returnedCountry. [nullPointerRedundantCheck] geoip-api-c-1.6.12/test/test-geoip.c:113:33: note: Assuming that condition 'returnedCountry==NULL' is not redundant geoip-api-c-1.6.12/test/test-geoip.c:119:25: note: Null pointer dereference geoip-api-c-1.6.12/test/test-geoip.c:136:25: warning: Either the condition 'returnedCountry==NULL' is redundant or there is possible null pointer dereference: returnedCountry. [nullPointerRedundantCheck] geoip-api-c-1.6.12/test/test-geoip.c:130:33: note: Assuming that condition 'returnedCountry==NULL' is not redundant geoip-api-c-1.6.12/test/test-geoip.c:136:25: note: Null pointer dereference geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1838:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1745:19: style: Condition 'gi->cache' is always true [knownConditionTrueFalse] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1869:9: error: Memory leak: aifirst [memleak] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2106:20: warning: Either the condition 'gi==NULL' is redundant or there is possible null pointer dereference: gi. [nullPointerRedundantCheck] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2109:12: note: Assuming that condition 'gi==NULL' is not redundant geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2106:20: note: Null pointer dereference geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1840:28: style: The comparison 'result != 0' is always false. [knownConditionTrueFalse] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1812:18: note: 'result' is assigned value '0' here. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1840:28: note: The comparison 'result != 0' is always false. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1761:57: style:inconclusive: Function 'GeoIP_country_code_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:236:57: note: Function 'GeoIP_country_code_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1761:57: note: Function 'GeoIP_country_code_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1768:54: style:inconclusive: Function 'GeoIP_country_code_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:208:54: note: Function 'GeoIP_country_code_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1768:54: note: Function 'GeoIP_country_code_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1775:59: style:inconclusive: Function 'GeoIP_country_code3_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:240:58: note: Function 'GeoIP_country_code3_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1775:59: note: Function 'GeoIP_country_code3_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1783:55: style:inconclusive: Function 'GeoIP_country_code3_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:212:55: note: Function 'GeoIP_country_code3_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1783:55: note: Function 'GeoIP_country_code3_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1790:57: style:inconclusive: Function 'GeoIP_country_name_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:244:57: note: Function 'GeoIP_country_name_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1790:57: note: Function 'GeoIP_country_name_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1797:54: style:inconclusive: Function 'GeoIP_country_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:216:54: note: Function 'GeoIP_country_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1797:54: note: Function 'GeoIP_country_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1880:48: style:inconclusive: Function 'GeoIP_id_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:247:58: note: Function 'GeoIP_id_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1880:48: note: Function 'GeoIP_id_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1902:51: style:inconclusive: Function 'GeoIP_id_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:254:47: note: Function 'GeoIP_id_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1902:51: note: Function 'GeoIP_id_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2173:54: style:inconclusive: Function 'GeoIP_assign_region_by_inetaddr_gl' argument 3 names different: declaration 'gir' definition 'region'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:277:64: note: Function 'GeoIP_assign_region_by_inetaddr_gl' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2173:54: note: Function 'GeoIP_assign_region_by_inetaddr_gl' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2229:57: style:inconclusive: Function 'GeoIP_assign_region_by_inetaddr_v6_gl' argument 3 names different: declaration 'gir' definition 'region'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:281:67: note: Function 'GeoIP_assign_region_by_inetaddr_v6_gl' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2229:57: note: Function 'GeoIP_assign_region_by_inetaddr_v6_gl' argument 3 names different: declaration 'gir' definition 'region'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2341:48: style:inconclusive: Function 'GeoIP_region_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:261:48: note: Function 'GeoIP_region_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2341:48: note: Function 'GeoIP_region_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2360:51: style:inconclusive: Function 'GeoIP_region_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:268:51: note: Function 'GeoIP_region_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2360:51: note: Function 'GeoIP_region_by_name_v6_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2637:52: style:inconclusive: Function 'GeoIP_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. [funcArgNamesDifferent] geoip-api-c-1.6.12/libGeoIP/GeoIP.h:290:46: note: Function 'GeoIP_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2637:52: note: Function 'GeoIP_name_by_name_gl' argument 2 names different: declaration 'host' definition 'name'. geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2660:45: style: Parameter 'gi' can be declared as pointer to const [constParameterPointer] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2672:25: style: Parameter 'gi' can be declared as pointer to const [constParameterPointer] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2677:26: style: Parameter 'gi' can be declared as pointer to const [constParameterPointer] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2704:45: style: Parameter 'gi' can be declared as pointer to const [constParameterPointer] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1493:24: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2572:10: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2580:14: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:2589:14: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1877:12: error: Uninitialized variable: ipnum [uninitvar] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1806:25: style: Variable 'phe' is assigned a value that is never used. [unreadVariable] geoip-api-c-1.6.12/libGeoIP/GeoIP.c:1866:17: style: Variable 'gaierr' is assigned a value that is never used. [unreadVariable] DONE