lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] compiling lwip using arm-gnu-toolchain-13.2.Rel1-x86_64-arm


From: massimiliano cialdi
Subject: [lwip-users] compiling lwip using arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi
Date: Tue, 23 Jan 2024 11:34:34 +0100
User-agent: Mozilla Thunderbird

Hello,
I am trying to compile with gcc 13.2 (from arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi)
I have some warnings when compile dhcp.c, and I cannot understand why:

In function 'dhcp_option_byte',
    inlined from 'dhcp_discover' at ThirdParties/lwip/src/core/ipv4/dhcp.c:1053:25:
ThirdParties/lwip/src/core/ipv4/dhcp.c:1453:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1453 |   options[options_out_len++] = value;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from ThirdParties/lwip/src/include/lwip/arch.h:48,
                 from src/config/lwipopts.h:445,
                 from ThirdParties/lwip/src/include/lwip/opt.h:51,
                 from ThirdParties/lwip/src/core/ipv4/dhcp.c:66:
ThirdParties/lwip/src/include/lwip/prot/dhcp.h: In function 'dhcp_discover':
ThirdParties/lwip/src/include/lwip/prot/dhcp.h:90:26: note: at offset 68 into destination object 'options' of size 68
   90 |   PACK_STRUCT_FLD_8(u8_t options[DHCP_OPTIONS_LEN]);
      |                          ^~~~~~~
bsp/lwip/port/arch/cc.h:83:30: note: in definition of macro 'PACK_STRUCT_FIELD'
   83 | #define PACK_STRUCT_FIELD(x) x
      |                              ^
ThirdParties/lwip/src/include/lwip/prot/dhcp.h:90:3: note: in expansion of macro 'PACK_STRUCT_FLD_8'
   90 |   PACK_STRUCT_FLD_8(u8_t options[DHCP_OPTIONS_LEN]);
      |   ^~~~~~~~~~~~~~~~~
In function 'dhcp_option_byte',
    inlined from 'dhcp_reboot.isra' at ThirdParties/lwip/src/core/ipv4/dhcp.c:1291:25:
ThirdParties/lwip/src/core/ipv4/dhcp.c:1453:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1453 |   options[options_out_len++] = value;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
ThirdParties/lwip/src/include/lwip/prot/dhcp.h: In function 'dhcp_reboot.isra':
ThirdParties/lwip/src/include/lwip/prot/dhcp.h:90:26: note: at offset 68 into destination object 'options' of size 68
   90 |   PACK_STRUCT_FLD_8(u8_t options[DHCP_OPTIONS_LEN]);
      |                          ^~~~~~~
bsp/lwip/port/arch/cc.h:83:30: note: in definition of macro 'PACK_STRUCT_FIELD'
   83 | #define PACK_STRUCT_FIELD(x) x
      |                              ^
ThirdParties/lwip/src/include/lwip/prot/dhcp.h:90:3: note: in expansion of macro 'PACK_STRUCT_FLD_8'
   90 |   PACK_STRUCT_FLD_8(u8_t options[DHCP_OPTIONS_LEN]);
      |   ^~~~~~~~~~~~~~~~~
In function 'dhcp_option_byte',
    inlined from 'dhcp_select.isra' at ThirdParties/lwip/src/core/ipv4/dhcp.c:478:25:
ThirdParties/lwip/src/core/ipv4/dhcp.c:1453:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1453 |   options[options_out_len++] = value;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
ThirdParties/lwip/src/include/lwip/prot/dhcp.h: In function 'dhcp_select.isra':
ThirdParties/lwip/src/include/lwip/prot/dhcp.h:90:26: note: at offset 68 into destination object 'options' of size 68
   90 |   PACK_STRUCT_FLD_8(u8_t options[DHCP_OPTIONS_LEN]);
      |                          ^~~~~~~
bsp/lwip/port/arch/cc.h:83:30: note: in definition of macro 'PACK_STRUCT_FIELD'
   83 | #define PACK_STRUCT_FIELD(x) x
      |                              ^
ThirdParties/lwip/src/include/lwip/prot/dhcp.h:90:3: note: in expansion of macro 'PACK_STRUCT_FLD_8'
   90 |   PACK_STRUCT_FLD_8(u8_t options[DHCP_OPTIONS_LEN]);
      |   ^~~~~~~~~~~~~~~~~
In function 'dhcp_option_byte',
    inlined from 'dhcp_renew' at ThirdParties/lwip/src/core/ipv4/dhcp.c:1179:25:
ThirdParties/lwip/src/core/ipv4/dhcp.c:1453:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1453 |   options[options_out_len++] = value;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
ThirdParties/lwip/src/include/lwip/prot/dhcp.h: In function 'dhcp_renew':
ThirdParties/lwip/src/include/lwip/prot/dhcp.h:90:26: note: at offset 68 into destination object 'options' of size 68
   90 |   PACK_STRUCT_FLD_8(u8_t options[DHCP_OPTIONS_LEN]);
      |                          ^~~~~~~
bsp/lwip/port/arch/cc.h:83:30: note: in definition of macro 'PACK_STRUCT_FIELD'
   83 | #define PACK_STRUCT_FIELD(x) x
      |                              ^
ThirdParties/lwip/src/include/lwip/prot/dhcp.h:90:3: note: in expansion of macro 'PACK_STRUCT_FLD_8'
   90 |   PACK_STRUCT_FLD_8(u8_t options[DHCP_OPTIONS_LEN]);
      |   ^~~~~~~~~~~~~~~~~

Do you guys have any idea?

best regards

Massimiliano Cialdi
FIRMWARE ENGINEERING PROFESSIONAL LEADER

Powersoft S.p.A.
Via E. Conti, 5 - Scandicci (Fi) 50018 - Italy
OFFICE:    +39 055 7350230
     
PS_ISE_BM.jpg


 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]