Snippets for libgphoto2 2.5.33 from Fedora aarch64
Sourced from https://kojipkgs.fedoraproject.org/packages/libgphoto2/2.5.33/3.fc45/data/logs/aarch64/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/serial.c:338:23: warning: array subscript -3 is outside array bounds of 'unsigned char[65537]' [-Warray-bounds=] 338 | hdr[PKT_TYPE] = type; | ~~~~~~~~~~~~~~^~~~~~ -
canon/serial.c:339:22: warning: array subscript -4 is outside array bounds of 'unsigned char[65537]' [-Warray-bounds=] 339 | hdr[PKT_SEQ] = seq; | ~~~~~~~~~~~~~^~~~~ -
canon/serial.c:340:26: warning: array subscript -2 is outside array bounds of 'unsigned char[65537]' [-Warray-bounds=] 340 | hdr[PKT_LEN_LSB] = len & 0xff; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -
canon/serial.c:341:26: warning: array subscript -1 is outside array bounds of 'unsigned char[65537]' [-Warray-bounds=] 341 | hdr[PKT_LEN_MSB] = len >> 8; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ -
canon/serial.c:335:24: warning: array subscript -4 is outside array bounds of 'unsigned char[65537]' [-Warray-bounds=] 335 | unsigned char *hdr = pkt - PKT_HDR_LEN; | ^~~ -
canon/serial.c:339:22: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=] 339 | hdr[PKT_SEQ] = seq; | ~~~~~~~~~~~~~^~~~~ -
canon/library.c:350:9: warning: 'strncpy' specified bound 32768 equals destination size [-Wstringop-truncation] 350 | strncpy (manual->text, | ^ -
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, | ^ -
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); | ^ -
sierra/library.c:1426:17: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 1426 | strncpy (filepath->folder, folder, sizeof (filepath->folder)); | ^ -
lumix/lumix.c:772:17: warning: call to 'Wcurl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning] 772 | curl_easy_setopt(curl, CURLOPT_POST,1); | ^ -
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/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]
-
print-camera-list.c:1142:19: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1142 | x = strchr(s,'&'); | ^