Snippets for gmt 6.6.0 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/2jz7qiac61y8i573lrqbsnsvg4706l97-gmt-6.6.0.drv.
-
/build/source/src/postscriptlight.c:5007:35: warning: '%s' directive writing up to 4095 bytes into a region of size 4091 [-Wformat-overflow=] 3374 | return (text); | ~ -
/build/source/src/gmt_remote.c:1708:45: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 1708 | sprintf (coverage_file, "@%s", I->coverage); /* Prepend the remote flag since we may need to download the file */ | ^ -
/build/source/src/gmt_remote.c:1768:57: warning: '%s' directive writing up to 63 bytes into a region of size between 38 and 55 [-Wformat-overflow=] 1768 | sprintf (file, "@%c%2.2d%c%3.3d.%s.%s", YS, abs(clat), XS, abs(lon), tag, GMT_TILE_EXTENSION_LOCAL); | ^~ ~~~ -
/build/source/src/gmt_gdalread.c:1044:9: warning: 'GDALGetDataTypeSize' is deprecated: Use GDALGetDataTypeSizeBits() or GDALGetDataTypeSizeBytes() * 8 instead [-Wdeprecated-declarations] 1044 | nPixelSize = GDALGetDataTypeSize(GDALGetRasterDataType(hBand)) / 8; /* /8 because return value is in BITS */ | ^~~~~~~~~~ -
/build/source/src/gmt_dcw.c:373:47: warning: '__builtin___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'); | ^ -
/build/source/src/gmt_api.c:12660:106: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 46 [-Wformat-truncation=]
-
/build/source/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) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/gmt_grdio.c:2211:64: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 2211 | snprintf (file, GMT_LEN64, "@%s", API->remote_info[k_data].file); | ^ -
/build/source/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); | ^~ -
/build/source/src/gmt_io.c:5239:87: warning: ' <converted from ' directive writing 17 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 5239 | sprintf (GMT->current.io.filename[GMT_IN], "%s <converted from %s via ogr2ogr>", GMT->current.io.tempfile, c); | ^~~~~~~~~~~~~~~~~ -
/build/source/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/gmt_init.c:20552:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
-
/build/source/src/gmt_init.c:19414:17: warning: 'gmtinit_get_session_name_format' accessing 256 bytes in a region of size 64 [-Wstringop-overflow=]
-
/build/source/src/gmt_init.c:13445:53: warning: '%s' directive output may be truncated writing up to 31 bytes into a region of size 8 [-Wformat-truncation=]
-
/build/source/src/gmt_init.c:20215:48: warning: '%s' directive writing up to 255 bytes into a region of size 250 [-Wformat-overflow=]
-
/build/source/src/gmt_plot.c:9427:65: warning: use of assignment suppression and length modifier together in gnu_scanf format [-Wformat=] 9427 | 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) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/gmt_plot.c:9427:65: warning: use of assignment suppression and length modifier together in gnu_scanf format [-Wformat=]
-
/build/source/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.*"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/gmt_gdalcall.c:187:9: warning: 'GDALGetDataTypeSize' is deprecated: Use GDALGetDataTypeSizeBits() or GDALGetDataTypeSizeBytes() * 8 instead [-Wdeprecated-declarations] 187 | nPixelSize = GDALGetDataTypeSize(GDALGetRasterDataType(hBand)) / 8; /* /8 because return value is in BITS */ | ^~~~~~~~~~ -
/build/source/src/gmt_plot.c:8110:40: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 16 [-Wformat-truncation=] 8110 | snprintf(prjcode, 16, "%s",(token[0] == '+' ? &token[6] : &token[5])); /* PROJ4 projection code. */ | ^~ -
/build/source/src/gmt_plot.c:8214:37: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 8214 | sprintf(t, "%d/", zone); | ^~ -
/build/source/src/gmt_plot.c:8464:78: warning: '%s' directive writing up to 255 bytes into a region of size 32 [-Wformat-overflow=] 8464 | if (gmt_strtok (pch, " \t+", &pos, token)) sprintf(scale_c, "%s", &token[6]); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -
/build/source/src/gmt_plot.c:8472:78: warning: '%s' directive writing up to 255 bytes into a region of size 32 [-Wformat-overflow=] 8472 | if (gmt_strtok (pch, " \t+", &pos, token)) sprintf(scale_c, "%sW", &token[6]); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
/build/source/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 */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/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); | ^~ -
/build/source/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/gmtspatial.c:2390:41: warning: 'gmt_translate_point' accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
-
/build/source/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/gmtspatial.c:2406:41: warning: 'gmt_translate_point' accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
-
/build/source/src/grdblend.c:1156:32: warning: '%s' directive writing up to 4095 bytes into a region of size 256 [-Wformat-overflow=] 1156 | sprintf (cmd, "%s %s -V%c --GMT_HISTORY=readonly", outfile, Ctrl->G.file, V_level[GMT->current.setting.verbose]); | ^~ -
/build/source/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/psconvert.c:1237:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1237 | write (H->fd[1], PS->data, PS->n_bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/psconvert.c:1430:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1430 | write (H->fd[1], PS->data, PS->n_bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/psevents.c:1032:37: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] 1032 | sprintf (cmd, "%s -R%s -J%s -G+uC --PROJ_LENGTH_UNIT=inch ->%s", source, GMT->common.R.string, GMT->common.J.string, destination); | ^~ -
/build/source/src/psevents.c:1119:37: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] 1119 | 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); | ^~ -
/build/source/src/psscale.c:1853:78: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 1853 | sprintf (format2, "> %s", one_format); | ^~ ~~~~~~~~~~ -
/build/source/src/psscale.c:1849:78: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 1849 | sprintf (format2, "< %s", one_format); | ^~ ~~~~~~~~~~ -
/build/source/src/psscale.c:1459:78: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 1459 | sprintf (format2, "> %s", one_format); | ^~ ~~~~~~~~~~ -
/build/source/src/psscale.c:1455:78: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 1455 | sprintf (format2, "< %s", one_format); | ^~ ~~~~~~~~~~ -
/build/source/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); | ^~ -
/build/source/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); | ^~