avahi-0.9.rc1-30.20240907232031241526.master.59.g6e9a77e
List of Findings
Error: CPPCHECK_WARNING (CWE-398): [#def1]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/iface-linux.c:108: style[constVariablePointer]: Variable 'ifi' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def2]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/iface-linux.c:189: style[constVariablePointer]: Variable 'ucred' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def3]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/iface-linux.c:234: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-252): [#def4]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c:189:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-398): [#def5]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c:583: style[constVariablePointer]: Variable 'lim' can be declared as pointer to const
Error: GCC_ANALYZER_WARNING (CWE-617): [#def6]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c: scope_hint: In function ‘fork_dispatcher’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c:843:13: warning[-Wanalyzer-tainted-assertion]: use of attacked-controlled value in condition for assertion
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c:68: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c:892:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c:892:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
Error: COMPILER_WARNING (CWE-252): [#def9]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c: scope_hint: In function ‘drop_privs’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c:967:9: warning[-Wunused-result]: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def10]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c:989:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def11]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c: scope_hint: In function ‘main’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-autoipd/main.c:1658:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-398): [#def12]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/browser.c:42: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def13]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/check-nss-test.c:28: style[constParameter]: Parameter 'argv' can be declared as const array
Error: CPPCHECK_WARNING (CWE-398): [#def14]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:42: style[constParameterCallback]: Parameter 'c' can be declared as pointer to const. However it seems that 'avahi_client_callback' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def15]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:42: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_client_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def16]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:46: style[constParameterCallback]: Parameter 'g' can be declared as pointer to const. However it seems that 'avahi_entry_group_callback' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def17]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:46: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_entry_group_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def18]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:50: style[constParameterCallback]: Parameter 'g' can be declared as pointer to const. However it seems that 'avahi_entry_group2_callback' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def19]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:50: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_entry_group2_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def20]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:55: style[constParameterCallback]: Parameter 'b' can be declared as pointer to const. However it seems that 'avahi_domain_browser_callback' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def21]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:61: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_domain_browser_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def22]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:67: style[constParameterCallback]: Parameter 'r' can be declared as pointer to const. However it seems that 'avahi_service_resolver_callback' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def23]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:79: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_service_resolver_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def24]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:102: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_service_browser_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def25]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:104: style[constVariablePointer]: Variable 'sr' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def26]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:104: style[variableScope]: The scope of the variable 'sr' can be reduced.
Error: CPPCHECK_WARNING (CWE-398): [#def27]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:116: style[constParameterCallback]: Parameter 'b' can be declared as pointer to const. However it seems that 'avahi_service_type_browser_callback' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def28]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:123: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_service_type_browser_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def29]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:136: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_address_resolver_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def30]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:155: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_host_name_resolver_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def31]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:158: style[constVariablePointer]: Variable 'ar' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-475): [#def32]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:197: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def33]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:207: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def34]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:218: style[constVariablePointer]: Variable 'domain' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def35]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:220: style[constVariablePointer]: Variable 'st' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def36]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:221: style[constVariablePointer]: Variable 'hnr' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def37]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:222: style[constVariablePointer]: Variable 'aar' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-476): [#def38]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:243: warning[nullPointerRedundantCheck]: Either the condition 'ret' is redundant or there is possible null pointer dereference: ret.
Error: CPPCHECK_WARNING (CWE-476): [#def39]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:246: warning[nullPointerRedundantCheck]: Either the condition 'ret' is redundant or there is possible null pointer dereference: ret.
Error: CPPCHECK_WARNING (CWE-476): [#def40]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:249: warning[nullPointerRedundantCheck]: Either the condition 'ret' is redundant or there is possible null pointer dereference: ret.
Error: CPPCHECK_WARNING (CWE-476): [#def41]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:252: warning[nullPointerRedundantCheck]: Either the condition 'ret' is redundant or there is possible null pointer dereference: ret.
Error: CPPCHECK_WARNING (CWE-475): [#def42]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client-test.c:264: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-476): [#def43]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client.c:144: warning[nullPointerRedundantCheck]: Either the condition '!old' is redundant or there is possible null pointer dereference: old.
Error: CPPCHECK_WARNING (CWE-563): [#def44]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/client.c:800: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def45]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:55: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def46]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:191: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def47]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:299: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def48]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:397: style[unreadVariable]: Variable 'txt' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def49]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:397: warning[uselessAssignmentPtrArg]: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
Error: CPPCHECK_WARNING (CWE-563): [#def50]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:415: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def51]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:533: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def52]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:644: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def53]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:730: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def54]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/entrygroup.c:821: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def55]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-client/xdg-config.c:39: style[constVariablePointer]: Variable 'p' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def56]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/alternative.c:35: style[constParameterPointer]: Parameter 'c' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def57]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/alternative.c:54: style[constVariablePointer]: Variable 'ret' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def58]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/dbus-watch-glue.c:311: style[variableScope]: The scope of the variable 'd' can be reduced.
Error: CPPCHECK_WARNING (CWE-570): [#def59]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/malloc.c:103: style[unsignedLessThanZero]: Checking if unsigned expression 'size' is less than zero.
Error: CPPCHECK_WARNING (CWE-570): [#def60]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/malloc.c:116: style[unsignedLessThanZero]: Checking if unsigned expression 'size' is less than zero.
Error: CPPCHECK_WARNING (CWE-664): [#def61]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/malloc.c:214: error[va_list_usedBeforeStarted]: va_list 'ap2' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def62]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/malloc.c:215: error[va_list_usedBeforeStarted]: va_list 'ap2' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def63]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/malloc.c:216: error[va_list_usedBeforeStarted]: va_list 'ap2' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-398): [#def64]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/rlist.c:41: style[constParameterPointer]: Parameter 'data' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-252): [#def65]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/simple-watch.c: scope_hint: In function 'avahi_simple_poll_wakeup'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/simple-watch.c:101:5: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result'
Error: COMPILER_WARNING (CWE-252): [#def66]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/simple-watch.c: scope_hint: In function ‘avahi_simple_poll_wakeup’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/simple-watch.c:101:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-570): [#def67]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/simple-watch.c:605: style[knownConditionTrueFalse]: Condition '(r=avahi_simple_poll_dispatch(s))!=0' is always false
Error: CPPCHECK_WARNING (CWE-398): [#def68]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/simple-watch.c:641: style[variableScope]: The scope of the variable 'r' can be reduced.
Error: CPPCHECK_WARNING (CWE-475): [#def69]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/strlst-test.c:37: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-686): [#def70]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/strlst-test.c:67: warning[invalidPrintfArgType_uint]: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed char'.
Error: CPPCHECK_WARNING (CWE-563): [#def71]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/strlst.c:221: style[unreadVariable]: Variable 'l' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def72]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/strlst.c:221: warning[uselessAssignmentPtrArg]: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
Error: CPPCHECK_WARNING (CWE-563): [#def73]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/strlst.c:261: style[unreadVariable]: Variable 'l' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def74]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/strlst.c:335: style[variableScope]: The scope of the variable 'va' can be reduced.
Error: COMPILER_WARNING (CWE-843): [#def75]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c: scope_hint: In function 'client_callback'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:325:18: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_discovery_browse_status, sw_uint32, const char *, const char *, const char *, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'}
Error: CPPCHECK_WARNING (CWE-398): [#def76]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:590: style[variableScope]: The scope of the variable 'ret' can be reduced.
Error: COMPILER_WARNING (CWE-843): [#def77]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c: scope_hint: In function 'reg_report_status'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:636:13: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_discovery_publish_status, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_publish_status, void *)'}
Error: CPPCHECK_WARNING (CWE-563): [#def78]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:703: style[unreadVariable]: Variable 'ret' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def79]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:762: style[constParameterPointer]: Parameter 'text_record' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-843): [#def80]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c: scope_hint: In function 'sw_discovery_publish'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:798:19: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_discovery_publish_reply' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_publish_status, void *)'} to 'sw_result (*)(void)' {aka 'int (*)(void)'}
Error: CPPCHECK_WARNING (CWE-563): [#def81]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:828: style[redundantInitialization]: Redundant initialization for 'result'. The initialized value is overwritten before it is read.
Error: COMPILER_WARNING (CWE-843): [#def82]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c: scope_hint: In function 'domain_browser_callback'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:857:13: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_discovery_browse_status, sw_uint32, const char *, const char *, const char *, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'}
Error: COMPILER_WARNING (CWE-843): [#def83]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c: scope_hint: In function 'sw_discovery_browse_domains'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:902:19: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_discovery_browse_reply' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'} to 'sw_result (*)(void)' {aka 'int (*)(void)'}
Error: CPPCHECK_WARNING (CWE-563): [#def84]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:914: style[redundantInitialization]: Redundant initialization for 'result'. The initialized value is overwritten before it is read.
Error: COMPILER_WARNING (CWE-843): [#def85]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c: scope_hint: In function 'service_resolver_callback'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:948:13: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_uint32, const char *, const char *, const char *, sw_ipv4_address, sw_port, sw_uint8 *, sw_uint32, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, unsigned int, const char *, const char *, const char *, struct _sw_ipv4_address, short unsigned int, unsigned char *, unsigned int, void *)'}
Error: CPPCHECK_WARNING (CWE-563): [#def86]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:960: style[unreadVariable]: Variable 'host_name' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def87]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:960: warning[uselessAssignmentPtrArg]: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
Error: COMPILER_WARNING (CWE-843): [#def88]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c: scope_hint: In function 'sw_discovery_resolve'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:1011:19: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_discovery_resolve_reply' {aka 'int (*)(struct _sw_discovery *, unsigned int, unsigned int, const char *, const char *, const char *, struct _sw_ipv4_address, short unsigned int, unsigned char *, unsigned int, void *)'} to 'sw_result (*)(void)' {aka 'int (*)(void)'}
Error: CPPCHECK_WARNING (CWE-563): [#def89]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:1023: style[redundantInitialization]: Redundant initialization for 'result'. The initialized value is overwritten before it is read.
Error: COMPILER_WARNING (CWE-843): [#def90]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c: scope_hint: In function 'service_browser_callback'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:1054:13: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_discovery_browse_status, sw_uint32, const char *, const char *, const char *, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'}
Error: COMPILER_WARNING (CWE-843): [#def91]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c: scope_hint: In function 'sw_discovery_browse'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:1103:19: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_discovery_browse_reply' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'} to 'sw_result (*)(void)' {aka 'int (*)(void)'}
Error: CPPCHECK_WARNING (CWE-563): [#def92]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/compat.c:1115: style[redundantInitialization]: Redundant initialization for 'result'. The initialized value is overwritten before it is read.
Error: COMPILER_WARNING: [#def93]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/salt/salt.h:32: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/howl.h:32: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/unsupported.c:26: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/salt/platform.h:411:1: warning[-Wstrict-prototypes]: function declaration isn't a prototype
Error: COMPILER_WARNING: [#def94]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/salt/salt.h:32: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/howl.h:32: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/address.c:34: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/salt/platform.h:411:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
Error: COMPILER_WARNING (CWE-563): [#def95]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/browse.c:46:73: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: CPPCHECK_WARNING (CWE-563): [#def96]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/browse.c:51: style[unusedVariable]: Unused variable: sval
Error: COMPILER_WARNING (CWE-563): [#def97]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/browse.c:51:81: warning[-Wunused-variable]: unused variable ‘sval’
Error: COMPILER_WARNING (CWE-681): [#def98]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/browse.c: scope_hint: In function ‘my_resolver’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/browse.c:58:132: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_ipv4_address_name’ differ in signedness
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/corby/orb.h:33: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/howl.h:35: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/salt/address.h:104:65: note: expected ‘sw_string’ {aka ‘char *’} but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: COMPILER_WARNING (CWE-681): [#def99]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/browse.c:65:57: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_text_record_iterator_next’ differ in signedness
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/howl.h:41: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/discovery/text_record.h:112:97: note: expected ‘char *’ but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: COMPILER_WARNING (CWE-563): [#def100]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/browse.c: scope_hint: In function ‘my_browser’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/browse.c:83:89: warning[-Wunused-parameter]: unused parameter ‘oid’
Error: COMPILER_WARNING (CWE-563): [#def101]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/browse.c:89:97: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: COMPILER_WARNING (CWE-563): [#def102]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/publish.c:35:89: warning[-Wunused-parameter]: unused parameter ‘discovery’
Error: COMPILER_WARNING (CWE-563): [#def103]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/publish.c:36:89: warning[-Wunused-parameter]: unused parameter ‘oid’
Error: COMPILER_WARNING (CWE-563): [#def104]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/publish.c:38:97: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: COMPILER_WARNING (CWE-704): [#def105]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/publish.c: scope_hint: In function ‘my_service_reply’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/publish.c:43:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def106]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/publish.c:44:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def107]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/publish.c:45:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def108]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/publish.c:46:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-563): [#def109]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:36:105: warning[-Wunused-parameter]: unused parameter ‘session’
Error: COMPILER_WARNING (CWE-563): [#def110]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:37:105: warning[-Wunused-parameter]: unused parameter ‘oid’
Error: COMPILER_WARNING (CWE-563): [#def111]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:38:81: warning[-Wunused-parameter]: unused parameter ‘status’
Error: COMPILER_WARNING (CWE-563): [#def112]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:43:113: warning[-Wunused-parameter]: unused parameter ‘rrdatalen’
Error: COMPILER_WARNING (CWE-563): [#def113]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:45:113: warning[-Wunused-parameter]: unused parameter ‘ttl’
Error: COMPILER_WARNING (CWE-563): [#def114]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:46:113: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: CPPCHECK_WARNING (CWE-563): [#def115]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:48: style[unusedVariable]: Unused variable: address
Error: COMPILER_WARNING (CWE-563): [#def116]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:48:25: warning[-Wunused-variable]: unused variable ‘address’
Error: CPPCHECK_WARNING (CWE-398): [#def117]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:54: style[shadowVariable]: Local variable 'address' shadows outer variable
Error: COMPILER_WARNING (CWE-694): [#def118]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c: scope_hint: In function ‘query_record_reply’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:54:33: warning[-Wshadow]: declaration of ‘address’ shadows a previous local
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:48:25: note: shadowed declaration is here
Error: COMPILER_WARNING (CWE-681): [#def119]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/query.c:59:82: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_ipv4_address_name’ differ in signedness
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/corby/orb.h:33: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/howl.h:35: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/salt/address.h:104:65: note: expected ‘sw_string’ {aka ‘char *’} but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: COMPILER_WARNING (CWE-563): [#def120]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/resolve.c:46:73: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: CPPCHECK_WARNING (CWE-563): [#def121]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/resolve.c:51: style[unusedVariable]: Unused variable: sval
Error: COMPILER_WARNING (CWE-563): [#def122]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/resolve.c:51:81: warning[-Wunused-variable]: unused variable ‘sval’
Error: COMPILER_WARNING (CWE-681): [#def123]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/resolve.c: scope_hint: In function ‘my_resolver’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/resolve.c:58:132: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_ipv4_address_name’ differ in signedness
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/corby/orb.h:33: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/howl.h:35: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/salt/address.h:104:65: note: expected ‘sw_string’ {aka ‘char *’} but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: COMPILER_WARNING (CWE-681): [#def124]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/samples/resolve.c:65:57: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_text_record_iterator_next’ differ in signedness
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/howl.h:41: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/include/discovery/text_record.h:112:97: note: expected ‘char *’ but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: CPPCHECK_WARNING (CWE-398): [#def125]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/text.c:127: style[constParameterPointer]: Parameter 'val' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def126]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/text.c:192: style[constParameterPointer]: Parameter 'text_record' can be declared as pointer to const
Error: COMPILER_WARNING: [#def127]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/unsupported.c: scope_hint: In function 'sw_strerror'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/unsupported.c:62:17: warning[-Wold-style-definition]: old-style function definition
Error: COMPILER_WARNING: [#def128]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/unsupported.c: scope_hint: At top level
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-howl/unsupported.c:62:17: warning[-Wstrict-prototypes]: function declaration isn't a prototype
Error: COMPILER_WARNING: [#def129]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-libdns_sd/compat.c:47: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-libdns_sd/compat.c: scope_hint: In function 'DNSServiceBrowse'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-libdns_sd/warn.h:33:82: warning[-Wpedantic]: ISO C does not support '__FUNCTION__' predefined identifier
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-libdns_sd/compat.c:622:9: note: in expansion of macro 'AVAHI_WARN_UNSUPPORTED'
Error: COMPILER_WARNING: [#def130]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-libdns_sd/compat.c:47: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-libdns_sd/compat.c: scope_hint: In function ‘DNSServiceBrowse’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-libdns_sd/warn.h:33:82: warning[-Wpedantic]: ISO C does not support ‘__FUNCTION__’ predefined identifier
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-compat-libdns_sd/compat.c:622:9: note: in expansion of macro ‘AVAHI_WARN_UNSUPPORTED’
Error: CPPCHECK_WARNING (CWE-398): [#def131]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/announce.c:313: style[constVariablePointer]: Variable 'a' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def132]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/announce.c:330: style[constVariablePointer]: Variable 'a' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def133]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/announce.c:447: style[duplicateConditionalAssign]: Assignment 'a->state=AVAHI_WAITING' is redundant with condition 'a->state==AVAHI_WAITING'.
Error: CPPCHECK_WARNING (CWE-398): [#def134]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/avahi-test.c:56: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'dump_line' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def135]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/avahi-test.c:95: style[constParameterCallback]: Parameter 'record' can be declared as pointer to const. However it seems that 'record_browser_callback' is a callback function, if 'record' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def136]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/avahi-test.c:98: style[variableScope]: The scope of the variable 't' can be reduced.
Error: CPPCHECK_WARNING (CWE-475): [#def137]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/avahi-test.c:169: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def138]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/avahi-test.c:174: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def139]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/avahi-test.c:179: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def140]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/browse.c:163: style[constParameterPointer]: Parameter 'key' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-683): [#def141]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/cache.c:114: warning[funcArgOrderDifferent]: Function 'avahi_cache_walk' argument order different: declaration 'c, pattern, , userdata, , ' definition 'c, pattern, c, pattern, e, userdata'
Error: CPPCHECK_WARNING (CWE-398): [#def142]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/cache.c:122: style[shadowArgument]: Local variable 'e' shadows outer argument
Error: CPPCHECK_WARNING (CWE-398): [#def143]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/cache.c:133: style[shadowArgument]: Local variable 'e' shadows outer argument
Error: CPPCHECK_WARNING (CWE-398): [#def144]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/cache.c:146: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'lookup_record_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def145]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/conformance-test.c:50: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'dump_line' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-475): [#def146]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/conformance-test.c:79: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: GCC_ANALYZER_WARNING (CWE-479): [#def147]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns-spin-test.c: scope_hint: In function ‘fail’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns-spin-test.c:76:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns-spin-test.c:76:5: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
Error: CPPCHECK_WARNING (CWE-398): [#def148]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns-test.c:50: warning[assignmentInAssert]: Assert statement modifies 'a'.
Error: CPPCHECK_WARNING (CWE-398): [#def149]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns-test.c:51: warning[assignmentInAssert]: Assert statement modifies 'b'.
Error: CPPCHECK_WARNING (CWE-398): [#def150]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns-test.c:52: warning[assignmentInAssert]: Assert statement modifies 'c'.
Error: CPPCHECK_WARNING (CWE-398): [#def151]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns-test.c:53: warning[assignmentInAssert]: Assert statement modifies 'd'.
Error: CPPCHECK_WARNING (CWE-398): [#def152]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns-test.c:84: warning[assignmentInAssert]: Assert statement modifies 'l'.
Error: CPPCHECK_WARNING (CWE-570): [#def153]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns.c:43: style[unsignedLessThanZero]: Checking if unsigned expression 'mtu' is less than zero.
Error: CPPCHECK_WARNING (CWE-398): [#def154]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns.c:156: style[constParameterCallback]: Parameter 'key' can be declared as pointer to const. However it seems that 'name_table_cleanup' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def155]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns.c:179: style[constVariablePointer]: Variable 'prev' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def156]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns.c:363: style[unreadVariable]: Variable 'idx' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def157]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns.c:433: style[constVariablePointer]: Variable 'd' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def158]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns.c:449: style[constVariablePointer]: Variable 'd' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def159]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/dns.c:785: style[constVariablePointer]: Variable 'start' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def160]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:421: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def161]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:425: style[unreadVariable]: Variable 'e' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def162]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:700: style[constParameterPointer]: Parameter 'strlst' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def163]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:745: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def164]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:798: style[constParameterPointer]: Parameter 'strlst' can be declared as pointer to const
Error: COMPILER_WARNING: [#def165]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c: scope_hint: In function 'server_add_dns_server_name'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:931:32: warning[-Wformat-truncation=]: '%s' directive output may be truncated writing up to 1013 bytes into a region of size between 997 and 1001
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output between 14 and 1031 bytes into a destination of size 1014
Error: CPPCHECK_WARNING (CWE-398): [#def166]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:962: style[constVariablePointer]: Variable 's_entry' can be declared as pointer to const
Error: COMPILER_WARNING: [#def167]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c: scope_hint: In function 'avahi_server_add_dns_server_address'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:982:36: warning[-Wformat-truncation=]: '%s' directive output may be truncated writing up to 63 bytes into a region of size 61
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output 5 or more bytes (assuming 68) into a destination of size 64
Error: COMPILER_WARNING: [#def168]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c: scope_hint: In function 'avahi_server_add_dns_server_address'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:987:37: warning[-Wformat-truncation=]: '%s' directive output may be truncated writing up to 63 bytes into a region of size 60
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output 6 or more bytes (assuming 69) into a destination of size 64
Error: CPPCHECK_WARNING (CWE-563): [#def169]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/entry.c:1001: style[unreadVariable]: Variable 's_entry' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def170]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/hashmap.c:115: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def171]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/iface-linux.c:66: style[constParameterCallback]: Parameter 'nl' can be declared as pointer to const. However it seems that 'netlink_callback' is a callback function, if 'nl' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def172]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/iface-linux.c:162: style[constVariablePointer]: Variable 'ifinfomsg' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def173]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/iface-linux.c:184: style[constVariablePointer]: Variable 'r' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def174]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/iface-linux.c:326: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: COMPILER_WARNING: [#def175]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/iface.c: scope_hint: In function 'avahi_hw_interface_update_rrs'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/iface.c:143:45: warning[-Wformat-truncation=]: ' [' directive output may be truncated writing 2 bytes into a region of size between 1 and 64
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output between 4 and 322 bytes into a destination of size 64
Error: CPPCHECK_WARNING (CWE-475): [#def176]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/iface.c:145: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def177]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/iface.c:232: style[constVariablePointer]: Variable 'found' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def178]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/netlink.c:50: style[constVariablePointer]: Variable 'cred' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def179]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/querier.c:146: style[constParameterPointer]: Parameter 'key' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-570): [#def180]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/rr.c:550: style[knownConditionTrueFalse]: Condition 'al==c' is always false
Error: CPPCHECK_WARNING (CWE-570): [#def181]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/rr.c:710: style[unsignedLessThanZero]: Checking if unsigned expression 'strlst->size' is less than zero.
Error: CPPCHECK_WARNING (CWE-398): [#def182]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/server.c:516: style[constVariablePointer]: Variable 'r' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-570): [#def183]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/server.c:949: style[unsignedLessThanZero]: Checking if unsigned expression 'port' is less than zero.
Error: CPPCHECK_WARNING (CWE-398): [#def184]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/server.c:1817: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def185]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:226: style[unusedVariable]: Unused variable: yes
Error: CPPCHECK_WARNING (CWE-563): [#def186]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:272: style[unusedVariable]: Unused variable: yes
Error: CPPCHECK_WARNING (CWE-570): [#def187]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:351: style[knownConditionTrueFalse]: Condition 'ipv4_pktinfo(fd)<0' is always false
Error: CPPCHECK_WARNING (CWE-570): [#def188]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:421: style[knownConditionTrueFalse]: Condition 'ipv6_pktinfo(fd)<0' is always false
Error: GCC_ANALYZER_WARNING (CWE-131): [#def189]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c: scope_hint: In function 'sendmsg_loop'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:458:38: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:35: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:25: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-398): [#def190]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:586: style[variableScope]: The scope of the variable 'cmsg' can be reduced.
Error: CPPCHECK_WARNING (CWE-398): [#def191]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:890: style[constVariablePointer]: Variable 'i' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-570): [#def192]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:938: style[knownConditionTrueFalse]: Condition 'ipv4_pktinfo(fd)<0' is always false
Error: CPPCHECK_WARNING (CWE-570): [#def193]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/socket.c:984: style[knownConditionTrueFalse]: Condition 'ipv6_pktinfo(fd)<0' is always false
Error: CPPCHECK_WARNING (CWE-475): [#def194]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/update-test.c:51: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def195]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/update-test.c:64: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-570): [#def196]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/util.c:76: style[unsignedLessThanZero]: Checking if unsigned expression 'size' is less than zero.
Error: CPPCHECK_WARNING (CWE-570): [#def197]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/wide-area.c:129: style[unsignedLessThanZero]: Checking if unsigned expression 'l->engine->n_dns_servers' is less than zero.
Error: CPPCHECK_WARNING (CWE-476): [#def198]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/wide-area.c:438: warning[nullPointerRedundantCheck]: Either the condition 'c=find_record_in_cache(e,r)' is redundant or there is possible null pointer dereference: c.
Error: CPPCHECK_WARNING (CWE-476): [#def199]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/wide-area.c:441: warning[nullPointerRedundantCheck]: Either the condition 'c=find_record_in_cache(e,r)' is redundant or there is possible null pointer dereference: c.
Error: CPPCHECK_WARNING (CWE-476): [#def200]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/wide-area.c:444: warning[nullPointerRedundantCheck]: Either the condition 'c=find_record_in_cache(e,r)' is redundant or there is possible null pointer dereference: c.
Error: CPPCHECK_WARNING (CWE-570): [#def201]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/wide-area.c:587: style[knownConditionTrueFalse]: Condition 'e->fd_ipv6>=0' is always false
Error: CPPCHECK_WARNING (CWE-570): [#def202]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/wide-area.c:590: style[knownConditionTrueFalse]: Condition 'e->fd_ipv4>=0' is always false
Error: CPPCHECK_WARNING (CWE-563): [#def203]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/chroot.c:108: style[unusedStructMember]: union member 'Anonymous1::buf' is never used.
Error: CPPCHECK_WARNING (CWE-571): [#def204]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/chroot.c:405: style[knownConditionTrueFalse]: Condition 'r<0' is always true
Error: CPPCHECK_WARNING (CWE-562): [#def205]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/dbus-protocol.c:1392: error[danglingLifetime]: Non-local variable 'server->reconnect_timeout' will use pointer to local variable 'tv'.
Error: CPPCHECK_WARNING (CWE-563): [#def206]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/dbus-util.c:349: style[unreadVariable]: Variable 'size' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def207]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/dbus-util.c:349: warning[uselessAssignmentPtrArg]: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
Error: COMPILER_WARNING (CWE-252): [#def208]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/main.c: scope_hint: In function ‘run_server’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/main.c:1219:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def209]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/main.c: scope_hint: In function ‘make_runtime_dir’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/main.c:1445:5: warning[-Wunused-result]: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def210]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/main.c:1510:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def211]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/main.c: scope_hint: In function ‘main’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/main.c:1693:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def212]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/simple-protocol.c: scope_hint: In function ‘simple_protocol_setup’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/simple-protocol.c:524:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*server.fd’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/simple-protocol.c:41: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/simple-protocol.c:466:14: note: in expansion of macro ‘avahi_new’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/simple-protocol.c: scope_hint: In function ‘simple_protocol_setup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def213]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/simple-protocol.c:530:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*server.fd’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/simple-protocol.c:466:14: note: in expansion of macro ‘avahi_new’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-daemon/simple-protocol.c: scope_hint: In function ‘simple_protocol_setup’
Error: CPPCHECK_WARNING (CWE-398): [#def214]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-discover-standalone/main.c:268: style[constParameterCallback]: Parameter 'r' can be declared as pointer to const. However it seems that 'service_resolver_callback' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def215]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-discover-standalone/main.c:280: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'service_resolver_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def216]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-discover-standalone/main.c:314: style[constParameterCallback]: Parameter 'event' can be declared as pointer to const. However it seems that 'main_window_on_delete_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def217]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-discover-standalone/main.c:314: style[constParameterCallback]: Parameter 'widget' can be declared as pointer to const. However it seems that 'main_window_on_delete_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def218]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-dnsconfd/main.c:325: style[variableScope]: The scope of the variable 'i' can be reduced.
Error: CPPCHECK_WARNING (CWE-571): [#def219]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-dnsconfd/main.c:459: style[knownConditionTrueFalse]: Condition '!quit' is always true
Error: COMPILER_WARNING (CWE-252): [#def220]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-dnsconfd/main.c: scope_hint: In function ‘main’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-dnsconfd/main.c:618:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-783): [#def221]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:95: style[clarifyCalculation]: Clarify calculation precedence for '&' and '?'.
Error: CPPCHECK_WARNING (CWE-783): [#def222]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:96: style[clarifyCalculation]: Clarify calculation precedence for '&' and '?'.
Error: CPPCHECK_WARNING (CWE-783): [#def223]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:97: style[clarifyCalculation]: Clarify calculation precedence for '&' and '?'.
Error: CPPCHECK_WARNING (CWE-783): [#def224]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:98: style[clarifyCalculation]: Clarify calculation precedence for '&' and '?'.
Error: COMPILER_WARNING (CWE-477): [#def225]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c: scope_hint: In function 'prepare_func'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:269:9: warning[-Wdeprecated-declarations]: 'GTimeVal' is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.h:28: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:28: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def226]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c: scope_hint: In function ‘prepare_func’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:269:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.h:28: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:28: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def227]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:273:9: warning[-Wdeprecated-declarations]: 'g_source_get_current_time' is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gmain.h:793:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def228]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:273:9: warning[-Wdeprecated-declarations]: ‘g_source_get_current_time’ is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gmain.h:793:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def229]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c: scope_hint: In function 'check_func'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:299:9: warning[-Wdeprecated-declarations]: 'GTimeVal' is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def230]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c: scope_hint: In function ‘check_func’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:299:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def231]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:301:9: warning[-Wdeprecated-declarations]: 'g_source_get_current_time' is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/gmain.h:793:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def232]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:301:9: warning[-Wdeprecated-declarations]: ‘g_source_get_current_time’ is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/gmain.h:793:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def233]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c: scope_hint: In function 'dispatch_func'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:324:9: warning[-Wdeprecated-declarations]: 'GTimeVal' is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def234]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c: scope_hint: In function ‘dispatch_func’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:324:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def235]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:326:9: warning[-Wdeprecated-declarations]: 'g_source_get_current_time' is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/gmain.h:793:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def236]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-glib/glib-watch.c:326:9: warning[-Wdeprecated-declarations]: ‘g_source_get_current_time’ is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/gmain.h:793:10: note: declared here
Error: COMPILER_WARNING: [#def237]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c: scope_hint: In function 'ga_client_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:67:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def238]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c: scope_hint: In function 'ga_client_set_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:81:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def239]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:89: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def240]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:98: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: COMPILER_WARNING: [#def241]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c: scope_hint: In function 'ga_client_get_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:98:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def242]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c: scope_hint: In function 'ga_client_get_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:105:13: warning[-Wimplicit-fallthrough=]: this statement may fall through
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:106:9: note: here
Error: CPPCHECK_WARNING (CWE-398): [#def243]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:107: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def244]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c: scope_hint: In function 'ga_client_class_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:116:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.h:23: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:27: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING: [#def245]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c: scope_hint: In function 'ga_client_dispose'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:157:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def246]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c: scope_hint: In function '_avahi_client_cb'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:217:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-192): [#def247]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:226:17: warning[-Wenum-conversion]: implicit conversion from 'AvahiClientState' to 'GaClientState'
Error: COMPILER_WARNING: [#def248]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c: scope_hint: In function 'ga_client_start_in_context'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:236:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-192): [#def249]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-client.c:248:36: warning[-Wenum-conversion]: implicit conversion from 'GaClientFlags' to 'AvahiClientFlags'
Error: COMPILER_WARNING: [#def250]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:82:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def251]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:99: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: COMPILER_WARNING: [#def252]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_get_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:99:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def253]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:106: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def254]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_class_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:115:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-error.h:23: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:30: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING: [#def255]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_dispose'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:143:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def256]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_finalize'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:166:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def257]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function '_avahi_entry_group_cb'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:215:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-192): [#def258]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:222:17: warning[-Wenum-conversion]: implicit conversion from 'AvahiEntryGroupState' to 'GaEntryGroupState'
Error: CPPCHECK_WARNING (CWE-398): [#def259]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:324: style[constVariablePointer]: Variable 'kentry' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def260]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:325: style[constVariablePointer]: Variable 'ventry' can be declared as pointer to const
Error: COMPILER_WARNING: [#def261]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_add_service_full_strlist'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:378:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def262]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_add_record_full'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:487:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def263]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_service_thaw'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:517:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def264]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_attach'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:575:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def265]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_commit'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:599:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def266]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_reset'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-entry-group.c:614:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def267]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:74: style[constParameterCallback]: Parameter 'obj' can be declared as pointer to const. However it seems that 'ga_record_browser_init' is a callback function, if 'obj' is declared with const you might also need to cast function pointer(s).
Error: COMPILER_WARNING: [#def268]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c: scope_hint: In function 'ga_record_browser_set_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:85:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def269]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:109: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def270]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:118: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: COMPILER_WARNING: [#def271]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c: scope_hint: In function 'ga_record_browser_get_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:118:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def272]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:140: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def273]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c: scope_hint: In function 'ga_record_browser_class_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:150:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.h:24: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:28: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING: [#def274]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c: scope_hint: In function 'ga_record_browser_dispose'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:270:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def275]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c: scope_hint: In function 'ga_record_browser_finalize'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:292:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def276]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c: scope_hint: In function '_avahi_record_browser_cb'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:327:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def277]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c: scope_hint: In function 'ga_record_browser_attach'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-record-browser.c:359:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def278]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c: scope_hint: In function 'ga_service_browser_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:76:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def279]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c: scope_hint: In function 'ga_service_browser_set_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:93:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def280]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:113: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def281]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:122: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: COMPILER_WARNING: [#def282]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c: scope_hint: In function 'ga_service_browser_get_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:122:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def283]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:141: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def284]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c: scope_hint: In function 'ga_service_browser_class_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:152:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.h:23: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING: [#def285]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c: scope_hint: In function 'ga_service_browser_dispose'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:260:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def286]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c: scope_hint: In function 'ga_service_browser_finalize'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:282:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def287]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c: scope_hint: In function '_avahi_service_browser_cb'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:299:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def288]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c: scope_hint: In function 'ga_service_browser_attach'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-browser.c:350:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def289]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c: scope_hint: In function 'ga_service_resolver_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:80:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def290]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c: scope_hint: In function 'ga_service_resolver_set_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:99:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def291]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:125: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def292]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:134: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: COMPILER_WARNING: [#def293]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c: scope_hint: In function 'ga_service_resolver_get_property'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:135:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-398): [#def294]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:160: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def295]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c: scope_hint: In function 'ga_service_resolver_class_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:171:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.h:26: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:27: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING: [#def296]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c: scope_hint: In function 'ga_service_resolver_dispose'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:270:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def297]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c: scope_hint: In function 'ga_service_resolver_finalize'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:293:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def298]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c: scope_hint: In function '_avahi_service_resolver_cb'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:319:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def299]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c: scope_hint: In function 'ga_service_resolver_attach'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:362:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: CPPCHECK_WARNING (CWE-476): [#def300]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:369: warning[nullPointerRedundantCheck]: Either the condition 'client!=((void*)0)' is redundant or there is possible null pointer dereference: client.
Error: CPPCHECK_WARNING (CWE-398): [#def301]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:393: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: COMPILER_WARNING: [#def302]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c: scope_hint: In function 'ga_service_resolver_get_address'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/ga-service-resolver.c:394:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING: [#def303]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/signals-marshal.c: scope_hint: In function '_ga_signals_marshal_VOID__INT_ENUM_STRING_STRING_STRING_STRING_POINTER_INT_POINTER_INT'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/signals-marshal.c:88:14: warning[-Wpedantic]: ISO C forbids conversion of object pointer to function pointer type
Error: COMPILER_WARNING: [#def304]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/signals-marshal.c: scope_hint: In function '_ga_signals_marshal_VOID__INT_ENUM_STRING_STRING_STRING_UINT'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/signals-marshal.c:137:14: warning[-Wpedantic]: ISO C forbids conversion of object pointer to function pointer type
Error: COMPILER_WARNING: [#def305]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/signals-marshal.c: scope_hint: In function '_ga_signals_marshal_VOID__INT_ENUM_STRING_UINT_UINT_POINTER_INT_INT'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-gobject/signals-marshal.c:184:14: warning[-Wpedantic]: ISO C forbids conversion of object pointer to function pointer type
Error: COMPILER_WARNING (CWE-477): [#def306]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c: scope_hint: In function 'get_default_response'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:140:9: warning[-Wdeprecated-declarations]: 'gtk_dialog_get_action_area' is deprecated
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here.
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:30: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkdialog.h:203:13: note: declared here
Error: CPPCHECK_WARNING (CWE-398): [#def307]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:346: style[constParameterCallback]: Parameter 'txt' can be declared as pointer to const. However it seems that 'resolve_callback' is a callback function, if 'txt' is declared with const you might also need to cast function pointer(s).
Error: COMPILER_WARNING: [#def308]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c: scope_hint: In function 'browse_callback'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:522:13: warning[-Wimplicit-fallthrough=]: this statement may fall through
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:527:9: note: here
Error: COMPILER_WARNING: [#def309]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c: scope_hint: In function 'domain_browse_callback'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:652:13: warning[-Wimplicit-fallthrough=]: this statement may fall through
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:657:9: note: here
Error: CPPCHECK_WARNING (CWE-570): [#def310]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:758: style[unsignedLessThanZero]: Checking if unsigned expression 'd->priv->service_pulse_timeout' is less than zero.
Error: COMPILER_WARNING (CWE-477): [#def311]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c: scope_hint: In function 'response_callback'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:891:9: warning[-Wdeprecated-declarations]: 'gdk_cursor_new' is deprecated: Use 'gdk_cursor_new_for_display' instead
/usr/include/gtk-3.0/gdk/gdk.h:34: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkcursor.h:228:12: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def312]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c: scope_hint: In function 'aui_service_dialog_init'
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:1136:5: warning[-Wdeprecated-declarations]: 'gtk_misc_set_alignment' is deprecated
/usr/include/gtk-3.0/gtk/gtklabel.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkaccellabel.h:35: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/deprecated/gtkmisc.h:72:9: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def313]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:1187:5: warning[-Wdeprecated-declarations]: 'gtk_dialog_get_action_area' is deprecated
/usr/include/gtk-3.0/gtk/gtkdialog.h:203:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def314]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:1188:5: warning[-Wdeprecated-declarations]: 'gtk_dialog_get_action_area' is deprecated
/usr/include/gtk-3.0/gtk/gtkdialog.h:203:13: note: declared here
Error: CPPCHECK_WARNING (CWE-570): [#def315]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:1210: style[unsignedLessThanZero]: Checking if unsigned expression 'd->priv->start_idle' is less than zero.
Error: CPPCHECK_WARNING (CWE-398): [#def316]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:1436: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def317]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/avahi-ui.c:1490: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-686): [#def318]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-ui/bssh.c:189: warning[invalidPrintfArgType_uint]: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'.
Error: CPPCHECK_WARNING (CWE-398): [#def319]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:98: style[constParameterPointer]: Parameter 'c' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-457): [#def320]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:151: warning[uninitvar]: Uninitialized variable: to
Error: CPPCHECK_WARNING (CWE-398): [#def321]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:154: style[constParameterPointer]: Parameter 'config' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def322]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:357: style[constVariablePointer]: Variable 'b' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def323]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:368: style[unreadVariable]: Variable 'b' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def324]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:431: style[constVariablePointer]: Variable 'b' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def325]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:435: style[unreadVariable]: Variable 'b' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def326]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:505: style[constVariablePointer]: Variable 'b' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def327]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:509: style[unreadVariable]: Variable 'b' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def328]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:786: style[constVariablePointer]: Variable 'ec' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def329]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/avahi-browse.c:839: style[constVariablePointer]: Variable 't' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-252): [#def330]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/sigint.c: scope_hint: In function ‘handler’
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-utils/sigint.c:55:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-475): [#def331]
avahi-0.9.rc1-build/avahi-0.9.rc1/examples/client-publish-service.c:115: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def332]
avahi-0.9.rc1-build/avahi-0.9.rc1/examples/client-publish-service.c:125: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def333]
avahi-0.9.rc1-build/avahi-0.9.rc1/examples/core-publish-service.c:42: style[constParameterCallback]: Parameter 'g' can be declared as pointer to const. However it seems that 'entry_group_callback' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-475): [#def334]
avahi-0.9.rc1-build/avahi-0.9.rc1/examples/core-publish-service.c:103: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def335]
avahi-0.9.rc1-build/avahi-0.9.rc1/examples/core-publish-service.c:109: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def336]
avahi-0.9.rc1-build/avahi-0.9.rc1/examples/glib-integration.c:57: style[variableScope]: The scope of the variable 'loop' can be reduced.
Error: CPPCHECK_WARNING (CWE-398): [#def337]
avahi-0.9.rc1-build/avahi-0.9.rc1/tests/c-plus-plus-test.cc:79: style[constParameter]: Parameter 'argv' can be declared as const array
Scan Properties
analyzer-version-clippy | 1.81.0 |
analyzer-version-cppcheck | 2.15.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 14.2.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-33.us-west-2.compute.internal |
mock-config | fedora-rawhide-x86_64 |
project-name | avahi-0.9.rc1-30.20240907232031241526.master.59.g6e9a77e |
store-results-to | /tmp/tmpehjkifw0/avahi-0.9.rc1-30.20240907232031241526.master.59.g6e9a77e.tar.xz |
time-created | 2024-09-09 16:06:27 |
time-finished | 2024-09-09 16:09:48 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,gcc,cppcheck,clippy,shellcheck' '-o' '/tmp/tmpehjkifw0/avahi-0.9.rc1-30.20240907232031241526.master.59.g6e9a77e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--cppcheck-add-flag=--enable=style' '/tmp/tmpehjkifw0/avahi-0.9.rc1-30.20240907232031241526.master.59.g6e9a77e.src.rpm' |
tool-version | csmock-3.6.1-1.el9 |