Snippets for libgphoto2 2.5.33 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/libgphoto2/2.5.33/3.fc45/data/logs/i686/build.log.
-
gphoto2-file.c:661:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 661 | name = strrchr (filename, '/'); | ^ -
gphoto2-file.c:668:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 668 | dot = strrchr (filename, '.'); | ^ -
gphoto2-file.c:928:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 928 | s = strrchr(basename,'.'); | ^ -
gphoto2-file.c:929:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 929 | slash = strrchr(basename,'/'); | ^ -
gphoto2-file.c:672:33: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 672 | strncpy (file->mime_type, mime_table[i+1], sizeof(file->mime_type)); | ^ -
gphoto2-file.c:1008:9: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 1008 | strncpy (file->name, name, sizeof (file->name)); | ^ -
gphoto2-file.c:1025:9: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 1025 | strncpy (file->mime_type, mime_type, sizeof (file->mime_type)); | ^ -
gphoto2-filesys.c:535:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 535 | s = strchr(foldername,'/'); | ^ -
gphoto2-filesys.c:1433:17: warning: 'strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 1433 | strncpy (path, folder, sizeof (path)); | ^ -
gphoto2-camera.c:1620:17: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 1620 | strncpy (info->preview.type, mime_type, | ^ -
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)) && | ^ -
canon/canon.c:689:9: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 689 | strncpy (camera->pl->ident, (char *) msg + 12, 32); | ^ -
canon/canon.c:697:17: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 697 | strncpy (camera->pl->owner, (char *) msg + 4, 32); | ^ -
canon/canon.c:691:17: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 691 | strncpy (camera->pl->owner, (char *) msg + 44, 32); | ^ -
canon/canon.c:1297:9: warning: 'strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 1297 | strncpy ( path->name, _("*UNKNOWN*"), sizeof(path->name) ); | ^ -
canon/canon.c:2881:33: warning: 'strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 2881 | strncpy ( name_local, name, sizeof(name_local) ); | ^ -
canon/canon.c:3335:41: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 3335 | strncpy (info.file.type, | ^ -
canon/canon.c:3896:41: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 3896 | strncpy (info->file.type, | ^ -
canon/library.c:350:9: warning: 'strncpy' specified bound 32768 equals destination size [-Wstringop-truncation] 350 | strncpy (manual->text, | ^ -
docupen/cache.c:80:38: warning: comparison of integer expressions of different signedness: 'long int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 80 | if (ftell(camera->pl->cache) == camera->pl->datalen) { /* cache is valid */ | ^~ -
directory/directory.c:131:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 131 | dot = strrchr(filename, '.'); | ^ -
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"; | ^~~~~~~~~~~~~~~~~~~~~~ -
docupen/docupen.c:88:34: warning: comparison is always false due to limited range of data type [-Wtype-limits] 88 | if (camera->pl->info.len > sizeof(struct dp_info)) { | ^ -
kodak/dc240/library.c:720:21: warning: variable 'y' set but not used [-Wunused-but-set-variable=] 720 | unsigned int x, y=0, z; | ^ -
kodak/dc240/library.c:634:5: warning: 'strncpy' specified bound 11 equals destination size [-Wstringop-truncation] 634 | strncpy (table->volumeID, (char*)&fdata[16], 11); | ^ -
kodak/dc240/library.c:636:5: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 636 | strncpy (table->cameraID, (char*)&fdata[28], 32); | ^ -
kodak/dc240/library.c:670:5: warning: 'strncpy' specified bound 11 equals destination size [-Wstringop-truncation] 670 | strncpy (table->borderFileName, (char*)&fdata[140], 11); | ^ -
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/olympus-wrap.c:289:27: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 289 | GP_LOG_E ("ums_wrap_senddata *** data get from handler got %ld instead of %ld", gotlen, sendlen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ | | | uint64_t {aka long long unsigned int} -
sierra/library.c:1426:17: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 1426 | strncpy (filepath->folder, folder, sizeof (filepath->folder)); | ^ -
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/ptp-pack.c:498:9: warning: 'strncpy' specified bound 40 equals destination size [-Wstringop-truncation] 498 | strncpy (ptpdate, str, sizeof(ptpdate)); | ^ -
ptp2/ptp.c:1222:9: warning: 'strncpy' specified bound 4 equals destination size [-Wstringop-truncation] 1222 | strncpy(pictinfo->fileext, (char*)data+28, 4); | ^ -
ptp2/ptp-pack.c:1371:9: warning: 'strncpy' specified bound 13 equals destination size [-Wstringop-truncation] 1371 | strncpy(fe->Filename, (char*)data + PTP_cfe_Filename, PTP_CANON_FilenameBufferLen); | ^ -
ptp2/ptp.c:5048:17: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 5048 | strncpy(params->wifi_profiles[profn].creation_date, buffer, sizeof(params->wifi_profiles[profn].creation_date)); | ^ -
ptp2/ptp.c:5055:17: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 5055 | strncpy(params->wifi_profiles[profn].lastusage_date, buffer, sizeof(params->wifi_profiles[profn].lastusage_date)); | ^ -
ptp2/ptp.c:5141:9: warning: 'strncpy' output may be truncated copying 16 bytes from a string of length 16 [-Wstringop-truncation] 5141 | strncpy((char*)&buffer[0x05], profile->profile_name, 16); | ^ -
ptp2/ptp.c:5164:9: warning: 'strncpy' output may be truncated copying 32 bytes from a string of length 32 [-Wstringop-truncation] 5164 | strncpy((char*)&buffer[0x4A], profile->essid, 32); | ^ -
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/library.c:5093:44: warning: '%s' directive writing between 5 and 2147483645 bytes into a region of size 123 [-Wformat-overflow=] 5093 | sprintf (path->name, "capt_%s", oi.Filename); // capt prefix is mandatory when deleting file | ^~ -
ptp2/library.c:7075:76: warning: '%s' directive writing between 5 and 2147483645 bytes into a region of size 123 [-Wformat-overflow=] 7075 | sprintf (path->name, "capt_%s", oi.Filename); // capt prefix is mandatory when deleting file | ^~ -
ptp2/library.c:7068:76: warning: '%s' directive writing between 5 and 2147483645 bytes into a region of size 123 [-Wformat-overflow=] 7068 | sprintf (path->name, "capt_%s", oi.Filename); // capt prefix is mandatory when deleting file | ^~ -
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=] -
ptp2/config.c:10987:17: warning: 'strncpy' output may be truncated copying 16 bytes from a string of length 1023 [-Wstringop-truncation]
-
ptp2/config.c:10989:17: warning: 'strncpy' output may be truncated copying 32 bytes from a string of length 1023 [-Wstringop-truncation]
-
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: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:1142:19: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1142 | x = strchr(s,'&'); | ^