Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/contiki-ng/examples/rpl-border-router $ make
- TARGET not defined, using target 'native'
- MKDIR build/native/obj
- CC ../../arch/platform/native/./platform.c
- CC ../../arch/platform/native/./clock.c
- CC ../../arch/platform/native/dev/xmem.c
- CC ../../arch/platform/native/./cfs-posix.c
- CC ../../arch/platform/native/./cfs-posix-dir.c
- ../../arch/platform/native/./cfs-posix-dir.c: In function ‘cfs_readdir’:
- ../../arch/platform/native/./cfs-posix-dir.c:69:3: warning: ‘strncpy’ output may be truncated copying 32 bytes from a string of length 255 [-Wstringop-truncation]
- strncpy(e->name, res->d_name, sizeof(e->name));
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CC ../../arch/platform/native/dev/buttons.c
- CC ../../arch/cpu/native/net/tun6-net.c
- In function ‘tun_alloc.constprop’,
- inlined from ‘tun_init’ at ../../arch/cpu/native/net/tun6-net.c:211:11:
- ../../arch/cpu/native/net/tun6-net.c:161:5: warning: ‘strncpy’ output may be truncated copying 16 bytes from a string of length 63 [-Wstringop-truncation]
- strncpy(ifr.ifr_name, dev, IFNAMSIZ);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CC ../../arch/cpu/native/./rtimer-arch.c
- CC ../../arch/cpu/native/./watchdog.c
- CC ../../arch/cpu/native/dev/eeprom.c
- CC ../../arch/cpu/native/./int-master.c
- CC ../../arch/cpu/native/dev/gpio-hal-arch.c
- CC webserver/httpd-simple.c
- webserver/httpd-simple.c: In function ‘handle_input’:
- webserver/httpd-simple.c:174:5: warning: ‘strncpy’ output truncated copying 1 byte from a string of length 11 [-Wstringop-truncation]
- strncpy(s->filename, http_index_html, sizeof(s->filename) - 1);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- webserver/httpd-simple.c: In function ‘handle_output’:
- webserver/httpd-simple.c:131:5: warning: ‘strncpy’ output truncated copying 1 byte from a string of length 14 [-Wstringop-truncation]
- strncpy(s->filename, "/notfound.html", sizeof(s->filename) - 1);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- webserver/httpd-simple.c: In function ‘handle_input’:
- webserver/httpd-simple.c:178:5: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 25 [-Wstringop-truncation]
- strncpy(s->filename, s->inputbuf, sizeof(s->filename));
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....
- ../../os/services/rpl-border-router/native/tun-bridge.c: In function ‘tun_alloc’:
- ../../os/services/rpl-border-router/native/tun-bridge.c:168:5: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
- strncpy(ifr.ifr_name, dev, IFNAMSIZ);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CC ../../os/services/rpl-border-router/native/slip-dev.c
- CC ../../os/services/rpl-border-router/native/border-router-native.c
- CC ../../os/services/rpl-border-router/native/slip-config.c
- ../../os/services/rpl-border-router/native/slip-config.c: In function ‘slip_config_handle_arguments’:
- ../../os/services/rpl-border-router/native/slip-config.c:102:9: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation]
- strncpy(slip_config_tundev, optarg, sizeof(slip_config_tundev));
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ../../os/services/rpl-border-router/native/slip-config.c:100:9: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation]
- strncpy(slip_config_tundev, optarg + 5, sizeof(slip_config_tundev));
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement