Snippets for libgphoto2 2.5.34 from Nix aarch64-darwin
Sourced from https://hydra.nixos.org/log/12d1lvq9dm1by3bzjv39xvwnsinij06p-libgphoto2-2.5.34.drv.
-
docupen/docupen.c:88:27: warning: result of comparison of constant 360 with expression of type 'uint8_t' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare] 88 | if (camera->pl->info.len > sizeof(struct dp_info)) { | ~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ -
jl2005a/library.c:158:28: warning: initializer-string for character array is too long, array size is 5 but initializer has size 6 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Wunterminated-string-initialization] 158 | unsigned char header[5] = "\xff\xff\xff\xff\x55"; | ^~~~~~~~~~~~~~~~~~~~~~ -
kodak/dc240/library.c:720:21: warning: variable 'y' set but not used [-Wunused-but-set-variable] 720 | unsigned int x, y=0, z; | ^ -
lumix/lumix.c:588:1: warning: unused function 'Set_quality' [-Wunused-function] 588 | Set_quality(Camera *camera,const char* Quality) { | ^~~~~~~~~~~ -
lumix/lumix.c:772:3: warning: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Wattribute-warning] 772 | curl_easy_setopt(curl, CURLOPT_POST,1); | ^ -
pentax/pslr.c:995:14: warning: variable 'buf_total' set but not used [-Wunused-but-set-variable] 995 | uint32_t buf_total = 0; | ^ -
ptp2/ptp-pack.c:1957:15: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 1954 | ptp_debug (params, "%s objectinfo %s: handle %08x, parent %08x, ofc %04x, size %ld, filename %s", | ~~~ | %llu 1955 | prefix, ec == PTP_EC_CANON_EOS_ObjectAddedEx ? "added" : "changed", 1956 | e[i].u.object.Handle, e[i].u.object.ParentObject, e[i].u.object.ObjectFormat, 1957 | e[i].u.object.ObjectSize, e[i].u.object.Filename); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
ptp2/ptp-pack.c:1973:15: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 1971 | ptp_debug (params, "%s objectinfo added: handle %08x, parent %08x, ofc %04x, size %ld, filename %s", | ~~~ | %llu 1972 | prefix, e[i].u.object.Handle, e[i].u.object.ParentObject, e[i].u.object.ObjectFormat, 1973 | e[i].u.object.ObjectSize, e[i].u.object.Filename); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
ptp2/ptp-pack.c:1991:15: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 1989 | ptp_debug (params, "%s request object transfer: handle %08x, ofc %04x, size %ld, filename %s", | ~~~ | %llu 1990 | prefix, e[i].u.object.Handle, e[i].u.object.ObjectFormat, 1991 | e[i].u.object.ObjectSize, e[i].u.object.Filename); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
ptp2/ptp-pack.c:2015:15: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 2013 | ptp_debug (params, "%s request object transfer 64lfn: handle %08x, ofc %04x, size %ld", | ~~~ | %llu 2014 | prefix, e[i].u.object.Handle, e[i].u.object.ObjectFormat, 2015 | e[i].u.object.ObjectSize); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
ptp2/library.c:4525:56: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 4524 | GP_LOG_D ("object transfer requested: handle 0x%x, name %s, size %lu", | ~~~ | %llu 4525 | event.u.object.Handle, event.u.object.Filename, event.u.object.ObjectSize); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
ptp2/library.c:6696:72: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 6695 | GP_LOG_D ("object transfer requested: handle 0x%x, name %s, size %lu", | ~~~ | %llu 6696 | eos_event.u.object.Handle, eos_event.u.object.Filename, eos_event.u.object.ObjectSize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ptp2/library.c:7598:64: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 7598 | case PTP_DTC_INT64: return snprintf (txt, spaceleft, "%lu", data->u64); | ~~~ ^~~~~~~~~ | %llu -
ptp2/library.c:7599:64: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat] 7599 | case PTP_DTC_UINT64: return snprintf (txt, spaceleft, "%ld", data->i64); | ~~~ ^~~~~~~~~ | %lld -
ptp2/library.c:7796:8: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 7795 | APPEND_TXT( ": dss: %lud, timeres: %lud, fhsize: %d, fmxsize: %d, phsize: %d, pmsize: %d, palign: %d\n", | ~~~ | %llu 7796 | streaminfo.DatasetSize, | ^~~~~~~~~~~~~~~~~~~~~~ -
ptp2/library.c:7797:8: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 7795 | APPEND_TXT( ": dss: %lud, timeres: %lud, fhsize: %d, fmxsize: %d, phsize: %d, pmsize: %d, palign: %d\n", | ~~~ | %llu 7796 | streaminfo.DatasetSize, 7797 | streaminfo.TimeResolution, | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
ptp2/library.c:8316:47: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat] 8316 | case PTP_DTC_INT64: sprintf (text, "%ld", xpl->Value.i64); break; | ~~~ ^~~~~~~~~~~~~~ | %lld -
ptp2/library.c:8320:47: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 8320 | case PTP_DTC_UINT64: sprintf (text, "%lu", xpl->Value.u64); break; | ~~~ ^~~~~~~~~~~~~~ | %llu -
ptp2/library.c:8362:48: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat] 8362 | case PTP_DTC_INT64: sprintf (text, "%ld", pv.i64); break; | ~~~ ^~~~~~ | %lld -
ptp2/library.c:8366:48: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 8366 | case PTP_DTC_UINT64: sprintf (text, "%lu", pv.u64); break; | ~~~ ^~~~~~ | %llu -
ptp2/library.c:8681:80: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 8681 | GP_LOG_D ("Reading %u bytes from file '%s' at offset %lu.", size32, filename, offset64); | ~~~ ^~~~~~~~ | %llu -
ptp2/library.c:8932:94: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 8932 | GP_LOG_E ("nikon_getpartialobject loop: offset=%ld, size is %ld, xlen returned is 0?", offset, size); | ~~~ ^~~~~~ | %llu -
ptp2/library.c:8932:102: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 8932 | GP_LOG_E ("nikon_getpartialobject loop: offset=%ld, size is %ld, xlen returned is 0?", offset, size); | ~~~ ^~~~ | %llu -
ptp2/library.c:8962:95: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 8962 | GP_LOG_E ("getpartialobject loop: offset=%d, size is %ld, xlen returned is 0?", offset, size); | ~~~ ^~~~ | %llu -
ptp2/library.c:8987:95: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 8987 | GP_LOG_E ("getpartialobject loop: offset=%d, size is %ld, xlen returned is 0?", offset, size); | ~~~ ^~~~ | %llu -
ptp2/config.c:3878:61: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] 3878 | if (abs((int)(val - dpd->FORM.Enum.SupportedValue[i].u32))<delta) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ -
ptp2/config.c:10006:11: warning: variable 'found' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized]
-
ptp2/config.c:12470:3: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
-
ptp2/config.c:12471:3: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
-
ptp2/config.c:12494:3: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
-
ptp2/config.c:12495:3: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
-
ptp2/config.c:12525:3: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
-
ptp2/config.c:12526:3: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
-
ptp2/config.c:13128:3: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
-
ptp2/config.c:13129:3: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
-
ptp2/olympus-wrap.c:289:91: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 289 | GP_LOG_E ("ums_wrap_senddata *** data get from handler got %ld instead of %ld", gotlen, sendlen); | ~~~ ^~~~~~~ | %llu -
st2205/st2205.c:505:16: warning: expression result unused [-Wunused-value] 505 | le32toh(entry.address); | ~~~~~ ^~~~~~~ -
sample-tether.c:48:84: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 48 | if (info.file.fields & GP_FILE_INFO_SIZE) printf (" info reported size: %ld\n", info.file.size); | ~~~ ^~~~~~~~~~~~~~ | %llu -
sample-capture.c:85:86: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] 85 | if (info.file.fields & GP_FILE_INFO_SIZE) printf (" info reported size: %ld\n", info.file.size); | ~~~ ^~~~~~~~~~~~~~ | %llu