Snippets for linux 7.1.5 from Alpine ppc64le
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-ppc64le/main/linux-tools/linux-tools-7.1.5-r0.log.
-
tmon.c:233:25: warning: 'strncpy' specified bound 20 equals destination size [-Wstringop-truncation] 233 | strncpy(ctrl_cdev, optarg, CDEV_NAME_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
iio_event_monitor.c:297:58: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type '__s64' {aka 'long int'} [-Wformat=] 297 | fprintf(stderr, "Unknown event: time: %lld, id: %llx\n", | ~~~^ | | | long long int | %ld 298 | event->timestamp, event->id); | ~~~~~~~~~~~~~~~~ | | | __s64 {aka long int} -
iio_event_monitor.c:297:68: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' {aka 'long unsigned int'} [-Wformat=] 297 | fprintf(stderr, "Unknown event: time: %lld, id: %llx\n", | ~~~^ | | | long long unsigned int | %lx 298 | event->timestamp, event->id); | ~~~~~~~~~ | | | __u64 {aka long unsigned int} -
iio_event_monitor.c:303:33: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type '__s64' {aka 'long int'} [-Wformat=] 303 | printf("Event: time: %lld, type: %s", event->timestamp, | ~~~^ ~~~~~~~~~~~~~~~~ | | | | long long int __s64 {aka long int} | %ld -
gen.c:80:9: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation] 80 | strncpy(name, basename(file_copy), MAX_OBJ_NAME_LEN - 1)[MAX_OBJ_NAME_LEN - 1] = '\0'; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~