Task #89609 - fixed.err
back to task #89609download
Error: COMPILER_WARNING (CWE-252):
avahi-0.9.rc2/avahi-autoipd/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc2/avahi-autoipd/main.c:189:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 189 | read(fd, &seed, sizeof(seed));
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 187| * booted at the same time choose different random seeds. */
# 188| if ((fd = open(RANDOM_DEVICE, O_RDONLY)) >= 0) {
# 189|-> read(fd, &seed, sizeof(seed));
# 190| close(fd);
# 191| }
Error: COMPILER_WARNING (CWE-252):
avahi-0.9.rc2/avahi-daemon/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc2/avahi-daemon/main.c:1510:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 1510 | read(fd, &seed, sizeof(seed));
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1508| * booted at the same time choose different random seeds. */
# 1509| if ((fd = open(RANDOM_DEVICE, O_RDONLY)) >= 0) {
# 1510|-> read(fd, &seed, sizeof(seed));
# 1511| close(fd);
# 1512| }