[asterisk-bugs] [JIRA] (DAHTOOL-96) gcc compiler warnings with 5.15 kernel

N A (JIRA) noreply at issues.asterisk.org
Fri Sep 16 15:28:09 CDT 2022


N A created DAHTOOL-96:
--------------------------

             Summary: gcc compiler warnings with 5.15 kernel
                 Key: DAHTOOL-96
                 URL: https://issues.asterisk.org/jira/browse/DAHTOOL-96
             Project: DAHDI-Tools
          Issue Type: Bug
      Security Level: None
          Components: General
    Affects Versions: 3.1.0
            Reporter: N A
            Assignee: Duncan Patterson


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}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list