Commit 438f419
committed
net: config: init: Suppress array bounds check warning temporarily
If ipv4_multicast_address[] is not set in the yaml config file,
then compiler may emit this warning which looks like false positive:
net/lib/config/init.c: In function 'ipv4_setup.constprop':
net/lib/config/init.c:599:67: warning: offset '4294967279' outside
bounds of constant string [-Warray-bounds]
599 | ret = parse_mask(ipv4->ipv4_multicast_addresses[j].value,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from zephyr/subsys/net/lib/config/init.c:2028:
build/test/zephyr/include/generated/net_init_config.inc:137:37:
note: 'net_init_config_data' declared here
137 | static const struct net_init_config net_init_config_data = {
| ^~~~~~~~~~~~~~~~~~~~
If user has specified ipv4_multicast_addresses in the yaml file,
there is no warning printed.
Suppress this warning here temporarily before we find out why this
happens.
Signed-off-by: Jukka Rissanen <[email protected]>1 parent 32e23a8 commit 438f419
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
583 | 603 | | |
584 | 604 | | |
585 | 605 | | |
| 606 | + | |
586 | 607 | | |
587 | 608 | | |
588 | 609 | | |
| |||
0 commit comments