Snippets for libgphoto2 2.5.33 from Alpine armv7
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-armv7/community/libgphoto2/libgphoto2-2.5.33-r1.log.
-
canon/canon.c:1302:52: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1302 | while ( (((new_entry - (char*)final_state) < final_state_length) && | ^ -
canon/canon.c:1303:53: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1303 | ((old_entry - (char*)initial_state) < initial_state_length)) && | ^ -
jl2005a/library.c:158:35: warning: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (6 chars into 5 available) [-Wunterminated-string-initialization] 158 | unsigned char header[5] = "\xff\xff\xff\xff\x55"; | ^~~~~~~~~~~~~~~~~~~~~~ -
ptp2/ptp-pack.c:206:75: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 206 | ptp_debug (params ,"array runs over datalen buffer end (%ld vs %u)", *offset + n * sizeof(uint32_t) , datalen); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int uint32_t {aka unsigned int} | %d -
ptp2/ptp-pack.c:253:75: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 253 | ptp_debug (params ,"array runs over datalen buffer end (%ld vs %u)", *offset + n * sizeof(uint16_t) , datalen); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int uint32_t {aka unsigned int} | %d -
ptp2/ptp-pack.c:293:77: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] 293 | ptp_debug (params, "FunctionalMode outside buffer bounds (%ld > %u)", offset + sizeof(uint16_t), datalen); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int unsigned int | %d -
ptp2/ptp-pack.c:1657:32: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 1657 | if (n < 0 || n > maxlen - (p - str)) { | ^ -
ptp2/array.h:82:27: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 82 | GP_LOG_E ("Out of memory: 'realloc' of %ld bytes failed.", ((ARRAY)->len + (LEN)) * sizeof((ARRAY)->val[0])); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint32_t {aka unsigned int} -
ptp2/ptp-pack.c:1800:35: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1800 | while (curdata - data + 8 < datasize) { | ^ -
ptp2/ptp-pack.c:1836:36: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1836 | while (curdata - data + 8 < datasize) { | ^ -
ptp2/ptp-pack.c:1885:106: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 1885 | ptp_debug (params, "%s objectinfo %s: handle %08x, parent %08x, ofc %04x, size %ld, filename %s", | ~~^ | | | long int | %lld -
ptp2/ptp-pack.c:1902:109: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 1902 | ptp_debug (params, "%s objectinfo added: handle %08x, parent %08x, ofc %04x, size %ld, filename %s", | ~~^ | | | long int | %lld 1903 | prefix, e[i].u.object.Handle, e[i].u.object.ParentObject, e[i].u.object.ObjectFormat, 1904 | e[i].u.object.ObjectSize, e[i].u.object.Filename); | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/ptp-pack.c:1920:103: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 1920 | ptp_debug (params, "%s request object transfer: handle %08x, ofc %04x, size %ld, filename %s", | ~~^ | | | long int | %lld 1921 | prefix, e[i].u.object.Handle, e[i].u.object.ObjectFormat, 1922 | e[i].u.object.ObjectSize, e[i].u.object.Filename); | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/ptp-pack.c:1974:68: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] 1974 | ptp_debug (params, "%s size %lu does not match needed %u", prefix, sizeof(dpd->FORM.Enum.SupportedValue[j].TYPE)*dpd_count, xsize); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int -
ptp2/ptp-pack.c:1858:32: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=] 1858 | #define INDENT " " | ^~~~~~~~~~~~~~~~~~ -
ptp2/ptp-pack.c:2588:100: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=] 2588 | ptp_debug (params, "BAD: ran out of allocated slots (%d) for EOS events, %ld bytes left to parse", event_count, datasize - (curdata - data)); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int unsigned int | %d -
ptp2/ptp.c:3804:40: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 3804 | if (4 + (xdata - data) > size) { | ^ -
ptp2/library.c:3646:53: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 3646 | while ((xdata-data) < size) { | ^ -
ptp2/library.c:3658:67: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 3658 | GP_LOG_E ("len=%d larger than rest size %ld", len, (size-(xdata-data))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ | | | uint32_t {aka unsigned int} -
ptp2/library.c:3668:67: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 3668 | GP_LOG_E ("len=%d larger than rest size %ld", len, (size-(xdata-data))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ | | | uint32_t {aka unsigned int} -
ptp2/library.c:3681:69: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 3681 | while ((xdata-data) < size) { | ^ -
ptp2/library.c:3687:75: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 3687 | GP_LOG_E ("len=%d larger than rest size %ld", len, (size-(xdata-data))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ | | | uint32_t {aka unsigned int} -
ptp2/library.c:4479:43: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4479 | GP_LOG_D ("object transfer requested: handle 0x%x, name %s, size %lu", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4480 | event.u.object.Handle, event.u.object.Filename, event.u.object.ObjectSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/library.c:6645:51: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 6645 | GP_LOG_D ("object transfer requested: handle 0x%x, name %s, size %lu", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6646 | eos_event.u.object.Handle, eos_event.u.object.Filename, eos_event.u.object.ObjectSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/library.c:7548:74: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 7548 | case PTP_DTC_INT64: return snprintf (txt, spaceleft, "%lu", data->u64); | ~~^ ~~~~~~~~~ | | | | | uint64_t {aka long long unsigned int} | long unsigned int | %llu -
ptp2/library.c:7549:74: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int64_t' {aka 'long long int'} [-Wformat=] 7549 | case PTP_DTC_UINT64: return snprintf (txt, spaceleft, "%ld", data->i64); | ~~^ ~~~~~~~~~ | | | | | int64_t {aka long long int} | long int | %lld -
ptp2/library.c:7745:61: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 7745 | APPEND_TXT( ": dss: %lud, timeres: %lud, fhsize: %d, fmxsize: %d, phsize: %d, pmsize: %d, palign: %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7746 | streaminfo.DatasetSize, | ~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/library.c:7745:61: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 7745 | APPEND_TXT( ": dss: %lud, timeres: %lud, fhsize: %d, fmxsize: %d, phsize: %d, pmsize: %d, palign: %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7746 | streaminfo.DatasetSize, 7747 | streaminfo.TimeResolution, | ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/library.c:8266:64: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Wformat=] 8266 | case PTP_DTC_INT64: sprintf (text, "%ld", xpl->Value.i64); break; | ~~^ ~~~~~~~~~~~~~~ | | | | long int int64_t {aka long long int} | %lld -
ptp2/library.c:8270:64: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 8270 | case PTP_DTC_UINT64: sprintf (text, "%lu", xpl->Value.u64); break; | ~~^ ~~~~~~~~~~~~~~ | | | | | uint64_t {aka long long unsigned int} | long unsigned int | %llu -
ptp2/library.c:8312:72: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Wformat=] 8312 | case PTP_DTC_INT64: sprintf (text, "%ld", pv.i64); break; | ~~^ ~~~~~~ | | | | | int64_t {aka long long int} | long int | %lld -
ptp2/library.c:8316:72: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 8316 | case PTP_DTC_UINT64: sprintf (text, "%lu", pv.u64); break; | ~~^ ~~~~~~ | | | | | uint64_t {aka long long unsigned int} | long unsigned int | %llu -
ptp2/library.c:8631:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 8631 | GP_LOG_D ("Reading %u bytes from file '%s' at offset %lu.", size32, filename, offset64); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/library.c:8882:59: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 8882 | GP_LOG_E ("nikon_getpartialobject loop: offset=%ld, size is %ld, xlen returned is 0?", offset, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/library.c:8882:59: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 8882 | GP_LOG_E ("nikon_getpartialobject loop: offset=%ld, size is %ld, xlen returned is 0?", offset, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/library.c:8912:59: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 8912 | GP_LOG_E ("getpartialobject loop: offset=%d, size is %ld, xlen returned is 0?", offset, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/library.c:8937:59: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 8937 | GP_LOG_E ("getpartialobject loop: offset=%d, size is %ld, xlen returned is 0?", offset, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | uint64_t {aka long long unsigned int} -
ptp2/config.c:12267:48: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Wformat=] -
ptp2/config.c:12268:50: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] -
ptp2/config.c:12291:37: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Wformat=] -
ptp2/config.c:12292:38: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] -
ptp2/config.c:12322:37: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Wformat=] -
ptp2/config.c:12323:38: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] -
ptp2/config.c:12861:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int64_t' {aka 'long long int'} [-Wformat=] -
ptp2/config.c:12862:38: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] -
sample-tether.c:47:104: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'time_t' {aka 'long long int'} [-Wformat=] 47 | if (info.file.fields & GP_FILE_INFO_MTIME) printf (" info reported mtime: %ld\n", info.file.mtime); | ~~^ ~~~~~~~~~~~~~~~ | | | | long int time_t {aka long long int} | %lld -
sample-tether.c:48:103: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 48 | if (info.file.fields & GP_FILE_INFO_SIZE) printf (" info reported size: %ld\n", info.file.size); | ~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
sample-capture.c:84:88: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'time_t' {aka 'long long int'} [-Wformat=] 84 | if (info.file.fields & GP_FILE_INFO_MTIME) printf (" info reported mtime: %ld\n", info.file.mtime); | ~~^ ~~~~~~~~~~~~~~~ | | | | long int time_t {aka long long int} | %lld -
sample-capture.c:85:87: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 85 | if (info.file.fields & GP_FILE_INFO_SIZE) printf (" info reported size: %ld\n", info.file.size); | ~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
print-camera-list.c:1313:35: warning: format '%li' expects argument of type 'long int', but argument 4 has type 'suseconds_t' {aka 'long long int'} [-Wformat=] 1313 | fprintf (stderr, "%li.%06li %s(%i): %s\n", | ~~~~^ | | | long int | %06lli 1314 | (long) (tv.tv_sec - glob_tv_zero.tv_sec), 1315 | (1000000L + tv.tv_usec - glob_tv_zero.tv_usec) % 1000000L, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | suseconds_t {aka long long int} -
../libgphoto2/i18n.h:25:45: warning: statement with no effect [-Wunused-value] 25 | # define bindtextdomain(Domain, Directory) (Domain) | ^