Task #96108 - fixed.err

back to task #96108
download
Error: CPPCHECK_WARNING (CWE-475):
avahi-0.9.rc2/avahi-common/strlst-test.c:39: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
#   37|       int r;
#   38|   
#   39|->     a = avahi_string_list_new("prefix", "a", "b", NULL);
#   40|   
#   41|       a = avahi_string_list_add(a, "start");

Error: CPPCHECK_WARNING (CWE-563):
avahi-0.9.rc2/avahi-common/strlst.c:222: style[unreadVariable]: Variable 'l' is assigned a value that is never used.
#  220|       }
#  221|   
#  222|->     l = avahi_string_list_reverse(l);
#  223|   
#  224|       *e = 0;

Error: CPPCHECK_WARNING (CWE-398):
avahi-0.9.rc2/avahi-common/strlst.c:222: warning[uselessAssignmentPtrArg]: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
#  220|       }
#  221|   
#  222|->     l = avahi_string_list_reverse(l);
#  223|   
#  224|       *e = 0;

Error: CPPCHECK_WARNING (CWE-563):
avahi-0.9.rc2/avahi-common/strlst.c:262: style[unreadVariable]: Variable 'l' is assigned a value that is never used.
#  260|           }
#  261|   
#  262|->         l = avahi_string_list_reverse(l);
#  263|   
#  264|           if (used == 0 && size > 0) {