Snippets for gmt 6.7.0 from Fedora x86_64
Sourced from https://kojipkgs.fedoraproject.org/packages/GMT/6.7.0/1.fc46/data/logs/x86_64/build.log.
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_common_runpath.c:312:20: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation] 312 | sharedir = strncpy (sharedir, runtime_libdir, len_base_dir); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_common_runpath.c:351:20: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation] 351 | sharedir = strncpy (sharedir, runtime_bindir, len_base_dir); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_common_string.c:107:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 107 | if ((p = strrchr(string, '.'))) { | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_gsformats.h:36:13: warning: ‘gmt_session_code’ defined but not used [-Wunused-variable] 36 | static char gmt_session_code[] = { 'f', 'j', 'j', 'g', 'G', 'm', 't', 't', 'b', 'e', 'p', 0}; | ^~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_gsformats.h:34:14: warning: ‘gmt_session_codestr’ defined but not used [-Wunused-variable] 34 | static char *gmt_session_codestr = "bejpPtv"; /* First letter of a valid graphics format in alphabetic order [UPDATE LIST IF ADDING MORE FORMATS IN FUTURE] */ | ^~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_gsformats.h:35:14: warning: ‘gmt_session_format’ defined but not used [-Wunused-variable] 35 | static char *gmt_session_format[] = {"pdf", "jpg", "jpeg", "png", "PNG", "ppm", "tiff", "tif", "bmp", "eps", "ps", NULL}; | ^~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psclip.c:326:36: warning: ‘duplicate’ may be used uninitialized [-Wmaybe-uninitialized] 326 | if (duplicate) { /* Must duplicate externally allocated segment since it needs to be resampled below */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_cdf.c:127:17: warning: ‘strncpy’ output may be truncated copying 319 bytes from a string of length 479 [-Wstringop-truncation] 127 | strncpy (header->command, text, GMT_GRID_COMMAND_LEN320-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_cdf.c:128:17: warning: ‘strncpy’ output may be truncated copying 159 bytes from a string of length 479 [-Wstringop-truncation] 128 | strncpy (header->remark, &text[GMT_GRID_COMMAND_LEN320], GMT_GRID_REMARK_LEN160-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_cdf.c:149:17: warning: ‘strncpy’ output may be truncated copying 319 bytes from a string of length 319 [-Wstringop-truncation] 149 | strncpy (text, header->command, GMT_GRID_COMMAND_LEN320-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_cdf.c:150:17: warning: ‘strncpy’ output may be truncated copying 159 bytes from a string of length 159 [-Wstringop-truncation] 150 | strncpy (&text[GMT_GRID_COMMAND_LEN320], header->remark, GMT_GRID_REMARK_LEN160-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtget.c:314:25: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 314 | fgets (line, GMT_LEN256, fp); /* Skip first record with record count */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtget.c:277:95: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 249 [-Wformat-truncation=] 277 | snprintf (message, GMT_LEN256-1, "%s\t%s\t%s\t%s\t%u\t%s", planet, group, dataset, size, n, API->remote_info[k].remark); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/kml2gmt.c:302:25: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 302 | fgets (line, GMT_INITIAL_MEM_ROW_ALLOC, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/kml2gmt.c:304:33: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 304 | fgets (line, GMT_INITIAL_MEM_ROW_ALLOC, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/inset.c:365:25: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 365 | fgets (Bopts, GMT_LEN256, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/inset.c:176:99: warning: ‘side’ may be used uninitialized [-Wmaybe-uninitialized] 176 | n_errors += gmt_M_repeated_module_option (API, Ctrl->C.set[side]);
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdproject.c:391:17: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 391 | strncpy (unit_name, scale_unit_name, GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdproject.c:606:17: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 606 | strncpy (Rect->header->x_units, unit_name, GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdproject.c:607:17: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 607 | strncpy (Rect->header->y_units, unit_name, GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/blockmean.c:172:33: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 172 | if (!API->external) n_errors += gmt_M_repeated_module_option (API, Ctrl->G.active); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdlandmask.c:200:33: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 200 | strncpy (line, opt->arg, GMT_LEN256); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/blockmedian.c:192:33: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 192 | if (!API->external) n_errors += gmt_M_repeated_module_option (API, Ctrl->G.active); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grd2xyz.c:855:38: warning: ‘orig_mode’ may be used uninitialized [-Wmaybe-uninitialized] 855 | Ctrl->L.mode = orig_mode; | ~~~~~~~~~~~~~^~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtconnect.c:665:33: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 665 | strncpy (name, &pp[2], GMT_BUFSIZ); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtconnect.c:671:33: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 671 | strncpy (name0, &pp[2], GMT_BUFSIZ); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtconnect.c:677:33: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 677 | strncpy (name1, &pp[2], GMT_BUFSIZ); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdinterpolate.c:638:17: warning: ‘col’ may be used uninitialized [-Wmaybe-uninitialized] 638 | gmt_set_column_type (GMT, GMT_OUT, col, level_type); /* This is the grid-level data type which on output is in this column */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtselect.c:444:33: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 444 | strncpy (buffer, opt->arg, GMT_BUFSIZ); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/blockmode.c:218:33: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 218 | if (!API->external) n_errors += gmt_M_repeated_module_option (API, Ctrl->G.active); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:441:78: warning: ‘%01.0f’ directive output may be truncated writing between 1 and 310 bytes into a region of size between 0 and 8191 [-Wformat-truncation=] 441 | else snprintf (value, BUFSIZ, "%s%.1d%01.0f%02.0f,",value,tquad,fabs(teny-8.0),fabs(tenx-18.0)); | ^~~~~~ -
/usr/include/bits/stdio2.h:68:10: warning: ‘__snprintf_chk’ argument 6 overlaps destination object ‘value’ [-Wrestrict]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:440:87: warning: ‘%01.0f’ directive output may be truncated writing between 1 and 310 bytes into a region of size between 0 and 8191 [-Wformat-truncation=] 440 | if (teny > 8) snprintf (value, BUFSIZ, "%s%.1d%01.0f%02.0f,",value,tquad,fabs(teny-9.0),fabs(tenx-18.0)); | ^~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:445:45: warning: ‘9999’ directive output may be truncated writing 4 bytes into a region of size between 1 and 8192 [-Wformat-truncation=] 445 | snprintf (value, BUFSIZ, "%s9999", value); i++; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:447:43: warning: ‘, 0’ directive writing 5 bytes into a region of size between 1 and 8192 [-Wformat-overflow=] 447 | sprintf (value,"%s, 0",value); | ^~~~~ -
/usr/include/bits/stdio2.h:30:10: warning: ‘__sprintf_chk’ argument 5 overlaps destination object ‘value’ [-Wrestrict]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:490:17: warning: ‘strncpy’ output may be truncated copying 4 bytes from a string of length 8191 [-Wstringop-truncation] 490 | strncpy (MGD77_Header_Lookup[id].ptr[MGD77_M77_SET],value,4); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:493:17: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 8191 [-Wstringop-truncation] 493 | strncpy (MGD77_Header_Lookup[id].ptr[MGD77_M77_SET],&value[5],2); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:496:17: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 8191 [-Wstringop-truncation] 496 | strncpy (MGD77_Header_Lookup[id].ptr[MGD77_M77_SET],&value[8],2); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:500:17: warning: ‘strncpy’ output may be truncated copying 4 bytes from a string of length 8191 [-Wstringop-truncation] 500 | strncpy (MGD77_Header_Lookup[id].ptr[MGD77_M77_SET],value,4); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:503:17: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 8191 [-Wstringop-truncation] 503 | strncpy (MGD77_Header_Lookup[id].ptr[MGD77_M77_SET],&value[5],2); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77header.c:506:17: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 8191 [-Wstringop-truncation] 506 | strncpy (MGD77_Header_Lookup[id].ptr[MGD77_M77_SET],&value[8],2); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdblend.c:893:25: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 893 | strncpy (test_file, Ctrl->In.file[0], PATH_MAX); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdblend.c:513:25: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation] 513 | strncpy (B[n].file, buffer, PATH_MAX-1); /* Use the temporary file instead */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdblend.c:1171:32: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 256 [-Wformat-overflow=] 1171 | sprintf (cmd, "%s %s -V%c --GMT_HISTORY=readonly", outfile, Ctrl->G.file, V_level[GMT->current.setting.verbose]); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_dcw.c:713:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 511 [-Wstringop-truncation] 713 | strncpy(state, &code[3], GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_dcw.c:366:25: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 3 [-Wstringop-truncation] 366 | strncpy (ISO, clist[k].code, 2); ISO[2] = '\0'; /* Terminate string */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_dcw.c:373:47: warning: ‘__sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 373 | sprintf (ISO, "%s.%s%c", slist[k].country, slist[k].code, '\0'); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/img/img2grd.c:657:9: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 657 | strncpy (Merc->header->z_units, z_units, GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/img/img2grd.c:832:17: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 832 | strncpy (Geo->header->z_units, z_units, GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77magref.c:208:57: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation] 208 | strncpy (tfixed, &p[1], GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtbinstats.c:682:44: warning: ‘dx2’ may be used uninitialized [-Wmaybe-uninitialized] 682 | if (fabs (dx) > dx2) continue; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtbinstats.c:658:36: warning: ‘dy2’ may be used uninitialized [-Wmaybe-uninitialized] 658 | if (fabs (dy) > dy2) continue; /* Outside regardless of x-coordinate */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/xyz2grd.c:730:57: warning: ‘was’ may be used uninitialized [-Wmaybe-uninitialized] 730 | GMT->common.d.first_col[GMT_IN] = was; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtinfo.c:967:35: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation] 967 | if (file[0] == 0) strncpy (file, GMT->current.io.filename[GMT_IN], PATH_MAX-1); /* Grab name of current file while we can */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:625:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 625 | if ((c = strstr (file, ".grd")) || (c = strstr (file, ".tif"))) /* Ignore extension in comparison */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:625:47: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 625 | if ((c = strstr (file, ".grd")) || (c = strstr (file, ".tif"))) /* Ignore extension in comparison */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:1457:38: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1457 | if (strchr (file, '?') && (c = strstr (file, "=gd"))) { /* Must be a netCDF sliced file to be read via GDAL so chop off the =gd?layer/variable specifications */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:1460:21: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1460 | else if ((c = strchr (file, '?')) && !strchr (file, '=')) { /* Must be a netCDF sliced URL file so chop off the layer/variable specifications */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:1463:34: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1463 | else if (c == NULL && (c = strchr (file, '='))) { /* If no ? then = means grid attributes (e.g., =bf) */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:1699:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1699 | if ((c = strstr (file, "=tiled_")) == NULL) return false; /* Not that kind of file */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:172:9: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 511 [-Wstringop-truncation] 172 | strncpy (text, line, GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:298:25: warning: ‘__strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation] 298 | strncpy (I[k].tag, I[k].file, len-1); /* Remote trailing slash */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:401:17: warning: ‘__strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation] 401 | strncpy (dir, API->remote_info[k].dir, L); /* Make a copy without the trailing slash */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:442:17: warning: ‘__strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation] 442 | strncpy (dir, API->remote_info[k].dir, L); /* Make a copy without the trailing slash */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:538:9: warning: ‘__strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation] 538 | strncpy (dir, API->remote_info[k_data].dir, L); dir[L] = '\0'; /* Duplicate dir without slash */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:1766:45: warning: ‘__sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 1766 | sprintf (coverage_file, "@%s", I->coverage); /* Prepend the remote flag since we may need to download the file */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:1826:57: warning: ‘%s’ directive writing up to 63 bytes into a region of size between 38 and 55 [-Wformat-overflow=] 1826 | sprintf (file, "@%c%2.2d%c%3.3d.%s.%s", YS, abs(clat), XS, abs(lon), tag, GMT_TILE_EXTENSION_LOCAL); | ^~ ~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:1982:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1982 | strncpy (URL, resolved ? resolved : candidate, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_remote.c:1983:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1983 | strncpy (last_candidate, candidate, GMT_LEN256-1); | ^ -
/usr/include/bits/string_fortified.h:29:10: warning: ‘MEM <uint128_t> [(char * {ref-all})&def_pad]’ may be used uninitialized [-Wmaybe-uninitialized] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/seis/grdshake.c:467:32: warning: ‘fnl_pga’ may be used uninitialized [-Wmaybe-uninitialized] 467 | fs_pga = flin_pga + fnl_pga; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/seis/grdshake.c:468:32: warning: ‘fnl_pgv’ may be used uninitialized [-Wmaybe-uninitialized] 468 | fs_pgv = flin_pgv + fnl_pgv; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psevents.c:591:49: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 591 | strncpy (txt_a, c, GMT_LEN256); /* Copy the remaining text into a temporary buffer */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psevents.c:446:49: warning: ‘strncpy’ output may be truncated copying 64 bytes from a string of length 127 [-Wstringop-truncation] 446 | strncpy (Ctrl->H.clearance, string, GMT_LEN64); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psevents.c:1036:37: warning: ‘%s’ directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] 1036 | sprintf (cmd, "%s -R%s -J%s -G+uC --PROJ_LENGTH_UNIT=inch ->%s", source, GMT->common.R.string, GMT->common.J.string, destination); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psevents.c:1123:37: warning: ‘%s’ directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] 1123 | sprintf (cmd, "%s -R%s -J%s -I -o0:%d --PROJ_LENGTH_UNIT=inch --FORMAT_FLOAT_OUT=%%.16g %s", source, GMT->common.R.string, GMT->common.J.string, last_col, TCLOCK); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psevents.c:1485:46: warning: ‘q_active_in_save’ may be used uninitialized [-Wmaybe-uninitialized] 1485 | GMT->common.q.active[GMT_IN] = q_active_in_save; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdtrack.c:1104:58: warning: ‘n’ may be used uninitialized [-Wmaybe-uninitialized] 1104 | n++; | ~^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdtrack.c:1101:62: warning: ‘Sw’ may be used uninitialized [-Wmaybe-uninitialized] 1101 | Sw += this_zc; | ~~~~~^~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdtrack.c:1102:62: warning: ‘Swd’ may be used uninitialized [-Wmaybe-uninitialized] 1102 | Swd += this_zc * T->segment[seg]->data[GMT_Z][row]; | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdtrack.c:1103:62: warning: ‘Swd2’ may be used uninitialized [-Wmaybe-uninitialized] 1103 | Swd2 += this_zc * T->segment[seg]->data[GMT_Z][row] * T->segment[seg]->data[GMT_Z][row]; | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_nc.c:265:63: warning: ‘ [’ directive output may be truncated writing 2 bytes into a region of size between 1 and 80 [-Wformat-truncation=] 265 | snprintf (name_units, GMT_GRID_UNIT_LEN80, "%s [%s]", name, units); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_nc.c:267:17: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 267 | strncpy (name_units, name, GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_nc.c:1087:25: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 1087 | strncpy (header->z_units, HH->varname, GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_nc.c:1575:9: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 1575 | strncpy (varname, HH->varname, GMT_GRID_VARNAME_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_nc.c:2154:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 2154 | strncpy (HH->name, file, GMT_GRID_NAME_LEN256); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psrose.c:1142:17: warning: ‘off’ may be used uninitialized [-Wmaybe-uninitialized] 1142 | gmt_map_title (GMT, 0.0, off + y); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/triangulate.c:717:26: warning: variable ‘n_set’ set but not used [-Wunused-but-set-variable=] 717 | uint64_t n_set = 0; | ^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/pscoast.c:723:9: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation] 723 | strncpy (old_J, GMT->common.J.string, GMT_LEN128-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77track.c:786:49: warning: ‘strncpy’ output may be truncated copying 16 bytes from a string of length 63 [-Wstringop-truncation] 786 | strncpy (cruise_id[n_id].text, name, 16U); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/geodesy/psvelo.c:863:49: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 863 | while (txt[n] && txt[n] != '/') n++; txt[n++] = 0; /* Hide the /confidence part */ | ^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/geodesy/psvelo.c:879:49: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 879 | while (txt[n] && txt[n] != '/') n++; txt[n++] = 0; /* Hide the /wedgemag part */ | ^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/geodesy/psvelo.c:876:41: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 876 | strncpy (txt, &opt->arg[1], GMT_LEN256); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/geodesy/psvelo.c:860:41: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 860 | strncpy (txt, &opt->arg[1], GMT_LEN256); /* Copy of the args after -Se|r */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/geodesy/psvelo.c:1247:30: warning: ‘scale’ may be used uninitialized [-Wmaybe-uninitialized] 1247 | size *= scl; | ~~~~~^~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/geodesy/psvelo.c:967:16: warning: ‘z_val’ may be used uninitialized [-Wmaybe-uninitialized] 967 | if (P) gmt_get_fill_from_z (GMT, P, value, F); /* Update color based on value and CPT */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mapproject.c:723:41: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 723 | strncpy(from, &opt->arg[k], GMT_LEN256); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtregress.c:1060:25: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1060 | if (z <= -Z->limit) outlier = true; break; | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtregress.c:1062:25: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1062 | if (z >= +Z->limit) outlier = true; break; | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtregress.c:1470:78: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 1470 | snprintf(buffer, GMT_LEN256, "Best regression: N: %" PRIu64 " x0: %g y0: %g angle: %g E: %g slope: %g icept: %g sig_slope: %g sig_icept: %g corr: %g R: %g N_eff: %g p_value: %g", S->n_rows, par[GMTREGRESS_XMEAN], par[GMTREGRESS_YMEAN], | ^~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/pstext.c:1252:33: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 1252 | strncpy (cp_line, line, GMT_BUFSIZ); /* Make a copy because in_line may be pointer to a strdup-ed line that we cannot enlarge */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys_merge.c:218:25: warning: ‘strncpy’ output may be truncated copying 19 bytes from a string of length 4095 [-Wstringop-truncation] 218 | strncpy(pairs_merge[n_merge], &line[2], 19); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys_merge.c:218:25: warning: ‘strncpy’ output may be truncated copying 19 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys_merge.c:195:25: warning: ‘strncpy’ output may be truncated copying 19 bytes from a string of length 4095 [-Wstringop-truncation] 195 | strncpy(pairs_base[n_base], &line[2], 19); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys_merge.c:195:25: warning: ‘strncpy’ output may be truncated copying 19 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/subplot.c:405:57: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 2 [-Wstringop-truncation] 405 | strncpy (Ctrl->A.justify, Ctrl->A.placement, 2); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/subplot.c:374:41: warning: ‘strncpy’ specified bound 128 equals destination size [-Wstringop-truncation] 374 | strncpy (Ctrl->A.format, opt->arg, GMT_LEN128); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/subplot.c:474:99: warning: ‘side’ may be used uninitialized [-Wmaybe-uninitialized] 474 | n_errors += gmt_M_repeated_module_option (API, Ctrl->C.set[side]);
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_stat.c:2799:22: warning: variable ‘j’ set but not used [-Wunused-but-set-variable=] 2799 | unsigned int j, ltype; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdcontour.c:1201:48: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 79 [-Wstringop-truncation] 1201 | if (!strcmp (Ctrl->contour.unit, "z")) strncpy (Ctrl->contour.unit, G->header->z_units, GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/spotter/originater.c:438:41: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 438 | strncpy (path, Ctrl->F.file, PATH_MAX); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdinfo.c:1320:25: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1320 | if (is_cube) out[col++] = global_zmin; out[col++] = global_zmax; | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdinfo.c:804:55: warning: ‘r’ may be used uninitialized [-Wmaybe-uninitialized] 804 | out[GMT_Y] = y[r]; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdinfo.c:786:55: warning: ‘c’ may be used uninitialized [-Wmaybe-uninitialized] 786 | out[GMT_X] = x[c]; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/seis/gmtisf.c:188:97: warning: variable ‘centroid’ set but not used [-Wunused-but-set-variable=] 188 | int scale_factor, nsta1, nsta2, ncomp1, ncomp2, got_momten_line1, got_momten_line2, centroid; | ^~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/seis/gmtisf.c:188:61: warning: variable ‘got_momten_line1’ set but not used [-Wunused-but-set-variable=] 188 | int scale_factor, nsta1, nsta2, ncomp1, ncomp2, got_momten_line1, got_momten_line2, centroid; | ^~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/seis/read_isf.c:87:16: warning: ‘mag’ may be used uninitialized [-Wmaybe-uninitialized] 87 | return (mag); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/geodesy/gpsgridder.c:268:49: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized] 268 | sscanf (&opt->arg[k], "%lf/%s", &Ctrl->C.value, p); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_common_math.h:76:33: warning: ‘n_use’ may be used uninitialized [-Wmaybe-uninitialized] 76 | #define urint(x) ((unsigned int)lrint(x)) | ^~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/grdflexure.c:1466:12: warning: ‘retain_original’ may be used uninitialized [-Wmaybe-uninitialized] 1466 | if (retain_original) gmt_M_free (GMT, orig_load); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/gravprisms.c:985:72: warning: ‘lat’ may be used uninitialized [-Wmaybe-uninitialized] 985 | G0 = (Ctrl->F.lset) ? g_normal (Ctrl->F.lat) : g_normal (lat); | ^~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/gravprisms.c:1069:9: warning: ‘G0’ may be used uninitialized [-Wmaybe-uninitialized] 1069 | #pragma omp parallel for private(row,y_obs,col,node,z_level,th) shared(n_rows,scl_xy,GMT,G,Ctrl,n_columns,eval,x_obs,scl_z,n_prisms,prism,G0) | ^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/gravprisms.c:1069:9: warning: ‘eval’ may be used uninitialized [-Wmaybe-uninitialized] 1069 | #pragma omp parallel for private(row,y_obs,col,node,z_level,th) shared(n_rows,scl_xy,GMT,G,Ctrl,n_columns,eval,x_obs,scl_z,n_prisms,prism,G0) | ^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys_solve.c:773:52: warning: ‘’ directive output may be truncated writing 1 byte into a region of size between 0 and 63 [-Wformat-truncation=] 773 | snprintf (format1, GMT_LEN64-1, "%s\t", GMT->current.setting.format_float_out); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys_solve.c:774:52: warning: ‘%s’ directive output may be truncated writing up to 63 bytes into a region of size 61 [-Wformat-truncation=] 774 | snprintf (format2, GMT_LEN64-2, "\t%s\n", GMT->current.setting.format_float_out); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/seis/pscoupe.c:1296:41: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1296 | strncpy (tmp_buffer, S->text[row], GMT_LEN256); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/seis/pscoupe.c:1289:46: warning: ‘scale’ may be used uninitialized [-Wmaybe-uninitialized] 1289 | size *= scl; | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77manage.c:1288:57: warning: ‘strncpy’ output may be truncated copying between 0 and 4095 bytes from a string of length 4095 [-Wstringop-truncation] 1288 | strncpy (MGD77_Header_Lookup[key].ptr[MGD77_REVISED], answer, length); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/seis/psmeca.c:821:41: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 821 | strncpy (tmp_buffer, S->text[row], GMT_LEN256); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/seis/psmeca.c:1026:47: warning: ‘scale’ may be used uninitialized [-Wmaybe-uninitialized] 1026 | size = (scale / Ctrl->S.reference) * ((Ctrl->S.linear) ? moment.mant * pow (10.0, moment.exponent) : meca_computed_mw (moment, meca.magms)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/ssrfpack.c:965:20: warning: variable ‘nit’ set but not used [-Wunused-but-set-variable=] 965 | static integer nit; | ^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/ssrfpack.c:2162:5: warning: array subscript -1 is outside array bounds of ‘integer[30]’ [-Warray-bounds=] 2162 | --npts; | ^~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/grdgravmag3d.c:437:49: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 437 | strncpy(Ctrl->Q.region, opt->arg, GMT_BUFSIZ); /* Pad given as a -R region */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/movie.c:992:49: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation] 992 | strncpy (Ctrl->G.pen, &c[2], GMT_LEN64); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/surface.c:1323:128: warning: ‘last_k’ may be used uninitialized [-Wmaybe-uninitialized] 1323 | C->data[k].x, C->data[k].y, C->data[k].z, C->data[last_k].x, C->data[last_k].y, C->data[last_k].z, last_index); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/solids.c:230:40: warning: ‘zi1’ may be used uninitialized [-Wmaybe-uninitialized] 230 | if (sino && fabs ((zi1 - z_c) / z_c) > 0.01) { | ~~~~~^~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtspatial.c:2390:41: warning: ‘gmt_translate_point’ accessing 24 bytes in a region of size 16 [-Wstringop-overflow=] 2390 | gmt_translate_point (GMT, in, out, par, geo); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtspatial.c:2390:41: warning: ‘gmt_translate_point’ accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtspatial.c:2406:41: warning: ‘gmt_translate_point’ accessing 24 bytes in a region of size 16 [-Wstringop-overflow=] 2406 | gmt_translate_point (GMT, in, out, par, geo); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtspatial.c:2406:41: warning: ‘gmt_translate_point’ accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psconvert.c:1673:18: warning: variable ‘pos’ set but not used [-Wunused-but-set-variable=] 1673 | uint64_t pos = 0; | ^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psconvert.c:1251:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1251 | write (H->fd[1], PS->data, PS->n_bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psconvert.c:1456:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1456 | write (H->fd[1], PS->data, PS->n_bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psconvert.c:1425:17: warning: ‘__strncat_chk’ output may be truncated copying 1023 bytes from a string of length 4095 [-Wstringop-truncation] 1425 | strncat (cmd, out_file, 1023); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:1988:54: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 4095 [-Wstringop-truncation] 1988 | if (word[1]) strncpy (C->units, &word[1], GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:1980:54: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 4095 [-Wstringop-truncation] 1980 | if (word[1]) strncpy (h->y_units, &word[1], GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:1972:54: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 4095 [-Wstringop-truncation] 1972 | if (word[1]) strncpy (h->x_units, &word[1], GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:2042:54: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 4095 [-Wstringop-truncation] 2042 | if (word[1]) strncpy (HH->varname, &word[1], GMT_GRID_VARNAME_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:2023:54: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 4095 [-Wstringop-truncation] 2023 | if (word[1]) strncpy (h->title, &word[1], GMT_GRID_TITLE_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:2034:54: warning: ‘strncpy’ output may be truncated copying 159 bytes from a string of length 4095 [-Wstringop-truncation] 2034 | if (word[1]) strncpy (h->remark, &word[1], GMT_GRID_REMARK_LEN160-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:2002:54: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 4095 [-Wstringop-truncation] 2002 | if (word[1]) strncpy (h->z_units, &word[1], GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:2230:17: warning: ‘strncpy’ output may be truncated copying 319 bytes from a string of length 4095 [-Wstringop-truncation] 2230 | strncpy (header->command, command, GMT_GRID_COMMAND_LEN320-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:2214:64: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 2214 | snprintf (file, GMT_LEN64, "@%s", API->remote_info[k_data].file); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:1217:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 511 [-Wstringop-truncation] 1217 | strncpy (HH->name, tmp, GMT_LEN256-1); /* Strip off variable name */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:1134:33: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 511 [-Wstringop-truncation] 1134 | strncpy (HH->name, tmp, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:1167:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 511 [-Wstringop-truncation] 1167 | strncpy (HH->name, tmp, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:3609:9: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 3609 | strncpy (Unew->name, U->name, GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_grdio.c:3610:9: warning: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 79 [-Wstringop-truncation] 3610 | strncpy (Unew->units, U->units, GMT_GRID_UNIT_LEN80-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys.c:1315:17: warning: ‘strncpy’ output may be truncated copying 16 bytes from a string of length 4095 [-Wstringop-truncation] 1315 | strncpy (s->suffix, sfile, 16); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys.c:1179:41: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 4095 [-Wstringop-truncation] 1179 | strncpy (suffix, &p[2], 15); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys.c:1176:41: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation] 1176 | strncpy (sfile, &p[2], PATH_MAX-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys.c:712:9: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation] 712 | strncpy (p->name, &file[start], 31U); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys.c:882:9: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation] 882 | strncpy (p->name, &file[first], 31U); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys.c:942:9: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation] 942 | strncpy (p->name, &file[first], 31U); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/x2sys/x2sys.c:1002:9: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation] 1002 | strncpy (p->name, &file[first], 63U); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/grdseamount.c:786:19: warning: ‘r’ may be used uninitialized [-Wmaybe-uninitialized] 786 | return (r * r0); | ~~~^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/grdseamount.c:1406:21: warning: ‘MEM[(double *)&ABC]’ may be used uninitialized [-Wmaybe-uninitialized] 1406 | u2 = ABC[0] * dx * dx + ABC[1] * dx * dy + ABC[2] * dy * dy; | ~~~~~~~^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/grdseamount.c:1406:40: warning: ‘MEM[(double *)&ABC + 8B]’ may be used uninitialized [-Wmaybe-uninitialized] 1406 | u2 = ABC[0] * dx * dx + ABC[1] * dx * dy + ABC[2] * dy * dy; | ~~~~~~~^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/grdseamount.c:1406:59: warning: ‘MEM[(double *)&ABC + 16B]’ may be used uninitialized [-Wmaybe-uninitialized] 1406 | u2 = ABC[0] * dx * dx + ABC[1] * dx * dy + ABC[2] * dy * dy; | ~~~~~~~^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/potential/grdseamount.c:2034:28: warning: ‘exact_increments’ may be used uninitialized [-Wmaybe-uninitialized] 2034 | if (Ctrl->W.active && exact_increments) gmt_M_free (GMT, prev_z); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/spotter/spotter.c:425:9: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 425 | strncpy (file, infile, PATH_MAX); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:873:41: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 873 | strncpy (format, text, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:880:41: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 880 | strncpy (format, text, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:677:25: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation] 677 | strncpy (text, unit, GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:915:9: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 915 | strncpy (one_format, format, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:950:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 950 | strncpy (format, text, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:1030:9: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1030 | strncpy (label, GMT->current.map.frame.axis[GMT_X].label, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:1031:9: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1031 | strncpy (unit, GMT->current.map.frame.axis[GMT_Y].label, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:1034:39: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1034 | if (label[0] == '\0') strncpy (label, Ctrl->S.label, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:1035:38: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1035 | if (unit[0] == '\0') strncpy (unit, Ctrl->S.unit, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:1882:78: warning: ‘%s’ directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 1882 | sprintf (format2, "> %s", one_format); | ^~ ~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:1878:78: warning: ‘%s’ directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 1878 | sprintf (format2, "< %s", one_format); | ^~ ~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:1480:78: warning: ‘%s’ directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 1480 | sprintf (format2, "> %s", one_format); | ^~ ~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psscale.c:1476:78: warning: ‘%s’ directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 1476 | sprintf (format2, "< %s", one_format); | ^~ ~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_error.h:144:43: warning: ‘nx_proj’ may be used uninitialized [-Wmaybe-uninitialized] 144 | # define gmt_M_err_fail(C,err,file) gmt_err_func(C,err,true,file,__func__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_error.h:144:43: warning: ‘ny_proj’ may be used uninitialized [-Wmaybe-uninitialized] 144 | # define gmt_M_err_fail(C,err,file) gmt_err_func(C,err,true,file,__func__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/greenspline.c:517:49: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized] 517 | sscanf (&opt->arg[k], "%lf/%s", &Ctrl->C.value, p); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdview.c:312:36: warning: variable ‘PH’ set but not used [-Wunused-but-set-variable=] 312 | struct GMT_PALETTE_HIDDEN *PH; | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psxyz.c:2130:33: warning: ‘outline_setting’ may be used uninitialized [-Wmaybe-uninitialized] 2130 | gmt_setfill (GMT, ¤t_fill, outline_setting); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psxyz.c:1851:65: warning: ‘bar_width’ may be used uninitialized [-Wmaybe-uninitialized] 1851 | PSL_plotbox (PSL, x_2, zb, x_2 + bar_width, data[i].zz[k]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psxyz.c:1850:86: warning: ‘bar_step’ may be used uninitialized [-Wmaybe-uninitialized] 1850 | x_2 = x_1 + bar_step * k; /* Recycle x_2 as left point on skinny bar k */ | ~~~~~~~~~^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/postscriptlight.c:2355:23: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] 2355 | return (error + sub_on|super_on|scaps_on|symbol_on|font_on|size_on|color_on|under_on); | ~~~~~~^~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/postscriptlight.c:5274:35: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 4091 [-Wformat-overflow=] 3374 | return (text); | ~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/postscriptlight.c:711:9: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 711 | strncpy (in_string, out_string, strlen (out_string)); /* Overwrite old string with possibly adjusted string */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/postscriptlight.c:3324:25: warning: ‘strncpy’ output may be truncated copying 64 bytes from a string of length 4095 [-Wstringop-truncation] 3324 | strncpy (PSL->internal.font[i].name, fullname, PSL_FONTNAME_LEN); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psxy.c:797:33: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 797 | strncpy (txt_a, &text[j], GMT_LEN256); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psxy.c:2046:65: warning: ‘bar_width’ may be used uninitialized [-Wmaybe-uninitialized] 2046 | PSL_plotbox (PSL, x_2, yb, x_2 + bar_width, yt); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/psxy.c:2045:86: warning: ‘bar_step’ may be used uninitialized [-Wmaybe-uninitialized] 2045 | x_2 = x_1 + bar_step * k; /* Recycle x_2 as left point on skinny bar k */ | ~~~~~~~~~^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_ogrread.c:256:31: warning: ‘%lld’ directive writing between 1 and 20 bytes into a region of size 10 [-Wformat-overflow=] 256 | sprintf(sid, "%lld", OGR_F_GetFID(hFeature)+1); | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/cm4_functions.c:974:5: warning: array subscript -1 is outside array bounds of ‘int[12]’ [-Warray-bounds=] 974 | --idim; | ^~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77sniffer.c:678:61: warning: ‘ -’ directive output may be truncated writing 2 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 678 | snprintf (arguments, GMT_BUFSIZ, "%s -%c%s", arguments, opt->option, opt->arg); | ^~ -
/usr/include/bits/stdio2.h:68:10: warning: ‘__snprintf_chk’ argument 6 overlaps destination object ‘arguments’ [-Wrestrict]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77sniffer.c:676:64: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 676 | snprintf (arguments, GMT_BUFSIZ, "%s %s", arguments, opt->arg); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77sniffer.c:2904:85: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 2904 | snprintf (errorStr, GMT_LEN128, "%s0",errorStr); | ^ -
/usr/include/bits/stdio2.h:68:10: warning: ‘__snprintf_chk’ argument 6 overlaps destination object ‘errorStr’ [-Wrestrict]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77sniffer.c:2900:102: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 2900 | snprintf (errorStr, GMT_LEN128, "%s%c", errorStr, (int)('A'+field)); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77sniffer.c:2906:85: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 2906 | snprintf (errorStr, GMT_LEN128, "%s-",errorStr); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77.c:4015:9: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation] 4015 | strncpy (F->user, name, MGD77_COL_ABBREV_LEN); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77.c:4251:17: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation] 4251 | strncpy (F->Bit_test[i].name, &p[1], MGD77_COL_ABBREV_LEN-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77.c:4188:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 4095 [-Wstringop-truncation] 4188 | strncpy (word, p, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77.c:4232:33: warning: ‘strncpy’ output may be truncated copying 64 bytes from a string of length 255 [-Wstringop-truncation] 4232 | strncpy (F->Exact[F->n_exact].name, word, MGD77_COL_ABBREV_LEN); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77.c:4215:25: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 4215 | strncpy (F->Constraint[F->n_constraints].name, word, MGD77_COL_ABBREV_LEN-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/mgd77/mgd77.c:4216:25: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 4216 | strncpy (F->Constraint[F->n_constraints].c_constraint, value, GMT_LEN64-1); | ^ -
/usr/include/bits/string_fortified.h:112:10: warning: ‘strncpy’ accessing 0 or more bytes at offsets [-4611686018427387904, 4611686018427387903] and 0 may overlap up to 13835058055282163712 bytes at offset [0, 4611686018427387903] [-Wrestrict] 112 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ -
/usr/include/bits/string_fortified.h:112:10: warning: ‘strncpy’ accessing 0 or more bytes at offsets [-4611686018427387904, 4611686018427387903] and [-4611686018427387904, 4611686018427387903] may overlap up to 18446744073709551615 bytes at offset [-4611686018427387904, 4611686018427387903] [-Wrestrict] 112 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1947:46: warning: unused variable ‘itmp’ [-Wunused-variable] 1947 | unsigned int ix, jy, itmp, ij_c; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1987:17: warning: ‘/*’ within comment [-Wcomment] 1987 | /* ------------------------------------------------------------------------------------ */
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2086:62: warning: embedded ‘\0’ in format [-Wformat-contains-nul] 2086 | sprintf(prenome,"%.5d\0", irint(time_h) ); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2226:38: warning: unused variable ‘cnt’ [-Wunused-variable] 2226 | size_t strt, cnt, row, col; | ^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2226:32: warning: variable ‘strt’ set but not used [-Wunused-but-set-variable=] 2226 | size_t strt, cnt, row, col; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2225:51: warning: unused variable ‘RC’ [-Wunused-variable] 2225 | int k, kp, km, nKabas, RC[2]; | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1133:17: warning: unused variable ‘manning’ [-Wunused-variable] 1133 | double manning[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; /* Manning coefficients */ | ^~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1130:17: warning: variable ‘add_const’ set but not used [-Wunused-but-set-variable=] 1130 | double add_const = 0, time_h = 0; | ^~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1128:71: warning: variable ‘fluxn_for_oranges’ set but not used [-Wunused-but-set-variable=] 1128 | double *vx_for_oranges, *vy_for_oranges, *fluxm_for_oranges, *fluxn_for_oranges, *htotal_for_oranges; /* For tracers */ | ^~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1128:51: warning: variable ‘fluxm_for_oranges’ set but not used [-Wunused-but-set-variable=] 1128 | double *vx_for_oranges, *vy_for_oranges, *fluxm_for_oranges, *fluxn_for_oranges, *htotal_for_oranges; /* For tracers */ | ^~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1127:105: warning: variable ‘fluxn_for_maregs’ set but not used [-Wunused-but-set-variable=] 1127 | double *eta_for_maregs, *vx_for_maregs, *vy_for_maregs, *htotal_for_maregs, *fluxm_for_maregs, *fluxn_for_maregs; | ^~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1127:86: warning: variable ‘fluxm_for_maregs’ set but not used [-Wunused-but-set-variable=] 1127 | double *eta_for_maregs, *vx_for_maregs, *vy_for_maregs, *htotal_for_maregs, *fluxm_for_maregs, *fluxn_for_maregs; | ^~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1126:36: warning: unused variable ‘etam’ [-Wunused-variable] 1126 | double dx, dy, ds, dtCFL, etam, one_100, t; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1124:55: warning: variable ‘prc’ set but not used [-Wunused-but-set-variable=] 1124 | double time_jump = 0, time0, time_for_anuga, prc; | ^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1120:40: warning: unused variable ‘m_per_deg’ [-Wunused-variable] 1120 | double *maregs_timeout = NULL, m_per_deg = 111317.1; | ^~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1119:37: warning: unused variable ‘work_max’ [-Wunused-variable] 1119 | float work_min = FLT_MAX, work_max = -FLT_MAX, *maregs_array = NULL, *maregs_array_t = NULL; | ^~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1119:17: warning: unused variable ‘work_min’ [-Wunused-variable] 1119 | float work_min = FLT_MAX, work_max = -FLT_MAX, *maregs_array = NULL, *maregs_array_t = NULL; | ^~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1099:41: warning: unused variable ‘len’ [-Wunused-variable] 1099 | size_t start0 = 0, count0 = 1, len, start1_A[2] = {0,0}, count1_A[2]; | ^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1097:38: warning: unused variable ‘lcum’ [-Wunused-variable] 1097 | unsigned int *lcum_p = NULL, lcum = 0, ij, nx, ny; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1084:37: warning: unused variable ‘z_id’ [-Wunused-variable] 1084 | int ncid, ncid_most[3], z_id = -1, ids[13], ids_ha[6], ids_ua[6], ids_va[6], ids_most[3]; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1081:17: warning: variable ‘out_oranges_nc’ set but not used [-Wunused-but-set-variable=] 1081 | bool out_oranges_nc = false; /* For when tracers in output are written in netCDF */ | ^~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1072:17: warning: unused variable ‘w_bin’ [-Wunused-variable] 1072 | bool w_bin = true, cumpt = false, do_2Dgrids = false, do_maxs = false, mareg_xy = false; | ^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1070:90: warning: unused variable ‘r_bin_mN’ [-Wunused-variable] 1070 | int grn = 0, cumint = 0, decimate_max = 1, iprc, r_bin_b, r_bin_f, r_bin_mM, r_bin_mN; | ^~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1070:80: warning: unused variable ‘r_bin_mM’ [-Wunused-variable] 1070 | int grn = 0, cumint = 0, decimate_max = 1, iprc, r_bin_b, r_bin_f, r_bin_mM, r_bin_mN; | ^~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1070:71: warning: unused variable ‘r_bin_f’ [-Wunused-variable] 1070 | int grn = 0, cumint = 0, decimate_max = 1, iprc, r_bin_b, r_bin_f, r_bin_mM, r_bin_mN; | ^~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1070:62: warning: unused variable ‘r_bin_b’ [-Wunused-variable] 1070 | int grn = 0, cumint = 0, decimate_max = 1, iprc, r_bin_b, r_bin_f, r_bin_mM, r_bin_mN; | ^~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2459:36: warning: variable ‘yoff_P’ set but not used [-Wunused-but-set-variable=] 2459 | double xoff, yoff, xoff_P, yoff_P; /* Offsets to move from grid to pixel registration (zero if grid in pix reg) */ | ^~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:3431:65: warning: variable ‘dim3’ set but not used [-Wunused-but-set-variable=] 3431 | int k, ix, iy, ncid = -1, status, dim0[4], dim2[2], dim3[2]; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4090:95: warning: variable ‘fluxn_d’ set but not used [-Wunused-but-set-variable=] 4090 | double dt, manning, *bat, *htotal_a, *htotal_d, *etad, *fluxm_a, *fluxm_d, *fluxn_a, *fluxn_d, *vex, *r4m; | ^~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4088:40: warning: unused variable ‘rlat’ [-Wunused-variable] 4088 | double advx, dtdx, dtdy, advy, rlat; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4266:75: warning: variable ‘fluxm_d’ set but not used [-Wunused-but-set-variable=] 4266 | double dt, manning, *bat, *htotal_a, *htotal_d, *etad, *fluxm_a, *fluxm_d, *fluxn_a, *fluxn_d, *vey, *r4n; | ^~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4264:40: warning: unused variable ‘rlat’ [-Wunused-variable] 4264 | double advx, dtdx, dtdy, advy, rlat; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4552:95: warning: variable ‘fluxn_d’ set but not used [-Wunused-but-set-variable=] 4552 | double dt, manning, *htotal_a, *htotal_d, *bat, *etad, *fluxm_a, *fluxn_a, *fluxm_d, *fluxn_d, *vex; | ^~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4731:85: warning: variable ‘fluxm_d’ set but not used [-Wunused-but-set-variable=] 4731 | double dt, manning, *htotal_a, *htotal_d, *bat, *etad, *fluxm_a, *fluxn_a, *fluxm_d, *fluxn_d, *vey; | ^~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4908:32: warning: variable ‘etad_P’ set but not used [-Wunused-but-set-variable=] 4908 | double s, t1, *bat_P, *etad_P; | ^~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4908:24: warning: variable ‘bat_P’ set but not used [-Wunused-but-set-variable=] 4908 | double s, t1, *bat_P, *etad_P; | ^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4908:16: warning: variable ‘s’ set but not used [-Wunused-but-set-variable=] 4908 | double s, t1, *bat_P, *etad_P; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:4907:29: warning: variable ‘last_iter’ set but not used [-Wunused-but-set-variable=] 4907 | int i, n, col, row, last_iter; | ^~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:5073:1: warning: ‘/*’ within comment [-Wcomment] 5073 | /* ------------------------------------------------------------------------------------------- */
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:5134:1: warning: ‘/*’ within comment [-Wcomment] 5134 | /* --------------------------------------------------------------------- */
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:5415:61: warning: variable ‘k’ set but not used [-Wunused-but-set-variable=] 5415 | double sn, cs, c1, c2, c3, r, q, r2, r3, q2, q3, h, k, a1, a2, a3, f; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:5415:58: warning: variable ‘h’ set but not used [-Wunused-but-set-variable=] 5415 | double sn, cs, c1, c2, c3, r, q, r2, r3, q2, q3, h, k, a1, a2, a3, f; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:5449:61: warning: variable ‘k’ set but not used [-Wunused-but-set-variable=] 5449 | double sn, cs, c1, c2, c3, r, q, r2, r3, q2, q3, h, k, a1, a2; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:5107:71: warning: ‘pa’ may be used uninitialized [-Wmaybe-uninitialized] 5107 | soma += (*p + *pa) * 0.5; | ^~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1763:79: warning: ‘n_ptmar’ may be used uninitialized [-Wmaybe-uninitialized] 1763 | if ((maregs_array = (float *) calloc((size_t)(n_ptmar * n_mareg), sizeof(float))) == NULL) | ~~~~~~~~~^~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1763:79: warning: ‘n_mareg’ may be used uninitialized [-Wmaybe-uninitialized] 1763 | if ((maregs_array = (float *) calloc((size_t)(n_ptmar * n_mareg), sizeof(float))) == NULL) | ~~~~~~~~~^~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2140:33: warning: ‘tmp_slice’ may be used uninitialized [-Wmaybe-uninitialized] 2140 | write_anuga_slice(API, &nest, ncid, ids[11], i_start, j_start, i_end, j_end, tmp_slice, start1_A, count1_A, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2141 | ymom_range, 3, with_land, writeLevel); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2134:47: warning: ‘ncid’ may be used uninitialized [-Wmaybe-uninitialized] 2134 | err_trap(API, nc_put_vara_double (ncid, ids[6], &start0, &count0, &time_for_anuga)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2022:33: warning: ‘i_start’ may be used uninitialized [-Wmaybe-uninitialized] 2022 | gmtnswing_write_grid(API, prenome, xMinOut, yMinOut, dx, dy, i_start, j_start, i_end, j_end, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2023 | nest.hdr[writeLevel].n_columns, wmax); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2022:33: warning: ‘j_start’ may be used uninitialized [-Wmaybe-uninitialized] 2022 | gmtnswing_write_grid(API, prenome, xMinOut, yMinOut, dx, dy, i_start, j_start, i_end, j_end, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2023 | nest.hdr[writeLevel].n_columns, wmax); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2022:33: warning: ‘i_end’ may be used uninitialized [-Wmaybe-uninitialized] 2022 | gmtnswing_write_grid(API, prenome, xMinOut, yMinOut, dx, dy, i_start, j_start, i_end, j_end, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2023 | nest.hdr[writeLevel].n_columns, wmax); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2022:33: warning: ‘j_end’ may be used uninitialized [-Wmaybe-uninitialized] 2022 | gmtnswing_write_grid(API, prenome, xMinOut, yMinOut, dx, dy, i_start, j_start, i_end, j_end, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2023 | nest.hdr[writeLevel].n_columns, wmax); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2022:33: warning: ‘xMinOut’ may be used uninitialized [-Wmaybe-uninitialized] 2022 | gmtnswing_write_grid(API, prenome, xMinOut, yMinOut, dx, dy, i_start, j_start, i_end, j_end, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2023 | nest.hdr[writeLevel].n_columns, wmax); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:2022:33: warning: ‘yMinOut’ may be used uninitialized [-Wmaybe-uninitialized] 2022 | gmtnswing_write_grid(API, prenome, xMinOut, yMinOut, dx, dy, i_start, j_start, i_end, j_end, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2023 | nest.hdr[writeLevel].n_columns, wmax); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/nswing/nswing.c:1894:101: warning: ‘eta_for_maregs’ may be used uninitialized [-Wmaybe-uninitialized] 1894 | maregs_array[count_maregs_timeout++] = (float)eta_for_maregs[lcum_p[ij]]; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:1089:13: warning: variable ‘k’ set but not used [-Wunused-but-set-variable=] 1089 | int k; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:4283:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 4283 | pstr = strrchr (filename, ','); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:4284:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 4284 | qstr = strchr (filename, '?'); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:9315:13: warning: the comparison will always evaluate as ‘true’ for the address of ‘data’ will never be NULL [-Waddress] 9315 | if (&(M->data) && free_matrix) { | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.h:158:44: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 158 | #define gmt_M_fread(ptr,size,nmemb,stream) fread(ptr,size,nmemb,stream) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:2645:9: warning: ‘__strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation] 2645 | strncpy (scopy, s, j); | ^ -
/usr/include/bits/string_fortified.h:152:10: warning: ‘__strcat_chk’ accessing 65 or more bytes at offsets 50 and 114 may overlap 1 byte at offset 114 [-Wrestrict] 152 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/usr/include/bits/string_fortified.h:152:10: warning: ‘__strcat_chk’ accessing 65 or more bytes at offsets 42 and 106 may overlap 1 byte at offset 106 [-Wrestrict] 152 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/usr/include/bits/string_fortified.h:152:10: warning: ‘__strcat_chk’ accessing 65 or more bytes at offsets 744043 and 744107 may overlap 1 byte at offset 744107 [-Wrestrict] 152 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/usr/include/bits/string_fortified.h:152:10: warning: ‘__strcat_chk’ accessing 67 or more bytes at offsets 744043 and 744109 may overlap 1 byte at offset 744109 [-Wrestrict] 152 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:2347:17: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 63 [-Wstringop-truncation] 2347 | strncpy (item, s, 2U); if (item[0]) hh = atoi (item), k++; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:2348:17: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 61 [-Wstringop-truncation] 2348 | strncpy (item, &s[2], 2U); if (item[0]) mm = atoi (item), k++; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:2349:17: warning: ‘strncpy’ output may be truncated copying 32 bytes from a string of length 59 [-Wstringop-truncation] 2349 | strncpy (item, &s[4], GMT_LEN32); if (item[0]) ss = atof (item), k++; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:2349:17: warning: ‘strncpy’ output may be truncated copying 32 bytes from a string of length 59 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:7362:41: warning: ‘__strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation] 7362 | strncpy (calstring, s, callen-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:7360:41: warning: ‘__strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 7360 | strncpy (calstring, s, callen); | ^ -
/usr/include/bits/string_fortified.h:112:10: warning: ‘strncpy’ destination unchanged after copying no bytes [-Wstringop-truncation] 112 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:8636:33: warning: ‘S’ may be used uninitialized [-Wmaybe-uninitialized] 8636 | T->n_columns = S->n_columns; /* This has either changed or not */ | ~^~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:8643:46: warning: ‘n_seg’ may be used uninitialized [-Wmaybe-uninitialized] 8643 | if ((D->table[tbl] = gmt_create_table (GMT, n_seg, n_row, n_col, mode, false)) == NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:8643:46: warning: ‘n_col’ may be used uninitialized [-Wmaybe-uninitialized] 8643 | if ((D->table[tbl] = gmt_create_table (GMT, n_seg, n_row, n_col, mode, false)) == NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:8643:46: warning: ‘n_row’ may be used uninitialized [-Wmaybe-uninitialized] 8643 | if ((D->table[tbl] = gmt_create_table (GMT, n_seg, n_row, n_col, mode, false)) == NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:926:44: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized] 926 | S->proj[k] = strdup (&p[2]); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:10188:25: warning: ‘strncpy’ specified bound 128 equals destination size [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:3476:9: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 4095 [-Wstringop-truncation] 3476 | strncpy (copy, token, GMT_LEN32-1); /* Only mess with a copy */ | ^ -
/usr/include/bits/string_fortified.h:152:10: warning: ‘__strcat_chk’ accessing 170330 or more bytes at offsets 354388 and 184059 may overlap 1 byte at offset 354388 [-Wrestrict] 152 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_io.c:3495:76: warning: ‘template_delim’ may be used uninitialized [-Wmaybe-uninitialized] 3495 | gmt_strrepc (GMT->current.setting.format_date_in, delimiter[template_delim], delimiter[token_delim]); /* Replace delimiter we found in token with space */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdmath.c:2692:61: warning: ‘lon’ may be used uninitialized [-Wmaybe-uninitialized] 2692 | stack[prev2]->G->data[node] = (gmt_grdfloat)gmt_fisher_pdf (GMT, lon, lat, info->d_grd_x[col], info->d_grd_y[row], kappa); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdmath.c:2692:61: warning: ‘lat’ may be used uninitialized [-Wmaybe-uninitialized] 2692 | stack[prev2]->G->data[node] = (gmt_grdfloat)gmt_fisher_pdf (GMT, lon, lat, info->d_grd_x[col], info->d_grd_y[row], kappa); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdmath.c:2692:61: warning: ‘kappa’ may be used uninitialized [-Wmaybe-uninitialized] 2692 | stack[prev2]->G->data[node] = (gmt_grdfloat)gmt_fisher_pdf (GMT, lon, lat, info->d_grd_x[col], info->d_grd_y[row], kappa); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdmath.c:5657:61: warning: ‘mu’ may be used uninitialized [-Wmaybe-uninitialized] 5657 | stack[prev2]->G->data[node] = (gmt_grdfloat)gmt_vonmises_pdf (GMT, x, mu, kappa); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/grdmath.c:5657:61: warning: ‘kappa’ may be used uninitialized [-Wmaybe-uninitialized] 5657 | stack[prev2]->G->data[node] = (gmt_grdfloat)gmt_vonmises_pdf (GMT, x, mu, kappa); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtmath.c:5423:80: warning: ‘mu’ may be used uninitialized [-Wmaybe-uninitialized] 5423 | T_prev2->segment[s]->data[col][row] = q * exp (kappa * cosd (x - mu));
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtmath.c:5423:59: warning: ‘kappa’ may be used uninitialized [-Wmaybe-uninitialized] 5423 | T_prev2->segment[s]->data[col][row] = q * exp (kappa * cosd (x - mu)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmtmath.c:5423:57: warning: ‘q’ may be used uninitialized [-Wmaybe-uninitialized] 5423 | T_prev2->segment[s]->data[col][row] = q * exp (kappa * cosd (x - mu)); | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:308:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 308 | if ((p = strstr (string, "@[")) && strstr (&p[1], "@[")) return true; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:309:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 309 | if ((p = strstr (string, "<math>")) && strstr (&p[1], "</math>")) return true; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:3615:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 3615 | if (angle < 0.0) angle += 360.0; if (angle >= 360.0) angle -= 360.0; | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:9539:65: warning: use of assignment suppression and length modifier together in gnu_scanf format [-Wformat=] 9539 | if ((kk = sscanf (movie_item_arg[k][T], "%c %lg %lg %lg %lg %d %lg %lg %s %s %s %s %*d %*lg %*lg %*s %s %[^\n]", &kind, &plot_x, &plot_y, &t, &width, &justify, &clearance[GMT_X], &clearance[GMT_Y], P1, P2, F1, F2, font, label)) < 13) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:9539:65: warning: use of assignment suppression and length modifier together in gnu_scanf format [-Wformat=]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:445:17: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 445 | system ("rm -f gmt_eq.*"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:2194:16: warning: ‘G_dx’ may be used uninitialized [-Wmaybe-uninitialized] 2194 | G_nx = gmtlib_linear_array (GMT, w, e, G_dx, 0.0, &G_x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:2195:16: warning: ‘G_dy’ may be used uninitialized [-Wmaybe-uninitialized] 2195 | G_ny = gmtlib_linear_array (GMT, ys, yn, G_dy, 0.0, &G_y); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:1965:17: warning: ‘z0’ may be used uninitialized [-Wmaybe-uninitialized] 1965 | PSL_plotsegment (PSL, max, z0, max, z1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:1965:17: warning: ‘z1’ may be used uninitialized [-Wmaybe-uninitialized] 1965 | PSL_plotsegment (PSL, max, z0, max, z1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:3766:17: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 511 [-Wstringop-truncation] 3766 | strncpy (pen->style, PSL->current.style, GMT_PEN_LEN-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8205:40: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 16 [-Wformat-truncation=] 8205 | snprintf(prjcode, 16, "%s",(token[0] == '+' ? &token[6] : &token[5])); /* PROJ4 projection code. */ | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8400:33: warning: ‘__strncat_chk’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 8400 | strncat(opt_J, &token[6], GMT_LEN256-1); strcat (opt_J, "/"); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8372:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8372 | strncat(lat_ts, &token[7], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8368:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8368 | strncat(lat_0, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8364:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8364 | strncat(lon_0, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8334:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8334 | strncat(lat_2, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8330:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8330 | strncat(lat_1, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8326:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8326 | strncat(lat_0, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8322:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8322 | strncat(lon_0, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8309:37: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 8309 | sprintf(t, "%d/", zone); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8261:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8261 | strncat(alpha, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8259:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8259 | strncat(lonc, &token[5], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8257:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8257 | strncat(lat_0, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8255:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8255 | strncat(lat_2, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8253:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8253 | strncat(lon_2, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8251:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8251 | strncat(lat_1, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8249:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8249 | strncat(lon_1, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8229:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8229 | strncat(lat_0, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8225:33: warning: ‘__strncat_chk’ output may be truncated copying 31 bytes from a string of length 255 [-Wstringop-truncation] 8225 | strncat(lon_0, &token[6], 31); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8559:78: warning: ‘%s’ directive writing up to 255 bytes into a region of size 32 [-Wformat-overflow=] 8559 | if (gmt_strtok (pch, " \t+", &pos, token)) sprintf(scale_c, "%s", &token[6]); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:8567:78: warning: ‘%s’ directive writing up to 255 bytes into a region of size 32 [-Wformat-overflow=] 8567 | if (gmt_strtok (pch, " \t+", &pos, token)) sprintf(scale_c, "%sW", &token[6]); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:2519:25: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation] 2519 | strncpy (GMT->current.setting.format_float_map, tmp, GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:2912:33: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation] 2912 | strncpy (GMT->current.setting.format_float_map, tmp, GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_plot.c:9021:17: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 9021 | strncpy (region, label, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_map.c:6369:34: warning: variable ‘zmax’ set but not used [-Wunused-but-set-variable=] 6369 | double x, y, zmin = 0.0, zmax = 0.0, z_range; | ^~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_map.c:3954:37: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 4 [-Wformat-truncation=] 3954 | snprintf (zone, 4, "%d%c", kx, GMT->current.proj.utm_zoney); | ^~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:12035:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:2567:9: warning: ‘strncpy’ output may be truncated copying between 80 and 320 bytes from a string of length 4095 [-Wstringop-truncation] 2567 | strncpy (string, buffer, length); /* Only copy over max length bytes */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:2567:9: warning: ‘strncpy’ output may be truncated copying between 80 and 320 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:2536:17: warning: ‘__strncpy_chk’ output may be truncated copying between 79 and 319 bytes from a string of length 4095 [-Wstringop-truncation] 2536 | strncpy (H->title, buffer, length-1); /* Only copy over max length-1 bytes so last byte is 0 */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:2540:17: warning: ‘strncpy’ output may be truncated copying between 79 and 319 bytes from a string of length 4095 [-Wstringop-truncation] 2540 | strncpy (H->command, buffer, length-1); /* Only copy over max length-1 bytes so last byte is 0 */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:2544:17: warning: ‘__strncpy_chk’ output may be truncated copying between 79 and 319 bytes from a string of length 4095 [-Wstringop-truncation] 2544 | strncpy (H->remark, buffer, length-1); /* Only copy over max length-1 bytes so last byte is 0 */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:12056:51: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:12961:25: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:12989:9: warning: ‘__strncat_chk’ output may be truncated copying 28 bytes from a string of length 31 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:12993:25: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:7302:67: warning: ‘was’ may be used uninitialized [-Wmaybe-uninitialized] 7302 | if (V->n_headers) GMT->current.setting.io_header[GMT_OUT] = was; /* Revert to the original setting */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:7144:67: warning: ‘was’ may be used uninitialized [-Wmaybe-uninitialized] 7144 | if (M->n_headers) GMT->current.setting.io_header[GMT_OUT] = was; /* Revert to the original setting */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:15466:17: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:4687:9: warning: ‘strncpy’ output may be truncated copying between 3 and 4 bytes from a string of length 4 [-Wstringop-truncation] 4687 | strncpy (h->mem_layout, layout, n_len); /* Fill out red, green, and blue bands */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:4696:9: warning: ‘strncpy’ output may be truncated copying between 3 and 4 bytes from a string of length 4 [-Wstringop-truncation] 4696 | strncpy (h->mem_layout, layout, n_len); /* Fill out red, green, and blue pixels */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:15594:17: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:15616:25: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:15784:91: warning: ‘code’ may be used uninitialized [-Wmaybe-uninitialized]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:8055:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 8055 | strncpy (last_color, color, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:6114:33: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 6114 | strncpy (HH->name, the_file, GMT_GRID_NAME_LEN256); /* Filename minus any specified variable */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:6114:33: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:6181:44: warning: ‘z_min’ may be used uninitialized [-Wmaybe-uninitialized] 6181 | if (G->header->z_min < z_min) z_min = G->header->z_min; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:6182:44: warning: ‘z_max’ may be used uninitialized [-Wmaybe-uninitialized] 6182 | if (G->header->z_max > z_max) z_max = G->header->z_max; | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_api.c:6185:59: warning: ‘here’ may be used uninitialized [-Wmaybe-uninitialized] 6185 | gmt_M_memcpy (&U_obj->data[here], G->data, U_obj->header->size, gmt_grdfloat); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:3972:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 3972 | if ((s = strstr (in, pattern))) { /* OK, found what we are looking for */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:9999:45: warning: the comparison will always evaluate as ‘true’ for the address of ‘txt’ will never be NULL [-Waddress] 9999 | if (&txt[1]) strncpy (GMT->common.l.item.pen[GMT_LEGEND_PEN_D], &txt[1], GMT_LEN32-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10028:45: warning: the comparison will always evaluate as ‘true’ for the address of ‘txt’ will never be NULL [-Waddress]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10032:45: warning: the comparison will always evaluate as ‘true’ for the address of ‘txt’ will never be NULL [-Waddress]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10036:45: warning: the comparison will always evaluate as ‘true’ for the address of ‘txt’ will never be NULL [-Waddress]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10039:45: warning: the comparison will always evaluate as ‘true’ for the address of ‘txt’ will never be NULL [-Waddress]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:18676:49: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:18679:49: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:18682:49: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:18685:49: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:20778:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:19629:17: warning: ‘gmtinit_get_session_name_format’ accessing 256 bytes in a region of size 64 [-Wstringop-overflow=]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6726:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6726 | strncpy (GMT->current.language.cardinal_name[0][i-1], full, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6727:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6727 | strncpy (GMT->current.language.cardinal_name[1][i-1], abbrev, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6728:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6728 | strncpy (GMT->current.language.cardinal_name[2][i-1], c, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6715:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6715 | strncpy (GMT->current.language.week_name[0], full, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6716:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6716 | strncpy (GMT->current.language.week_name[1], abbrev, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6717:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6717 | strncpy (GMT->current.language.week_name[2], c, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6709:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6709 | strncpy (GMT->current.language.day_name[0][i-1], full, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6710:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6710 | strncpy (GMT->current.language.day_name[1][i-1], abbrev, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6711:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6711 | strncpy (GMT->current.language.day_name[2][i-1], c, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6696:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6696 | strncpy (GMT->current.language.month_name[0][i-1], full, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6697:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6697 | strncpy (GMT->current.language.month_name[1][i-1], abbrev, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6698:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6698 | strncpy (GMT->current.language.month_name[2][i-1], c, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6700:25: warning: ‘__strncpy_chk’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 6700 | strncpy (GMT->current.language.month_name[3][i-1], abbrev, GMT_LEN16-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:4494:33: warning: ‘strncpy’ specified bound 63 equals destination size [-Wstringop-truncation] 4494 | strncpy (&workspace[1], GMT->current.map.frame.axis[i].prefix, GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:4504:33: warning: ‘strncpy’ specified bound 63 equals destination size [-Wstringop-truncation] 4504 | strncpy (&workspace[1], GMT->current.map.frame.axis[i].unit, GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:4800:49: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 4095 [-Wstringop-truncation] 4800 | strncpy (GMT->current.map.frame.header, &p[1], GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:4792:49: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 4095 [-Wstringop-truncation] 4792 | strncpy (GMT->current.map.frame.sub_header, &p[1], GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:4986:9: warning: ‘strncpy’ output may be truncated copying between 0 and 4095 bytes from a string of length 4095 [-Wstringop-truncation] 4986 | strncpy (orig_string, text, k); /* orig_string now has the interval information */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:5106:57: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation] 5106 | strncpy (GMT->current.map.frame.axis[no].unit, &p[1], GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:5081:57: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation] 5081 | strncpy (GMT->current.map.frame.axis[no].prefix, &p[1], GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:5095:57: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 4095 [-Wstringop-truncation] 5095 | strncpy (GMT->current.map.frame.axis[no].secondary_label, &p[1], GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:5070:57: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 4095 [-Wstringop-truncation] 5070 | strncpy (GMT->current.map.frame.axis[no].label, &p[1], GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:13837:25: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:13393:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:13457:53: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 8 [-Wformat-truncation=]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:13783:25: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:14749:48: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:11364:49: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:11291:25: warning: ‘strncpy’ output may be truncated copying 5 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:11270:33: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:12447:25: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:20410:17: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:20432:48: warning: ‘%s’ directive writing up to 255 bytes into a region of size 250 [-Wformat-overflow=]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:9330:9: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 4095 [-Wstringop-truncation] 9330 | strncpy (GMT->common.R.string, item, GMT_LEN256-1); /* Verbatim copy */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:9422:17: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation] 9422 | strncpy (string, item, GMT_BUFSIZ-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:9508:17: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation] 9508 | strncpy (string, item, GMT_BUFSIZ-1); /* Try to read these as 4 limits in meters */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:9517:17: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation] 9517 | strncpy (string, item, GMT_BUFSIZ-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:9497:17: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation] 9497 | strncpy (string, &item[1], GMT_BUFSIZ-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:9474:17: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation] 9474 | strncpy (string, &item[1], GMT_BUFSIZ-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:1415:9: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation] 1415 | strncpy (Jstring, GMT->common.J.string, GMT_LEN128-1); /* Make a duplicate in case we must mess around with it */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:5629:9: warning: ‘strncpy’ specified bound 128 equals destination size [-Wstringop-truncation] 5629 | strncpy (args_buf, args_in, GMT_LEN128); /* Must duplicate since args_in may be a static string */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:5640:17: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation] 5640 | strncpy (GMT->common.J.zstring, args, GMT_LEN128-1); /* Verbatim copy of -Jz|Z */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:5642:17: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation] 5642 | strncpy (GMT->common.J.string, args, GMT_LEN128-1); /* Verbatim copy or map -J */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:17333:33: warning: ‘__strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:6429:49: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 4095 [-Wstringop-truncation] 6429 | case 't': strncpy (S->string, &p[1], GMT_LEN256-1); break; /* Get the symbol text */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10039:54: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10036:54: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10032:54: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10030:43: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10028:54: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10011:49: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10007:49: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:10001:43: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:9996:43: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 127 [-Wstringop-truncation] 9996 | case 'G': strncpy (GMT->common.l.item.gap, &txt[1], GMT_LEN32-1); break; /* Gap before next item */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:9999:54: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 127 [-Wstringop-truncation] 9999 | if (&txt[1]) strncpy (GMT->common.l.item.pen[GMT_LEGEND_PEN_D], &txt[1], GMT_LEN32-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:2567:57: warning: ‘strncpy’ output may be truncated copying 64 bytes from a string of length 255 [-Wstringop-truncation] 2567 | strncpy(GMT->common.U.string, &word[1], GMT_LEN64); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:15247:73: warning: ‘__strncat_chk’ output may be truncated copying 126 bytes from a string of length 255 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:16377:33: warning: ‘__strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:16402:41: warning: ‘strncpy’ output may be truncated copying 8 bytes from a string of length 31 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:16525:33: warning: ‘strncpy’ output may be truncated copying 8 bytes from a string of length 31 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:16531:55: warning: ‘d_inc’ may be used uninitialized [-Wmaybe-uninitialized]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:20918:33: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 8 [-Wformat-overflow=]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_init.c:7369:25: warning: ‘strncpy’ output may be truncated copying 64 bytes from a string of length 4095 [-Wstringop-truncation] 7369 | strncpy (GMT->session.font[i].name, fullname, PSL_FONTNAME_LEN); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:6377:95: warning: ‘az_cross’ may be used uninitialized [-Wmaybe-uninitialized] 6377 | sign = (az_cross >= 315.0 || az_cross < 135.0) ? -1.0 : 1.0; /* We want profiles to be either ~E-W or ~S-N */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:1276:17: warning: ‘strncpy’ specified bound 128 equals destination size [-Wstringop-truncation] 1276 | strncpy (P->style, line, GMT_PEN_LEN); /* We will update style in gmt_set_undefined_defaults. */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:5286:17: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation] 5286 | strncpy (name, in_name, length-4); /* Eliminate extension in name */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:5282:17: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation] 5282 | strncpy (name, in_name, length-4); /* Eliminate extension in name */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:8210:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 8210 | strncpy (line, GMT_CPT_master[k], GMT_LEN256); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:9432:54: warning: ‘scale_low’ may be used uninitialized [-Wmaybe-uninitialized] 9432 | x[i] = (z[i] - z[0]) * scale_low; | ~~~~~~~~~~~~~~^~~~~~~~~~~ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7563:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7563 | strncpy (color, width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7564:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7564 | strncpy (width, def_width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7559:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7559 | strncpy (style, width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7560:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7560 | strncpy (width, def_width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7555:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7555 | strncpy (color, width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7556:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7556 | strncpy (width, def_width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7551:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7551 | strncpy (style, width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7552:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7552 | strncpy (width, def_width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7539:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7539 | strncpy (style, color, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7542:33: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7542 | strncpy (color, width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7543:33: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7543 | strncpy (width, def_width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7534:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7534 | strncpy (style, color, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7535:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7535 | strncpy (color, width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7536:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7536 | strncpy (width, def_width, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:1218:9: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 1218 | strncpy (Lname, name, GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:11566:70: warning: ‘dcol’ may be used uninitialized [-Wmaybe-uninitialized]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:11108:49: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:11100:65: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:11077:43: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:11058:43: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:4928:46: warning: ‘__strncpy_chk’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 4928 | if (strcmp (p, "-")) strncpy (ms->label[order[k]], p, GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:19234:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7295:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7295 | strncpy (name, size, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7291:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7291 | strncpy (fill, size, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7283:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7283 | strncpy (fill, name, GMT_LEN256-1); /* Copy size */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7284:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7284 | strncpy (name, size, GMT_LEN256-1); /* Place name where it belongs */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7285:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7285 | strncpy (size, fill, GMT_LEN256-1); /* Place size where it belongs */ | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7275:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7275 | strncpy (fill, name, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7278:33: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7278 | strncpy (name, size, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7270:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7270 | strncpy (fill, name, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7271:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7271 | strncpy (name, size, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7303:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7303 | strncpy (name, size, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:7299:25: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 7299 | strncpy (fill, size, GMT_LEN256-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:10846:43: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:10758:41: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:10842:43: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:10794:49: warning: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:10874:43: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:14293:32: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation]
-
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:4827:49: warning: ‘__strncat_chk’ output may be truncated copying 126 bytes from a string of length 4095 [-Wstringop-truncation] 4827 | strncat (oldshit, p, GMT_LEN128-2); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:4834:51: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 4095 [-Wstringop-truncation] 4834 | if (p[1]) strncpy (ms->label, &p[1], GMT_LEN64-1); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:4812:49: warning: ‘__strncat_chk’ output may be truncated copying 126 bytes from a string of length 4095 [-Wstringop-truncation] 4812 | strncat (oldshit, p, GMT_LEN128-2); | ^ -
/builddir/build/BUILD/GMT-6.7.0-build/gmt-6.7.0/src/gmt_support.c:4803:49: warning: ‘__strncat_chk’ output may be truncated copying 125 bytes from a string of length 4095 [-Wstringop-truncation] 4803 | strncat (oldshit, &p[1], GMT_LEN128-3); | ^