Summary: | DAHTOOL-00096: gcc compiler warnings with 5.15 kernel | ||
Reporter: | N A (InterLinked) | Labels: | |
Date Opened: | 2022-09-16 15:27:25 | Date Closed: | |
Priority: | Minor | Regression? | |
Status: | Triage/New | Components: | General |
Versions: | 3.1.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | 3.2.0, not 3.1.0
{noformat} CC hdlcstress.o hdlcstress.c: In function ‘send_packet’: hdlcstress.c:115:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 115 | write(fd, buf, len + 2); | ^~~~~~~~~~~~~~~~~~~~~~~ hdlcstress.c:142:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 142 | write(fd, outbuf, pos); | ^~~~~~~~~~~~~~~~~~~~~~ CCLD hdlcstress CC hdlctest.o CCLD hdlctest CC hdlcgen.o CCLD hdlcgen CC hdlcverify.o CCLD hdlcverify CC dahdi_test.o CCLD dahdi_test CC dahdi_maint.o CC version.o CCLD dahdi_maint CC dahdi_monitor.o CCLD dahdi_monitor CC dahdi_cfg.o dahdi_cfg.c: In function ‘are_all_spans_assigned’: dahdi_cfg.c:153:21: warning: ‘/span_count’ directive output may be truncated writing 11 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 153 | "%s/span_count", device_path); | ^~~~~~~~~~~ In file included from /usr/include/stdio.h:894, from dahdi_cfg.c:30: /usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: ‘__builtin___snprintf_chk’ output between 12 and 1035 bytes into a destination of size 1023 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CCLD dahdi_cfg {noformat} | ||
Comments: |