Snippets for nco 5.4.1 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/nco/5.4.1/1.fc46/data/logs/i686/build.log.
-
nco_bnr.c:161:65: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 161 | (void)fprintf(stderr,"%s: ERROR only succeeded in writing %ld of %ld elements of variable %s\n",nco_prg_nm_get(),wrt_nbr,var_sz,var_nm); | ~~^ ~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_bnr.c:161:72: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 161 | (void)fprintf(stderr,"%s: ERROR only succeeded in writing %ld of %ld elements of variable %s\n",nco_prg_nm_get(),wrt_nbr,var_sz,var_nm); | ~~^ ~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_bnr.c:164:72: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 164 | if(nco_dbg_lvl_get() >= nco_dbg_scl) (void)fprintf(stdout,"%s (%s, %ld x %lu B), ",var_nm,c_typ_nm(var_typ),var_sz,(unsigned long)nco_typ_lng(var_typ)); | ~~^ ~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_cln_utl.c:1369:27: warning: ‘mss_val_flt’ may be used uninitialized [-Wmaybe-uninitialized] 1369 | if(var->has_mss_val && var->val.fp[idx] == mss_val_flt){ | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_cln_utl.c:1350:27: warning: ‘mss_val_dbl’ may be used uninitialized [-Wmaybe-uninitialized] 1350 | if(var->has_mss_val && var->val.dp[idx] == mss_val_dbl){ | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/usr/include/bits/stdio2.h:111:10: warning: ‘cll_mth_clm’ may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
nco_cnk.c:161:82: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 161 | (void)fprintf(stderr,"%s: INFO %s reports chunk cache size = cnk_csh_byt = %ld B, # of slots in raw data chunk cache has table = nelemsp = %ld, pre-emption favor fraction = pmp_fvr_frc = %g\n",nco_prg_nm_get(),fnc_nm,cnk_csh_byt_crr,nelemsp,pmp_fvr_frc); | ~~^ ~~~~~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_cnk.c:161:146: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 161 | (void)fprintf(stderr,"%s: INFO %s reports chunk cache size = cnk_csh_byt = %ld B, # of slots in raw data chunk cache has table = nelemsp = %ld, pre-emption favor fraction = pmp_fvr_frc = %g\n",nco_prg_nm_get(),fnc_nm,cnk_csh_byt_crr,nelemsp,pmp_fvr_frc); | ~~^ ~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
/usr/include/bits/stdio2.h:111:10: warning: ‘prt_sum’ may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
nco_flt.c:383:82: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 383 | (void)fprintf(stderr,"%s: INFO %s reports parsed filter ID = %u, prm_nbr = %lu: ",nco_prg_nm_get(),fnc_nm,flt_id,prm_nbr); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_flt.c:467:82: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 467 | (void)fprintf(stderr,"%s: INFO %s reports parsed filter ID = %u, u32_nbr = %lu: ",nco_prg_nm_get(),fnc_nm,flt_id,u32_nbr); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_flt.c:1652:32: warning: operation on ‘aed_ppc_lvl.id’ may be undefined [-Wsequence-point] 1652 | aed_ppc_cnt.id=aed_ppc_lvl.id=aed_ppc_lvl.id=var_id; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
nco_flt.c:420:28: warning: array subscript ‘unsigned int[0]’ is partly outside array bounds of ‘short int[1]’ [-Warray-bounds=] 420 | u32_lst[u32_nbr++]=*ui32p; | ^~~~~~ -
nco_flt.c:414:28: warning: array subscript ‘unsigned int[0]’ is partly outside array bounds of ‘short unsigned int[1]’ [-Warray-bounds=] 414 | u32_lst[u32_nbr++]=*ui32p; | ^~~~~~ -
nco_flt.c:355:37: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 355 | (void)fprintf(stderr,"%s: ERROR %s reports supplied filter string is empty\n",nco_prg_nm_get(),flt_sng); | ^~ -
nco_flt.c:1727:11: warning: ‘aed_ppc_alg.att_nm’ may be used uninitialized [-Wmaybe-uninitialized] 1727 | (void)nco_aed_prc(nc_id,var_cnt_id,aed_cnt_alg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_fl_utl.c:1864:110: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1864 | if(flg_rqs_vrb_xpl) (void)fprintf(stderr,"%s: INFO %s reports nc__open() will request file buffer size = %lu bytes\n",nco_prg_nm_get(),fnc_nm,*bfr_sz_hnt); | ~~^ ~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_fl_utl.c:1879:128: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1879 | if(flg_rqs_vrb_mpl || flg_rqs_vrb_xpl) (void)fprintf(stderr,"%s: INFO %s reports nc__open() opened file with buffer size = %lu bytes\n",nco_prg_nm_get(),fnc_nm,bfr_sz_hnt_lcl); | ~~^ ~~~~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_fl_utl.c:1754:45: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 8 [-Wformat-overflow=] 1754 | (void)sprintf(fl_nm_nbr_sng_fmt,"%%0%dd%%02d",fl_nm_nbr_dgt-2); | ^~ -
/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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_fl_utl.c:2581:25: warning: ‘psx_drc_lcl’ may be used uninitialized [-Wmaybe-uninitialized] 2581 | psx_drc_lcl[0]='.'; | ~~~~~~~~~~~~~~^~~~ -
nco_fl_utl.c:2595:29: warning: ‘psx_fll_lcl’ may be used uninitialized [-Wmaybe-uninitialized] 2595 | if(psx_fll) psx_fll_lcl=(char *)strdup(psx_fll_lcl); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_mmr.c:106:122: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 9 has type ‘long long unsigned int’ [-Wformat=] 106 | if(sz > sz_max) (void)fprintf(stdout,"%s: WARNING %s received request to allocate %lu B = %lu kB = %lu MB = %lu GB = %lu TB\n",nco_prg_nm_get(),fnc_nm,(unsigned long)sz,(unsigned long)sz/NCO_BYT_PER_KB,(unsigned long)sz/NCO_BYT_PER_MB,(unsigned long)sz/NCO_BYT_PER_GB,(unsigned long)sz/NCO_BYT_PER_TB); | ~~^ | | | long unsigned int | %llu -
nco_lmt.c:1531:63: warning: format ‘%li’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1531 | (void)fprintf(stdout,"%s: ERROR Size of dimension %s is %li in input file, but must be > 0 in order to apply limits.\n",nco_prg_nm_get(),lmt.nm,dmn_sz); | ~~^ ~~~~~~ | | | | long int size_t {aka unsigned int} | %i -
nco_pck.c:160:88: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 160 | (void)fprintf(stderr,"%s: ERROR %s reports empty user-specified packing map string %s\n",nco_prg_nm,fnc_nm,nco_pck_map_sng); | ^~ -
nco_ply_lst.c:203:53: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 203 | (void)fprintf(stdout, "%s: %s size input list(%lu), size output list(%d), num of split polygons(%d)\n", nco_prg_nm_get(),fnc_nm, grd_sz, idx_cnt, cnt_wrp_good); | ~~^ ~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_ply_lst.c:329:53: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 329 | (void)fprintf(stderr, "%s: %s size input list(%lu), size output list(%lu) total area=%.15e num wrapped= %d num caps=%d num masked=%d\n", nco_prg_nm_get(),fnc_nm, grd_sz, grd_sz, tot_area, wrp_cnt, wrp_y_cnt, msk_cnt); | ~~^ ~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_ply_lst.c:329:76: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 329 | (void)fprintf(stderr, "%s: %s size input list(%lu), size output list(%lu) total area=%.15e num wrapped= %d num caps=%d num masked=%d\n", nco_prg_nm_get(),fnc_nm, grd_sz, grd_sz, tot_area, wrp_cnt, wrp_y_cnt, msk_cnt); | ~~^ ~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_ply_lst.c:480:53: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 480 | (void)fprintf(stderr, "%s: %s size input list(%lu), size output list(%lu) total area=%.15e num wrapped= %d num caps=%d num masked=%d\n", nco_prg_nm_get(),fnc_nm, grd_sz, grd_sz, tot_area, wrp_cnt, wrp_y_cnt, msk_cnt); | ~~^ ~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_ply_lst.c:480:76: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 480 | (void)fprintf(stderr, "%s: %s size input list(%lu), size output list(%lu) total area=%.15e num wrapped= %d num caps=%d num masked=%d\n", nco_prg_nm_get(),fnc_nm, grd_sz, grd_sz, tot_area, wrp_cnt, wrp_y_cnt, msk_cnt); | ~~^ ~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_ply_lst.c:603:102: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 603 | if(nco_dbg_lvl_get() >= nco_dbg_dev) (void) fprintf(stderr, "%s: total overlaps=%d for polygon %lu - potential overlaps=%d actual overlaps=%d\n", nco_prg_nm_get(), pl_cnt_vrl, idx, cnt_vrl, cnt_vrl_on); | ~~^ ~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_ply_lst.c:538:10: warning: variable ‘size’ set but not used [-Wunused-but-set-variable=] 538 | kd_box size; | ^~~~ -
nco_ply_lst.c:713:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 713 | fprintf(fp_stderr, "%s(): idx=%lu thr=%d\n",fnc_nm, idx, thr_idx); | ~~^ ~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_ply_lst.c:962:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 962 | "%s: polygon %lu - potential overlaps=%d actual overlaps=%d area_in=%.10e vrl_area=%.10e adiff=%.15e bSplit=%d\n", | ~~^ | | | long unsigned int | %u 963 | nco_prg_nm_get(), idx, vrl_cnt, vrl_cnt_on, pl_lst_in[idx]->area, vrl_area, | ~~~ | | | size_t {aka unsigned int} -
nco_ply_lst.c:970:68: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 970 | (void) fprintf(fp_stderr, "# /** following pl_lst_in[%lu] **/\n", idx); | ~~^ ~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_ply_lst.c:1000:73: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1000 | (void)fprintf(fp_stderr, "%s: thread %d has processed %2.2f%% (%ld) of src cells quota and output %ld overlap cells\n", nco_prg_nm_get(), thr_idx, (float)mem_lst[thr_idx].idx_cnt/(float)thr_quota *100.0, mem_lst[thr_idx].idx_cnt, mem_lst[thr_idx].pl_cnt ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_ply_lst.c:1000:108: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1000 | (void)fprintf(fp_stderr, "%s: thread %d has processed %2.2f%% (%ld) of src cells quota and output %ld overlap cells\n", nco_prg_nm_get(), thr_idx, (float)mem_lst[thr_idx].idx_cnt/(float)thr_quota *100.0, mem_lst[thr_idx].idx_cnt, mem_lst[thr_idx].pl_cnt ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_ply_lst.c:1270:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1270 | fprintf(fp_stderr, "%s(): idx=%lu thr=%d\n", fnc_nm, idx, thr_idx); | ~~^ ~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_ply_lst.c:1389:73: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1389 | (void)fprintf(fp_stderr, "%s: thread %d has processed %2.2f%% (%ld) of src cells quota and output %ld overlap cells\n", nco_prg_nm_get(), thr_idx, (float)mem_lst[thr_idx].idx_cnt/(float)thr_quota *100.0, mem_lst[thr_idx].idx_cnt, mem_lst[thr_idx].pl_cnt ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_ply_lst.c:1389:108: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1389 | (void)fprintf(fp_stderr, "%s: thread %d has processed %2.2f%% (%ld) of src cells quota and output %ld overlap cells\n", nco_prg_nm_get(), thr_idx, (float)mem_lst[thr_idx].idx_cnt/(float)thr_quota *100.0, mem_lst[thr_idx].idx_cnt, mem_lst[thr_idx].pl_cnt ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_map.c:520:114: warning: format ‘%li’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 520 | if(nco_dbg_lvl_get() >= nco_dbg_std) (void)fprintf(stdout,"%s: INFO Defining mapfile in format %s with n_s = %li, n_a = %li, n_b = %li. Mean number of links per destination cell = n_s/n_b = %li/%li = %g. Mean number of links per geometric mean src/dst cell = n_s/sqrt(n_a*n_b) = %li/sqrt(%li*%li) = %g. RAM size of weight variable n_s is sizeof(double)*n_s = 8*%li = %g MB. RAM sizes of vertex variables x/y_va are sizeof(double)*n_a*nv_a = 8*%li*%li = %g MB. RAM sizes of vertex variables x/y_vb are sizeof(double)*n_b*nv_b = 8*%li*%li = %g MB. Storage reduction due to employing sparse-matrix instead of full-matrix formulation is a factor of %ld/%ld ~ %ld.\n",nco_prg_nm_get(),nco_fmt_sng(fl_out_fmt),lnk_nbr,src_grd_sz_nbr,dst_grd_sz_nbr,lnk_nbr,dst_grd_sz_nbr,lnk_nbr/(1.0*dst_grd_sz_nbr),lnk_nbr,src_grd_sz_nbr,dst_grd_sz_nbr,lnk_nbr/sqrt(src_grd_sz_nbr*dst_grd_sz_nbr),lnk_nbr,sizeof(double)*lnk_nbr/1.0e6,src_grd_sz_nbr,src_grd_crn_nbr,sizeof(double)*src_grd_sz_nbr*src_grd_crn_nbr/1.0e6,dst_grd_sz_nbr,dst_grd_crn_nbr,sizeof(double)*dst_grd_sz_nbr*dst_grd_crn_nbr/1.0e6,src_grd_sz_nbr*dst_grd_sz_nbr*sizeof(double),lnk_nbr*sizeof(double)+(src_grd_sz_nbr+dst_grd_sz_nbr)*sizeof(int),(src_grd_sz_nbr*dst_grd_sz_nbr*sizeof(double))/(lnk_nbr*sizeof(double)+(src_grd_sz_nbr+dst_grd_sz_nbr)*sizeof(int))); | ~~^ ~~~~~~~ | | | | long int size_t {aka unsigned int} | %i -
nco_map.c:520:195: warning: format ‘%li’ expects argument of type ‘long int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 520 | if(nco_dbg_lvl_get() >= nco_dbg_std) (void)fprintf(stdout,"%s: INFO Defining mapfile in format %s with n_s = %li, n_a = %li, n_b = %li. Mean number of links per destination cell = n_s/n_b = %li/%li = %g. Mean number of links per geometric mean src/dst cell = n_s/sqrt(n_a*n_b) = %li/sqrt(%li*%li) = %g. RAM size of weight variable n_s is sizeof(double)*n_s = 8*%li = %g MB. RAM sizes of vertex variables x/y_va are sizeof(double)*n_a*nv_a = 8*%li*%li = %g MB. RAM sizes of vertex variables x/y_vb are sizeof(double)*n_b*nv_b = 8*%li*%li = %g MB. Storage reduction due to employing sparse-matrix instead of full-matrix formulation is a factor of %ld/%ld ~ %ld.\n",nco_prg_nm_get(),nco_fmt_sng(fl_out_fmt),lnk_nbr,src_grd_sz_nbr,dst_grd_sz_nbr,lnk_nbr,dst_grd_sz_nbr,lnk_nbr/(1.0*dst_grd_sz_nbr),lnk_nbr,src_grd_sz_nbr,dst_grd_sz_nbr,lnk_nbr/sqrt(src_grd_sz_nbr*dst_grd_sz_nbr),lnk_nbr,sizeof(double)*lnk_nbr/1.0e6,src_grd_sz_nbr,src_grd_crn_nbr,sizeof(double)*src_grd_sz_nbr*src_grd_crn_nbr/1.0e6,dst_grd_sz_nbr,dst_grd_crn_nbr,sizeof(double)*dst_grd_sz_nbr*dst_grd_crn_nbr/1.0e6,src_grd_sz_nbr*dst_grd_sz_nbr*sizeof(double),lnk_nbr*sizeof(double)+(src_grd_sz_nbr+dst_grd_sz_nbr)*sizeof(int),(src_grd_sz_nbr*dst_grd_sz_nbr*sizeof(double))/(lnk_nbr*sizeof(double)+(src_grd_sz_nbr+dst_grd_sz_nbr)*sizeof(int))); | ~~^ ~~~~~~~ | | | | long int size_t {aka unsigned int} | %i -
nco_map.c:520:284: warning: format ‘%li’ expects argument of type ‘long int’, but argument 11 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 520 | if(nco_dbg_lvl_get() >= nco_dbg_std) (void)fprintf(stdout,"%s: INFO Defining mapfile in format %s with n_s = %li, n_a = %li, n_b = %li. Mean number of links per destination cell = n_s/n_b = %li/%li = %g. Mean number of links per geometric mean src/dst cell = n_s/sqrt(n_a*n_b) = %li/sqrt(%li*%li) = %g. RAM size of weight variable n_s is sizeof(double)*n_s = 8*%li = %g MB. RAM sizes of vertex variables x/y_va are sizeof(double)*n_a*nv_a = 8*%li*%li = %g MB. RAM sizes of vertex variables x/y_vb are sizeof(double)*n_b*nv_b = 8*%li*%li = %g MB. Storage reduction due to employing sparse-matrix instead of full-matrix formulation is a factor of %ld/%ld ~ %ld.\n",nco_prg_nm_get(),nco_fmt_sng(fl_out_fmt),lnk_nbr,src_grd_sz_nbr,dst_grd_sz_nbr,lnk_nbr,dst_grd_sz_nbr,lnk_nbr/(1.0*dst_grd_sz_nbr),lnk_nbr,src_grd_sz_nbr,dst_grd_sz_nbr,lnk_nbr/sqrt(src_grd_sz_nbr*dst_grd_sz_nbr),lnk_nbr,sizeof(double)*lnk_nbr/1.0e6,src_grd_sz_nbr,src_grd_crn_nbr,sizeof(double)*src_grd_sz_nbr*src_grd_crn_nbr/1.0e6,dst_grd_sz_nbr,dst_grd_crn_nbr,sizeof(double)*dst_grd_sz_nbr*dst_grd_crn_nbr/1.0e6,src_grd_sz_nbr*dst_grd_sz_nbr*sizeof(double),lnk_nbr*sizeof(double)+(src_grd_sz_nbr+dst_grd_sz_nbr)*sizeof(int),(src_grd_sz_nbr*dst_grd_sz_nbr*sizeof(double))/(lnk_nbr*sizeof(double)+(src_grd_sz_nbr+dst_grd_sz_nbr)*sizeof(int))); | ~~^ ~~~~~~~ | | | | long int size_t {aka unsigned int} | %i -
nco_map.c:520:366: warning: format ‘%li’ expects argument of type ‘long int’, but argument 15 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 520 | if(nco_dbg_lvl_get() >= nco_dbg_std) (void)fprintf(stdout,"%s: INFO Defining mapfile in format %s with n_s = %li, n_a = %li, n_b = %li. Mean number of links per destination cell = n_s/n_b = %li/%li = %g. Mean number of links per geometric mean src/dst cell = n_s/sqrt(n_a*n_b) = %li/sqrt(%li*%li) = %g. RAM size of weight variable n_s is sizeof(double)*n_s = 8*%li = %g MB. RAM sizes of vertex variables x/y_va are sizeof(double)*n_a*nv_a = 8*%li*%li = %g MB. RAM sizes of vertex variables x/y_vb are sizeof(double)*n_b*nv_b = 8*%li*%li = %g MB. Storage reduction due to employing sparse-matrix instead of full-matrix formulation is a factor of %ld/%ld ~ %ld.\n",nco_prg_nm_get(),nco_fmt_sng(fl_out_fmt),lnk_nbr,src_grd_sz_nbr,dst_grd_sz_nbr,lnk_nbr,dst_grd_sz_nbr,lnk_nbr/(1.0*dst_grd_sz_nbr),lnk_nbr,src_grd_sz_nbr,dst_grd_sz_nbr,lnk_nbr/sqrt(src_grd_sz_nbr*dst_grd_sz_nbr),lnk_nbr,sizeof(double)*lnk_nbr/1.0e6,src_grd_sz_nbr,src_grd_crn_nbr,sizeof(double)*src_grd_sz_nbr*src_grd_crn_nbr/1.0e6,dst_grd_sz_nbr,dst_grd_crn_nbr,sizeof(double)*dst_grd_sz_nbr*dst_grd_crn_nbr/1.0e6,src_grd_sz_nbr*dst_grd_sz_nbr*sizeof(double),lnk_nbr*sizeof(double)+(src_grd_sz_nbr+dst_grd_sz_nbr)*sizeof(int),(src_grd_sz_nbr*dst_grd_sz_nbr*sizeof(double))/(lnk_nbr*sizeof(double)+(src_grd_sz_nbr+dst_grd_sz_nbr)*sizeof(int))); | ~~^ ~~~~~~~ | | | | long int size_t {aka unsigned int} | %i -
nco_map.c:303:12: warning: variable ‘flg_grd_out_rct’ set but not used [-Wunused-but-set-variable=] 303 | nco_bool flg_grd_out_rct=False; /* [flg] Rectangular coordinates */ | ^~~~~~~~~~~~~~~ -
nco_map.c:301:12: warning: variable ‘flg_grd_in_rct’ set but not used [-Wunused-but-set-variable=] 301 | nco_bool flg_grd_in_rct=False; /* [flg] Rectangular coordinates */ | ^~~~~~~~~~~~~~ -
nco_map.c:232:7: warning: variable ‘bnd_nbr_out’ set but not used [-Wunused-but-set-variable=] 232 | int bnd_nbr_out; /* [nbr] Number of vertices for destination grid coordinates */ | ^~~~~~~~~~~ -
nco_map.c:214:8: warning: variable ‘col_nbr_in’ set but not used [-Wunused-but-set-variable=] 214 | long col_nbr_in; /* [idx] Number of columns in source grid */ | ^~~~~~~~~~ -
nco_map.c:213:7: warning: variable ‘bnd_nbr_in’ set but not used [-Wunused-but-set-variable=] 213 | int bnd_nbr_in; /* [nbr] Number of vertices for source grid coordinates */ | ^~~~~~~~~~ -
nco_map.c:103:10: warning: unused variable ‘blk_sz_mtd’ [-Wunused-variable] 103 | size_t blk_sz_mtd=2048; /* [B] Block size for netCDF4 metadata (ignored/harmless for netCDF3) */ | ^~~~~~~~~~ -
nco_map.c:997:60: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 997 | (void)fprintf(stderr,"%s: INFO: num input polygons=%lu, num output polygons=%lu num overlap polygons=%d\n",nco_prg_nm_get(),grd_sz_in,grd_sz_out,pl_cnt_vrl); | ~~^ ~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:997:85: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 997 | (void)fprintf(stderr,"%s: INFO: num input polygons=%lu, num output polygons=%lu num overlap polygons=%d\n",nco_prg_nm_get(),grd_sz_in,grd_sz_out,pl_cnt_vrl); | ~~^ ~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:1054:54: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1054 | fprintf(stderr,"%s: INFO: num input polygons=%lu, num output polygons=%lu num overlap weights(nni)=%d\n",nco_prg_nm_get(),grd_sz_in,grd_sz_out,pl_cnt_vrl); | ~~^ ~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:1054:79: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1054 | fprintf(stderr,"%s: INFO: num input polygons=%lu, num output polygons=%lu num overlap weights(nni)=%d\n",nco_prg_nm_get(),grd_sz_in,grd_sz_out,pl_cnt_vrl); | ~~^ ~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:1537:98: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1537 | (void)fprintf(stdout,"%s: DEBUG %s reports boundary longitude adjustment for idx_ctr = %lu, idx_crn = %lu, idx_crr = %lu, idx_nxt = %lu, lon_ctr = %g, lon_crn_crr = %g, lon_crn_nxt = %g, lon_dff_crn = %g. Will adjust lon_crn[idx_crr] or lon_crn[idx_nxt] by 360.0 degrees to be on same branch cut as lon_ctr.\n",nco_prg_nm_get(),fnc_nm,idx_ctr,idx_crn,idx_crr,idx_nxt,lon_ctr[idx_ctr],lon_crn[idx_crr],lon_crn[idx_nxt],lon_dff_crn); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:1537:113: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1537 | (void)fprintf(stdout,"%s: DEBUG %s reports boundary longitude adjustment for idx_ctr = %lu, idx_crn = %lu, idx_crr = %lu, idx_nxt = %lu, lon_ctr = %g, lon_crn_crr = %g, lon_crn_nxt = %g, lon_dff_crn = %g. Will adjust lon_crn[idx_crr] or lon_crn[idx_nxt] by 360.0 degrees to be on same branch cut as lon_ctr.\n",nco_prg_nm_get(),fnc_nm,idx_ctr,idx_crn,idx_crr,idx_nxt,lon_ctr[idx_ctr],lon_crn[idx_crr],lon_crn[idx_nxt],lon_dff_crn); | ~~^ ~~~~~~~ | | make[3]: Leaving directory '/builddir/build/BUILD/nco-5.4.1-build/nco-5.4.1/src/nco' -
nco_map.c:1537:128: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1537 | (void)fprintf(stdout,"%s: DEBUG %s reports boundary longitude adjustment for idx_ctr = %lu, idx_crn = %lu, idx_crr = %lu, idx_nxt = %lu, lon_ctr = %g, lon_crn_crr = %g, lon_crn_nxt = %g, lon_dff_crn = %g. Will adjust lon_crn[idx_crr] or lon_crn[idx_nxt] by 360.0 degrees to be on same branch cut as lon_ctr.\n",nco_prg_nm_get(),fnc_nm,idx_ctr,idx_crn,idx_crr,idx_nxt,lon_ctr[idx_ctr],lon_crn[idx_crr],lon_crn[idx_nxt],lon_dff_crn); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:1537:143: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1537 | (void)fprintf(stdout,"%s: DEBUG %s reports boundary longitude adjustment for idx_ctr = %lu, idx_crn = %lu, idx_crr = %lu, idx_nxt = %lu, lon_ctr = %g, lon_crn_crr = %g, lon_crn_nxt = %g, lon_dff_crn = %g. Will adjust lon_crn[idx_crr] or lon_crn[idx_nxt] by 360.0 degrees to be on same branch cut as lon_ctr.\n",nco_prg_nm_get(),fnc_nm,idx_ctr,idx_crn,idx_crr,idx_nxt,lon_ctr[idx_ctr],lon_crn[idx_crr],lon_crn[idx_nxt],lon_dff_crn); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:1555:105: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1555 | (void)fprintf(stdout,"%s: ERROR %s reports boundary longitude adjustment failed for idx_ctr = %lu, idx_crn = %lu, idx_crr = %lu, idx_nxt = %lu, lon_ctr = %g, lon_crn_crr = %g, lon_crn_nxt = %g, lon_dff_crn = %g\n",nco_prg_nm_get(),fnc_nm,idx_ctr,idx_crn,idx_crr,idx_nxt,lon_ctr[idx_ctr],lon_crn[idx_crr],lon_crn[idx_nxt],lon_dff_crn); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:1555:120: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1555 | (void)fprintf(stdout,"%s: ERROR %s reports boundary longitude adjustment failed for idx_ctr = %lu, idx_crn = %lu, idx_crr = %lu, idx_nxt = %lu, lon_ctr = %g, lon_crn_crr = %g, lon_crn_nxt = %g, lon_dff_crn = %g\n",nco_prg_nm_get(),fnc_nm,idx_ctr,idx_crn,idx_crr,idx_nxt,lon_ctr[idx_ctr],lon_crn[idx_crr],lon_crn[idx_nxt],lon_dff_crn); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:1555:135: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1555 | (void)fprintf(stdout,"%s: ERROR %s reports boundary longitude adjustment failed for idx_ctr = %lu, idx_crn = %lu, idx_crr = %lu, idx_nxt = %lu, lon_ctr = %g, lon_crn_crr = %g, lon_crn_nxt = %g, lon_dff_crn = %g\n",nco_prg_nm_get(),fnc_nm,idx_ctr,idx_crn,idx_crr,idx_nxt,lon_ctr[idx_ctr],lon_crn[idx_crr],lon_crn[idx_nxt],lon_dff_crn); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:1555:150: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1555 | (void)fprintf(stdout,"%s: ERROR %s reports boundary longitude adjustment failed for idx_ctr = %lu, idx_crn = %lu, idx_crr = %lu, idx_nxt = %lu, lon_ctr = %g, lon_crn_crr = %g, lon_crn_nxt = %g, lon_dff_crn = %g\n",nco_prg_nm_get(),fnc_nm,idx_ctr,idx_crn,idx_crr,idx_nxt,lon_ctr[idx_ctr],lon_crn[idx_crr],lon_crn[idx_nxt],lon_dff_crn); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:2283:113: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2283 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the map-checker\") reports map-file variable \"row\" contains %lu illegal value(s) among %lu total values. \"row\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, row(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_row+1L); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:2283:140: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2283 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the map-checker\") reports map-file variable \"row\" contains %lu illegal value(s) among %lu total values. \"row\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, row(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_row+1L); | ~~^ ~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:2283:280: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘unsigned int’ [-Wformat=] 2283 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the map-checker\") reports map-file variable \"row\" contains %lu illegal value(s) among %lu total values. \"row\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, row(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_row+1L); | ~~^ ~~~~~~~~~~~~~~~~ | | | | long unsigned int unsigned int | %u -
nco_map.c:2296:113: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2296 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the map-checker\") reports map-file variable \"col\" contains %lu illegal value(s) among %lu total values. \"col\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, col(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_col+1L); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:2296:140: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2296 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the map-checker\") reports map-file variable \"col\" contains %lu illegal value(s) among %lu total values. \"col\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, col(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_col+1L); | ~~^ ~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:2296:280: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘unsigned int’ [-Wformat=] 2296 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the map-checker\") reports map-file variable \"col\" contains %lu illegal value(s) among %lu total values. \"col\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, col(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_col+1L); | ~~^ ~~~~~~~~~~~~~~~~ | | | | long unsigned int unsigned int | %u -
nco_map.c:2482:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2482 | (void)fprintf(stdout,"Ignored weights (S=0.0): %ld\n",wgt_zro_nbr); | ~~^ ~~~~~~~~~~~ | | | | | size_t {aka unsigned int} | long int | %d -
nco_map.c:2520:61: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2520 | if(var_mask_a) (void)fprintf(stdout,"mask_a 0's, 1's: %lu, %lu\n",mask_a_zro,mask_a_one); else (void)fprintf(stdout,"mask_a 0's, 1's: map-file omits mask_a\n"); | ~~^ ~~~~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_map.c:2520:66: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2520 | if(var_mask_a) (void)fprintf(stdout,"mask_a 0's, 1's: %lu, %lu\n",mask_a_zro,mask_a_one); else (void)fprintf(stdout,"mask_a 0's, 1's: map-file omits mask_a\n"); | ~~^ ~~~~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_map.c:2522:61: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2522 | if(var_mask_a) (void)fprintf(stdout,"mask_a S errors: %lu%s\n",mask_a_err,mask_a_err ? " <--- # of weights that, in violation of mask_a, contribute from masked source cells to destination gridcells WARNING WARNING WARNING" : ""); else (void)fprintf(stdout,"mask_a S errors: map-file omits mask_a\n"); | ~~^ ~~~~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_map.c:2542:61: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2542 | if(var_mask_b) (void)fprintf(stdout,"mask_b 0's, 1's: %lu, %lu\n",mask_b_zro,mask_b_one); else (void)fprintf(stdout,"mask_b 0's, 1's: map-file omits mask_b\n"); | ~~^ ~~~~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_map.c:2542:66: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2542 | if(var_mask_b) (void)fprintf(stdout,"mask_b 0's, 1's: %lu, %lu\n",mask_b_zro,mask_b_one); else (void)fprintf(stdout,"mask_b 0's, 1's: map-file omits mask_b\n"); | ~~^ ~~~~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_map.c:2544:61: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2544 | if(var_mask_b) (void)fprintf(stdout,"mask_b S errors: %lu%s\n",mask_b_err,mask_b_err ? " <--- # of weights that, in violation of mask_b, contribute from source gridcells to masked destination gridcells WARNING WARNING WARNING" : ""); else (void)fprintf(stdout,"mask_b S errors: map-file omits mask_b\n"); | ~~^ ~~~~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_map.c:2709:75: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2709 | if(hst_col[idx] > 0 || hst_row[idx] > 0) (void)fprintf(stdout,"[%s%lu,%d,%d]%s",idx == hst_sz ? ">= " : "",idx,hst_col[idx],hst_row[idx],idx != hst_sz_nnz ? ", " : "]\n"); | ~~^ ~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_map.c:2585:12: warning: variable ‘cnt_zro’ set but not used [-Wunused-but-set-variable=] 2585 | size_t cnt_zro; /* [nbr] Number of valid areas in Grid A */ | ^~~~~~~ -
nco_map.c:419:15: warning: ‘lon_nbr_out’ may be used uninitialized [-Wmaybe-uninitialized] 419 | if(idx%lon_nbr_out == 0) idx_tst=idx; | ~~~^~~~~~~~~~~~ -
nco_map.c:403:15: warning: ‘lon_nbr_in’ may be used uninitialized [-Wmaybe-uninitialized] 403 | if(idx%lon_nbr_in == 0) idx_tst=idx; | ~~~^~~~~~~~~~~ -
nco_map.c:2423:34: warning: ‘msk_ival_a’ may be used uninitialized [-Wmaybe-uninitialized] 2423 | if(has_mask_a && msk_ival_a[idx_col] == 0){ | ^ -
nco_ppc.c:1220:53: warning: ‘mss_val_cmp_dbl’ may be used uninitialized [-Wmaybe-uninitialized] 1220 | if(op1.dp[idx] != 0.0 && op1.dp[idx] != 1.0 && op1.dp[idx] != mss_val_cmp_dbl){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_ppc.c:1223:18: warning: ‘u64_ptr’ may be used uninitialized [-Wmaybe-uninitialized] 1223 | u64_ptr[idx]&=msk_f64_u64_zro; | ~~~~~~~^~~~~ -
nco_ppc.c:1045:55: warning: ‘mss_val_cmp_flt’ may be used uninitialized [-Wmaybe-uninitialized] 1045 | if(op1.fp[idx] != 0.0f && op1.fp[idx] != 1.0f && op1.fp[idx] != mss_val_cmp_flt){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_ppc.c:1037:23: warning: ‘u32_ptr’ may be used uninitialized [-Wmaybe-uninitialized] 1037 | u32_ptr[idx]|=msk_f32_u32_hshv; /* Set MSB of LSBs */ | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
nco_netcdf.c:2108:82: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2108 | if(dmn_idx == dmn_nbr-1) (void)fprintf(stderr,"%s: Total variable size = %ld\n",fnc_nm,var_sz); | ~~^ ~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_netcdf.c:2178:130: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2178 | if(cnk_sz[idx] < 1L) (void)fprintf(stderr, "%s: ERROR Chunk sizes must exceed zero and requested chunk size cnk_sz[%d] = %ld.\n",fnc_nm,idx,cnk_sz[idx]); | ~~^ ~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_netcdf.c:2182:97: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2182 | if(sz > NCO_MAX_CHUNK_SIZE) (void)fprintf(stderr, "%s: ERROR Total requested chunk size = %lu exceeds netCDF maximium-supported chunk size = %u for variable %s\nHINT: Restrict chunk sizes to fall below this limit by using NCO chunking options explicitly reduce chunk size on the largest dimension(s), e.g., --cnk_dmn dim_name,chunk_size\n",fnc_nm,sz,NCO_MAX_CHUNK_SIZE,var_nm); | ~~^ ~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_netcdf.c:2947:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2947 | (void)fprintf(stdout,"%d\t%lu\t%lu\n",dmn_idx,srt_sz_t[dmn_idx],cnt_sz_t[dmn_idx]); | ~~^ ~~~~~~~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_netcdf.c:2947:42: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2947 | (void)fprintf(stdout,"%d\t%lu\t%lu\n",dmn_idx,srt_sz_t[dmn_idx],cnt_sz_t[dmn_idx]); | ~~^ ~~~~~~~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_netcdf.c:2952:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2952 | (void)fprintf(stdout,"%d\t%lu\n",dmn_idx,dmn_sz[dmn_idx]); | ~~^ ~~~~~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_sng_utl.c:270:41: warning: ‘__snprintf_chk’ output truncated before the last format character [-Wformat-truncation=] 270 | snprintf(chr_out_ptr,4,"\\%%%.2x",*chr_in_ptr); | ^ -
nco_sng_utl.c:466:41: warning: ‘__snprintf_chk’ output truncated before the last format character [-Wformat-truncation=] 466 | snprintf(chr_out_ptr,4,"\\%%%.2x",*chr_in_ptr); | ^ -
nco_sph.c:508:10: warning: variable ‘nx_ci’ set but not used [-Wunused-but-set-variable=] 508 | double nx_ci; | ^~~~~ -
nco_sph.c:506:10: warning: variable ‘nx3’ set but not used [-Wunused-but-set-variable=] 506 | double nx3; | ^~~ -
nco_sph.c:505:10: warning: variable ‘nx2’ set but not used [-Wunused-but-set-variable=] 505 | double nx2; | ^~~ -
nco_sph.c:1426:10: warning: variable ‘nx3’ set but not used [-Wunused-but-set-variable=] 1426 | double nx3; | ^~~ -
nco_sph.c:1425:10: warning: variable ‘nx2’ set but not used [-Wunused-but-set-variable=] 1425 | double nx2; | ^~~ -
nco_sph.c:1424:10: warning: variable ‘nx1’ set but not used [-Wunused-but-set-variable=] 1424 | double nx1; | ^~~ -
nco_sph.c:1839:10: warning: variable ‘nx_av’ set but not used [-Wunused-but-set-variable=] 1839 | double nx_av; | ^~~~~ -
nco_sph.c:1838:10: warning: variable ‘nx_ab’ set but not used [-Wunused-but-set-variable=] 1838 | double nx_ab; | ^~~~~ -
nco_sph.c:2472:8: warning: variable ‘n1’ set but not used [-Wunused-but-set-variable=] 2472 | double n1; | ^~ -
nco_sph.c:3305:10: warning: variable ‘nx2’ set but not used [-Wunused-but-set-variable=] 3305 | double nx2; | ^~~ -
nco_sph.c:3304:10: warning: variable ‘nx1’ set but not used [-Wunused-but-set-variable=] 3304 | double nx1; | ^~~ -
/usr/include/bits/stdio2.h:111:10: warning: ‘nx_ai’ may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
nco_var_rth.c:3726:25: warning: ‘tm_srt’ may be used uninitialized [-Wmaybe-uninitialized] 3726 | tm_drn=1.0e6*(tm_end-tm_srt)/CLOCKS_PER_SEC; | ~~~~~~~^~~~~~~~ -
ncecat.c:878:17: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation] 878 | gpe_arg=strncpy(gpe_arg,stb_srt_psn,strlen(stb_srt_psn)-sfx_lng); | ^ -
ncecat.c:836:30: warning: ‘%02d’ directive writing between 2 and 10 bytes into a region of size 3 [-Wformat-overflow=] 836 | sprintf(grp_out_sfx,"%02d",fl_idx); | ^~~~ -
nco_s1d.c:1674:153: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1674 | if(nco_dbg_lvl_get() >= nco_dbg_fl) (void)fprintf(fp_stdout,"%s: DEBUG %s exited MEC search at mrv_idx = %ld, clm_idx = %ld, idx_in = %ld, has_mec = %d\n",nco_prg_nm_get(),var_nm,mrv_idx,clm_idx,idx_in,has_mec); | ~~^ ~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_s1d.c:2201:105: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2201 | if(!flg_var_mpt && nco_dbg_lvl_get() >= nco_dbg_fl) (void)fprintf(fp_stdout,"%s: %s, idx_in = %ld, s1d_enm = %d = %s, lnd_typ_vld_1st = %d = %s, has_mec = %d\n",nco_prg_nm_get(),var_nm,idx_in,(int)nco_s1d_typ,nco_s1d_sng(nco_s1d_typ),lnd_typ_vld_1st,nco_lnd_typ_sng(lnd_typ_vld_1st),has_mec); | ~~^ ~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_s1d.c:1831:45: warning: ‘fl_tpl’ may be used uninitialized [-Wmaybe-uninitialized] 1831 | if(FL_RTR_RMT_LCN && RM_RMT_FL_PST_PRC) (void)nco_fl_rm(fl_tpl); | ^~~~~~~~~~~~~~~~~~~~~~~ -
nco_s1d.c:1632:15: warning: ‘idx_in’ may be used uninitialized [-Wmaybe-uninitialized] 1632 | if(idx_in == var_sz_in){ | ^ -
nco_s1d.c:500:12: warning: ‘has_clm’ may be used uninitialized [-Wmaybe-uninitialized] 500 | nco_bool has_clm; /* [flg] Variable contains column dimension */ | ^~~~~~~ -
/usr/include/bits/stdio2.h:111:10: warning: ‘mrv_idx’ may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
nco_s1d.c:2201:67: warning: ‘lnd_typ_vld_1st’ may be used uninitialized [-Wmaybe-uninitialized] 2201 | if(!flg_var_mpt && nco_dbg_lvl_get() >= nco_dbg_fl) (void)fprintf(fp_stdout,"%s: %s, idx_in = %ld, s1d_enm = %d = %s, lnd_typ_vld_1st = %d = %s, has_mec = %d\n",nco_prg_nm_get(),var_nm,idx_in,(int)nco_s1d_typ,nco_s1d_sng(nco_s1d_typ),lnd_typ_vld_1st,nco_lnd_typ_sng(lnd_typ_vld_1st),has_mec); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_s1d.c:2236:43: warning: ‘grd_idx_out’ may be used uninitialized [-Wmaybe-uninitialized] 2236 | idx_out=pft_typ*grd_sz_out+grd_idx_out; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -
nco_prn.c:1664:53: warning: ‘%s’ directive writing up to 99 bytes into a region of size 86 [-Wformat-overflow=] 1664 | (void)sprintf(var_sng,"%%s%c%%ld--%%ld%c='%s' %%s",arr_lft_dlm,arr_rgt_dlm,dmn_sng); | ^~ ~~~~~~~ -
nco_prn.c:1899:36: warning: ‘vln_lng_avg’ may be used uninitialized [-Wmaybe-uninitialized] 1899 | if(cls_typ == NC_VLEN) (void)fprintf(fp_out,"%*s%s size (RAM) = %ld*mean_length(NC_VLEN)*sizeof(%s) = %ld*%g*%lu = %lu bytes\n",prn_ndn,spc_sng,var_trv->nm,var_sz,nco_typ_sng(bs_typ),var_sz,vln_lng_avg,(unsigned long)nco_typ_lng_udt(nc_id,bs_typ),(unsigned long)ram_sz_crr); else (void)fprintf(fp_out,"%*s%s size (RAM) = %ld*sizeof(%s) = %ld*%lu = %lu bytes\n",prn_ndn,spc_sng,var_trv->nm,var_sz,nco_typ_sng(cls_typ),var_sz,(unsigned long)nco_typ_lng_udt(nc_id,bs_typ),(unsigned long)ram_sz_crr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/usr/include/bits/stdio2.h:30:10: warning: ‘__sprintf_chk’ argument 5 overlaps destination object ‘_1250’ [-Wrestrict] 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
nco_prn.c:822:15: warning: ‘mbr_val’ may be used uninitialized [-Wmaybe-uninitialized] 822 | rcd=nco_inq_enum_ident(grp_id,att[idx].type,mbr_val,mbr_nm); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_prn.c:2564:22: warning: ‘vln_val_dp’ may be used uninitialized [-Wmaybe-uninitialized] 2564 | val_dbl=vln_val_dp[vln_idx]; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
nco_prn.c:2546:29: warning: ‘vln_val_fp’ may be used uninitialized [-Wmaybe-uninitialized] 2546 | is_mss_val=!memcmp((char *)vln_val_fp+vln_idx*val_sz_byt,var->mss_val.vp,(size_t)val_sz_byt); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_prn.c:2579:78: warning: ‘vln_val_ip’ may be used uninitialized [-Wmaybe-uninitialized] 2579 | if(prn_flg->PRN_MSS_VAL_BLANK && var->has_mss_val) is_mss_val=!memcmp((char *)vln_val_ip+vln_idx*val_sz_byt,var->mss_val.vp,(size_t)val_sz_byt); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_prn.c:2584:106: warning: ‘vln_val_sp’ may be used uninitialized [-Wmaybe-uninitialized] 2584 | case NC_SHORT: for(vln_idx=0;vln_idx<vln_lng;vln_idx++) (void)fprintf(fp_out,fmt_sng,vln_val_sp[vln_idx],(vln_idx != vln_lngm1) ? spr_sng : ""); break; | ~~~~~~~~~~^~~~~~~~~ -
nco_prn.c:2587:105: warning: ‘vln_val_bp’ may be used uninitialized [-Wmaybe-uninitialized] 2587 | case NC_BYTE: for(vln_idx=0;vln_idx<vln_lng;vln_idx++) (void)fprintf(fp_out,fmt_sng,vln_val_bp[vln_idx],(vln_idx != vln_lngm1) ? spr_sng : ""); break; | ~~~~~~~~~~^~~~~~~~~ -
nco_prn.c:2588:107: warning: ‘vln_val_ubp’ may be used uninitialized [-Wmaybe-uninitialized] 2588 | case NC_UBYTE: for(vln_idx=0;vln_idx<vln_lng;vln_idx++) (void)fprintf(fp_out,fmt_sng,vln_val_ubp[vln_idx],(vln_idx != vln_lngm1) ? spr_sng : ""); break; | ~~~~~~~~~~~^~~~~~~~~ -
nco_prn.c:2589:108: warning: ‘vln_val_usp’ may be used uninitialized [-Wmaybe-uninitialized] 2589 | case NC_USHORT: for(vln_idx=0;vln_idx<vln_lng;vln_idx++) (void)fprintf(fp_out,fmt_sng,vln_val_usp[vln_idx],(vln_idx != vln_lngm1) ? spr_sng : ""); break; | ~~~~~~~~~~~^~~~~~~~~ -
nco_prn.c:2590:72: warning: ‘vln_val_uip’ may be used uninitialized [-Wmaybe-uninitialized] 2590 | case NC_UINT: for(vln_idx=0;vln_idx<vln_lng;vln_idx++) (void)fprintf(fp_out,fmt_sng,vln_val_uip[vln_idx],(vln_idx != vln_lngm1) ? spr_sng : ""); break; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_prn.c:2591:73: warning: ‘vln_val_i64p’ may be used uninitialized [-Wmaybe-uninitialized] 2591 | case NC_INT64: for(vln_idx=0;vln_idx<vln_lng;vln_idx++) (void)fprintf(fp_out,fmt_sng,vln_val_i64p[vln_idx],(vln_idx != vln_lngm1) ? spr_sng : ""); break; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_prn.c:2592:74: warning: ‘vln_val_ui64p’ may be used uninitialized [-Wmaybe-uninitialized] 2592 | case NC_UINT64: for(vln_idx=0;vln_idx<vln_lng;vln_idx++) (void)fprintf(fp_out,fmt_sng,vln_val_ui64p[vln_idx],(vln_idx != vln_lngm1) ? spr_sng : ""); break; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_prn.c:2592:48: warning: ‘vln_lng’ may be used uninitialized [-Wmaybe-uninitialized] 2592 | case NC_UINT64: for(vln_idx=0;vln_idx<vln_lng;vln_idx++) (void)fprintf(fp_out,fmt_sng,vln_val_ui64p[vln_idx],(vln_idx != vln_lngm1) ? spr_sng : ""); break; | ~~~~~~~^~~~~~~~ -
nco_prn.c:2592:74: warning: ‘vln_lngm1’ may be used uninitialized [-Wmaybe-uninitialized] 2592 | case NC_UINT64: for(vln_idx=0;vln_idx<vln_lng;vln_idx++) (void)fprintf(fp_out,fmt_sng,vln_val_ui64p[vln_idx],(vln_idx != vln_lngm1) ? spr_sng : ""); break; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_prn.c:2614:11: warning: ‘mbr_val’ may be used uninitialized [-Wmaybe-uninitialized] 2614 | nco_inq_enum_ident(nc_id,var->type,mbr_val,mbr_nm); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ncrename.c:587:148: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 587 | if(nco_dbg_lvl_get() >= nco_dbg_io) (void)fprintf(stdout,"%s: att_rnm_lst[].old_nm = \"%s\", obj_nm = \"%s\", att_is_opt = %d, att_mch_fst = %ld, obj_is_opt = %d, obj_mch_fst = %ld, mch_fll_nm = %d, mch_grp_all = %d, mch_grp_glb = %d, mch_obj_all = %d\n",nco_prg_nm,att_rnm_lst[idx_att].old_nm,obj_nm,att_is_opt,att_mch_fst,obj_is_opt,obj_mch_fst,mch_fll_nm,mch_grp_all,mch_grp_glb,mch_obj_all); | ~~^ ~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
ncrename.c:587:184: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 9 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 587 | if(nco_dbg_lvl_get() >= nco_dbg_io) (void)fprintf(stdout,"%s: att_rnm_lst[].old_nm = \"%s\", obj_nm = \"%s\", att_is_opt = %d, att_mch_fst = %ld, obj_is_opt = %d, obj_mch_fst = %ld, mch_fll_nm = %d, mch_grp_all = %d, mch_grp_glb = %d, mch_obj_all = %d\n",nco_prg_nm,att_rnm_lst[idx_att].old_nm,obj_nm,att_is_opt,att_mch_fst,obj_is_opt,obj_mch_fst,mch_fll_nm,mch_grp_all,mch_grp_glb,mch_obj_all); | ~~^ ~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_grp_utl.c:5970:97: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 5970 | for(int idx_dmn=0;idx_dmn<nbr_dmn_var;idx_dmn++) (void)fprintf(stdout,"name,ID,sz = %s,%d,%ld : ",dmn_cmn[idx_dmn].nm_fll,dmn_out_id[idx_dmn],dmn_cmn[idx_dmn].sz); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_grp_utl.c:11162:142: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] -
nco_grp_utl.c:11193:83: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] -
nco_grp_utl.c:2927:134: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 2927 | if(nco_dbg_lvl_get() >= nco_dbg_std) (void)fprintf(stdout,"%s: INFO %s value of HDF-EOS5 standard global attribute \"%s\" is \"%s\"\n",nco_prg_nm_get(),fnc_nm,att_sng_he5,att_xtn_val); | ^~ -
nco_grp_utl.c:2944:132: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 2944 | if(nco_dbg_lvl_get() >= nco_dbg_std) (void)fprintf(stdout,"%s: INFO %s value of netCDF standard global attribute \"%s\" is \"%s\"\n",nco_prg_nm_get(),fnc_nm,att_sng_nc,att_xtn_val); | ^~ -
ncks.c:1714:7: warning: ‘fl_lst_in’ may be used uninitialized [-Wmaybe-uninitialized] 1714 | if(fl_lst_in && fl_lst_abb == NULL) fl_lst_in=nco_sng_lst_free(fl_lst_in,fl_nbr); | ^ -
ncks.c:1684:44: warning: ‘in_id_arr’ may be used uninitialized [-Wmaybe-uninitialized] 1684 | for(thr_idx=0;thr_idx<thr_nbr;thr_idx++) nco_close(in_id_arr[thr_idx]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ncap_lex.c:2978:16: warning: ‘input’ defined but not used [-Wunused-function] 2978 | #else | ^ -
nco_rgr.c:1440:44: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1440 | (void)fprintf(stdout,"lt_out[%lu][%lu] = %g\n",idx_dbg,lev_idx,flg_hrz_mrv ? lt_out[lev_idx*grd_sz_out+grd_idx] : lt_out[grd_idx*lev_nbr_out+lev_idx]); | ~~^ ~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_rgr.c:1442:45: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 1442 | (void)fprintf(stdout,"mlc_out[%lu] = %d\n",grd_idx,mlc_out[grd_idx]); | ~~^ ~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_rgr.c:2162:159: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2162 | if(grd_sz_in != grd_sz_out) (void)fprintf(stdout,"%s: ERROR %s reports that horizontal spatial dimensions of input and output grids differ: grd_sz_in = %ld != %ld = grd_sz_out\n",nco_prg_nm_get(),fnc_nm,grd_sz_in,grd_sz_out); | ~~^ ~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_rgr.c:2162:166: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2162 | if(grd_sz_in != grd_sz_out) (void)fprintf(stdout,"%s: ERROR %s reports that horizontal spatial dimensions of input and output grids differ: grd_sz_in = %ld != %ld = grd_sz_out\n",nco_prg_nm_get(),fnc_nm,grd_sz_in,grd_sz_out); | ~~^ ~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_rgr.c:2241:45: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2241 | (void)fprintf(stdout,"lt_in[%lu][%lu] = %g\n",idx_dbg,lev_idx,flg_hrz_mrv ? lt_in[lev_idx*grd_sz_in+grd_idx] : lt_in[grd_idx*lev_nbr_in+lev_idx]); | ~~^ ~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_rgr.c:2243:46: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2243 | (void)fprintf(stdout,"mlc_in[%lu] = %d\n",grd_idx,mlc_in[grd_idx]); | ~~^ ~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
nco_rgr.c:2460:159: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2460 | if(grd_sz_in != grd_sz_out) (void)fprintf(stdout,"%s: ERROR %s reports that horizontal spatial dimensions of input and output grids differ: grd_sz_in = %ld != %ld = grd_sz_out\n",nco_prg_nm_get(),fnc_nm,grd_sz_in,grd_sz_out); | ~~^ ~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_rgr.c:2460:166: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2460 | if(grd_sz_in != grd_sz_out) (void)fprintf(stdout,"%s: ERROR %s reports that horizontal spatial dimensions of input and output grids differ: grd_sz_in = %ld != %ld = grd_sz_out\n",nco_prg_nm_get(),fnc_nm,grd_sz_in,grd_sz_out); | ~~^ ~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_rgr.c:2489:164: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 2489 | if(nco_dbg_lvl_get() >= nco_dbg_scl) (void)fprintf(stdout,"%s: INFO temporal and spatial dimensions of horizontal and vertical grids: grd_sz_in = grd_sz_out = %ld, tm_nbr_in = %ld, tm_nbr_out = %ld\n",nco_prg_nm_get(),grd_sz_in,tm_nbr_in,tm_nbr_out); | ~~^ ~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_rgr.c:3239:199: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3239 | if(nco_dbg_lvl_get() >= nco_dbg_std) (void)fprintf(stderr,"%s: INFO %s (aka \"the regridder\") will autoconvert scalar NC_STRING to 1-D NC_CHAR for variable \"%s\": val = %s, sng_sz = %ld, dmn_nm = %s\n",nco_prg_nm_get(),fnc_nm,var_nm,var_in_sng_val,sng_sz,dmn_nm_sng); | ~~^ ~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_rgr.c:3392:135: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3392 | if(nco_dbg_lvl_get() >= nco_dbg_scl) (void)fprintf(stdout,"%s: INFO %s reports flg_hrz_mrv = %d, dmn_hrz_nbr_in = %d, grd_sz_in = %ld, flg_grd_hrz_0D = %d, flg_grd_hrz_1D = %d, flg_grd_hrz_2D = %d\n",nco_prg_nm_get(),fnc_nm,flg_hrz_mrv,dmn_hrz_nbr_in,grd_sz_in,flg_grd_hrz_0D,flg_grd_hrz_1D,flg_grd_hrz_2D); | ~~^ ~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_rgr.c:3632:173: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 10 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3632 | if(nco_dbg_lvl_get() >= nco_dbg_crr) (void)fprintf(fp_stdout,"%s: DEBUG %s variable %s: flg_vrt_tm = %d, has_tm = %d, tm_idx = %ld, lev_nbr_in = %lu, grd_nbr = %lu, var_sz_in = %lu, lrv_nbr = %lu, mrv_nbr_in = %lu, mrv_nbr_out = %lu\n",nco_prg_nm_get(),fnc_nm,var_nm,flg_vrt_tm,has_tm,tm_idx,lev_nbr_in,grd_nbr,var_sz_in,lrv_nbr,mrv_nbr_in,mrv_nbr_out); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3632:190: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 11 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3632 | if(nco_dbg_lvl_get() >= nco_dbg_crr) (void)fprintf(fp_stdout,"%s: DEBUG %s variable %s: flg_vrt_tm = %d, has_tm = %d, tm_idx = %ld, lev_nbr_in = %lu, grd_nbr = %lu, var_sz_in = %lu, lrv_nbr = %lu, mrv_nbr_in = %lu, mrv_nbr_out = %lu\n",nco_prg_nm_get(),fnc_nm,var_nm,flg_vrt_tm,has_tm,tm_idx,lev_nbr_in,grd_nbr,var_sz_in,lrv_nbr,mrv_nbr_in,mrv_nbr_out); | ~~^ ~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3632:205: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 12 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3632 | if(nco_dbg_lvl_get() >= nco_dbg_crr) (void)fprintf(fp_stdout,"%s: DEBUG %s variable %s: flg_vrt_tm = %d, has_tm = %d, tm_idx = %ld, lev_nbr_in = %lu, grd_nbr = %lu, var_sz_in = %lu, lrv_nbr = %lu, mrv_nbr_in = %lu, mrv_nbr_out = %lu\n",nco_prg_nm_get(),fnc_nm,var_nm,flg_vrt_tm,has_tm,tm_idx,lev_nbr_in,grd_nbr,var_sz_in,lrv_nbr,mrv_nbr_in,mrv_nbr_out); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3632:223: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 13 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3632 | if(nco_dbg_lvl_get() >= nco_dbg_crr) (void)fprintf(fp_stdout,"%s: DEBUG %s variable %s: flg_vrt_tm = %d, has_tm = %d, tm_idx = %ld, lev_nbr_in = %lu, grd_nbr = %lu, var_sz_in = %lu, lrv_nbr = %lu, mrv_nbr_in = %lu, mrv_nbr_out = %lu\n",nco_prg_nm_get(),fnc_nm,var_nm,flg_vrt_tm,has_tm,tm_idx,lev_nbr_in,grd_nbr,var_sz_in,lrv_nbr,mrv_nbr_in,mrv_nbr_out); | ~~^ ~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3632:242: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 14 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3632 | if(nco_dbg_lvl_get() >= nco_dbg_crr) (void)fprintf(fp_stdout,"%s: DEBUG %s variable %s: flg_vrt_tm = %d, has_tm = %d, tm_idx = %ld, lev_nbr_in = %lu, grd_nbr = %lu, var_sz_in = %lu, lrv_nbr = %lu, mrv_nbr_in = %lu, mrv_nbr_out = %lu\n",nco_prg_nm_get(),fnc_nm,var_nm,flg_vrt_tm,has_tm,tm_idx,lev_nbr_in,grd_nbr,var_sz_in,lrv_nbr,mrv_nbr_in,mrv_nbr_out); | ~~^ ~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3821:108: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3821 | if(xtr_LHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires LHS extrapolation beyond leftmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_lft_idx,crd_in_mnt[brk_lft_idx],brk_lft_idx,dat_in_mnt[brk_lft_idx]); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3821:137: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3821 | if(xtr_LHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires LHS extrapolation beyond leftmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_lft_idx,crd_in_mnt[brk_lft_idx],brk_lft_idx,dat_in_mnt[brk_lft_idx]); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3821:168: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3821 | if(xtr_LHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires LHS extrapolation beyond leftmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_lft_idx,crd_in_mnt[brk_lft_idx],brk_lft_idx,dat_in_mnt[brk_lft_idx]); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3821:252: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 10 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3821 | if(xtr_LHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires LHS extrapolation beyond leftmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_lft_idx,crd_in_mnt[brk_lft_idx],brk_lft_idx,dat_in_mnt[brk_lft_idx]); | ~~^ ~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3821:307: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 12 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3821 | if(xtr_LHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires LHS extrapolation beyond leftmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_lft_idx,crd_in_mnt[brk_lft_idx],brk_lft_idx,dat_in_mnt[brk_lft_idx]); | ~~^ ~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3860:115: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3860 | if(xtr_LHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: INFO %s LHS extrapolation yields dat_out_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,out_idx,dat_out_mnt[out_idx]); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3886:108: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3886 | if(xtr_RHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires RHS extrapolation beyond rightmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_rgt_idx,crd_in_mnt[brk_rgt_idx],brk_rgt_idx,dat_in_mnt[brk_rgt_idx]); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3886:137: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3886 | if(xtr_RHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires RHS extrapolation beyond rightmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_rgt_idx,crd_in_mnt[brk_rgt_idx],brk_rgt_idx,dat_in_mnt[brk_rgt_idx]); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3886:168: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3886 | if(xtr_RHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires RHS extrapolation beyond rightmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_rgt_idx,crd_in_mnt[brk_rgt_idx],brk_rgt_idx,dat_in_mnt[brk_rgt_idx]); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3886:253: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 10 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3886 | if(xtr_RHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires RHS extrapolation beyond rightmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_rgt_idx,crd_in_mnt[brk_rgt_idx],brk_rgt_idx,dat_in_mnt[brk_rgt_idx]); | ~~^ ~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3886:308: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 12 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3886 | if(xtr_RHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: WARNING %s reports variable %s column %lu output value dat_out_mnt[%lu] at coordinate crd_out_mnt[%lu] = %g requires RHS extrapolation beyond rightmost valid coordinate at crd_in_mnt[%lu] = %g. Nearest datum in input domain is dat_in_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,var_nm,grd_idx,out_idx,out_idx,crd_out_mnt[out_idx],brk_rgt_idx,crd_in_mnt[brk_rgt_idx],brk_rgt_idx,dat_in_mnt[brk_rgt_idx]); | ~~^ ~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3938:115: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3938 | if(xtr_RHS.xtr_vrb) (void)fprintf(fp_stdout,"%s: INFO %s RHS extrapolation yields dat_out_mnt[%lu] = %g\n",nco_prg_nm_get(),fnc_nm,out_idx,dat_out_mnt[out_idx]); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3965:82: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3965 | (void)fprintf(fp_stdout,"%s: DEBUG %s variable %s at idx_dbg = %lu\n",nco_prg_nm_get(),fnc_nm,var_nm,idx_dbg); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:3967:56: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 3967 | (void)fprintf(fp_stdout,"out_idx = %lu dat_out = %g\n",out_idx,dat_out[out_idx]); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:5178:111: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 5178 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the regridder\") reports map-file variable \"row\" contains %lu illegal value(s) among %lu total values. \"row\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, row(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_row+1L); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:5178:138: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 5178 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the regridder\") reports map-file variable \"row\" contains %lu illegal value(s) among %lu total values. \"row\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, row(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_row+1L); | ~~^ ~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:5178:278: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘unsigned int’ [-Wformat=] 5178 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the regridder\") reports map-file variable \"row\" contains %lu illegal value(s) among %lu total values. \"row\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, row(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_row+1L); | ~~^ ~~~~~~~~~~~~~~~~ | | | | long unsigned int unsigned int | %u -
nco_rgr.c:5191:111: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 5191 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the regridder\") reports map-file variable \"col\" contains %lu illegal value(s) among %lu total values. \"col\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, col(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_col+1L); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:5191:138: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 5191 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the regridder\") reports map-file variable \"col\" contains %lu illegal value(s) among %lu total values. \"col\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, col(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_col+1L); | ~~^ ~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:5191:278: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘unsigned int’ [-Wformat=] 5191 | (void)fprintf(stderr,"%s: ERROR %s (aka \"the regridder\") reports map-file variable \"col\" contains %lu illegal value(s) among %lu total values. \"col\" contains indexes into the weight matrix S. First illegal value found is, in Fortran (1-based) index notation, col(%lu) = %ld. Each Fortran-convention index must be >= 1. Illegal indexes make this map-file corrupt.\nHINT: Re-generate this map and, before using it, check it with \"ncks --chk_map map.nc\"\n",nco_prg_nm_get(),fnc_nm,cnt_bad,sz,(size_t)(idx+1L),idx_col+1L); | ~~^ ~~~~~~~~~~~~~~~~ | | | | long unsigned int unsigned int | %u -
nco_rgr.c:5204:70: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 5204 | for(lnk_idx=0;lnk_idx<lnk_nbr;lnk_idx++) (void)fprintf(stdout,"%li %d %d %g\n",lnk_idx,row_dst_adr[lnk_idx],col_src_adr[lnk_idx],wgt_raw[lnk_idx]); | ~~^ ~~~~~~~ | | | | long int size_t {aka unsigned int} | %i -
nco_rgr.c:5296:80: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 5296 | for(nllnk_idx=0;nllnk_idx<nllnk_nbr;nllnk_idx++) (void)fprintf(stdout,"%li %d %d %g\n",nllnk_idx,nlrow_dst_adr[nllnk_idx],nlcol_src_adr[nllnk_idx],nlwgt_raw[nllnk_idx]); | ~~^ ~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %i -
nco_rgr.c:6343:199: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 6343 | if(nco_dbg_lvl_get() >= nco_dbg_std) (void)fprintf(stderr,"%s: INFO %s (aka \"the regridder\") will autoconvert scalar NC_STRING to 1-D NC_CHAR for variable \"%s\": val = %s, sng_sz = %ld, dmn_nm = %s\n",nco_prg_nm_get(),fnc_nm,var_nm,var_in_sng_val,sng_sz,dmn_nm_sng); | ~~^ ~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
nco_rgr.c:6730:140: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 6730 | (void)fprintf(stdout,"%s: ERROR %s (aka \"the regridder\") requires that sgs_frc = %s be same size as spatial grid but var_sz_in = %lu != %lu = grd_sz_in\n",nco_prg_nm_get(),fnc_nm,var_nm,var_sz_in,grd_sz_in); | ~~^ ~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:6730:147: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 6730 | (void)fprintf(stdout,"%s: ERROR %s (aka \"the regridder\") requires that sgs_frc = %s be same size as spatial grid but var_sz_in = %lu != %lu = grd_sz_in\n",nco_prg_nm_get(),fnc_nm,var_nm,var_sz_in,grd_sz_in); | ~~^ ~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:6764:107: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 6764 | if((float)sgs_frc_out[dst_idx] > sgs_nrm) (void)fprintf(stdout,"%s: INFO %s reports sgs_frc_out[%lu] = %19.15f > %g = sgs_nrm\n",nco_prg_nm_get(),fnc_nm,dst_idx,sgs_frc_out[dst_idx],sgs_nrm); | ~~^ ~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
nco_rgr.c:11099:119: warning: format ‘%li’ expects argument of type ‘long int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] -
nco_rgr.c:3669:19: warning: ‘crd_out_mnt’ may be used uninitialized [-Wmaybe-uninitialized] 3669 | double *crd_out_mnt; /* Output vertical coordinate reversed if necessary to be monotonically increasing */ | ^~~~~~~~~~~ -
nco_rgr.c:3787:37: warning: ‘crd_in_mnt’ may be used uninitialized [-Wmaybe-uninitialized] 3787 | crd_in_mnt[in_idx]=crd_in[in_nbr-in_idx-1]; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -
nco_rgr.c:3788:37: warning: ‘dat_in_mnt’ may be used uninitialized [-Wmaybe-uninitialized] 3788 | dat_in_mnt[in_idx]=dat_in[in_nbr-in_idx-1]; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -
nco_rgr.c:3832:41: warning: ‘dat_out_mnt’ may be used uninitialized [-Wmaybe-uninitialized] 3832 | dat_out_mnt[out_idx]=mss_val_cmp_dbl; | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
nco_rgr.c:3930:23: warning: ‘FIRST_WARNING_RHS’ may be used uninitialized [-Wmaybe-uninitialized] 3930 | if(FIRST_WARNING_RHS) (void)fprintf(fp_stdout,"%s: INFO %s geopotential height extrapolated toward/into surface using hypsometric equation with constant global mean virtual temperature = %g for variable %s\n",nco_prg_nm_get(),fnc_nm,tpt_vrt_avg,var_nm); | ^ -
nco_rgr.c:3852:23: warning: ‘FIRST_WARNING_LHS’ may be used uninitialized [-Wmaybe-uninitialized] 3852 | if(FIRST_WARNING_LHS) (void)fprintf(fp_stdout,"%s: INFO %s geopotential height extrapolated upward towards space using hypsometric equation with constant global mean virtual temperature = %g for variable %s\n",nco_prg_nm_get(),fnc_nm,tpt_vrt_avg,var_nm); | ^ -
nco_rgr.c:7456:32: warning: ‘tm_srt’ may be used uninitialized [-Wmaybe-uninitialized] 7456 | tm_drn=(float)(tm_end-tm_srt)/CLOCKS_PER_SEC; | ~~~~~~~^~~~~~~~ -
nco_rgr.c:568:9: warning: ‘cnv_nbr’ may be used uninitialized [-Wmaybe-uninitialized] 568 | if(cnv_nbr != 4) cnv_nbr=sscanf(rgr_lst[rgr_var_idx].val,"%lf,%lf,%lf,%lf",&rgr->lon_wst,&rgr->lon_est,&rgr->lat_sth,&rgr->lat_nrt); | ^ -
nco_rgr.c:7661:13: warning: ‘sp’ may be used uninitialized [-Wmaybe-uninitialized] 7661 | (void)fprintf(stdout,"%s: ERROR %s reports convergence only %g after %d iterations for lat_idx = %d\n",nco_prg_nm_get(),fnc_nm,fabs(sp),itr_nbr_max,lat_idx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_rgr.c:8409:5: warning: ‘b_idx’ may be used uninitialized [-Wmaybe-uninitialized] 8409 | if(b_idx) b_idx=(long *)nco_free(b_idx); | ^ -
nco_rgr.c:8408:5: warning: ‘a_idx’ may be used uninitialized [-Wmaybe-uninitialized] 8408 | if(a_idx) a_idx=(long *)nco_free(a_idx); | ^ -
nco_rgr.c:8410:5: warning: ‘c_idx’ may be used uninitialized [-Wmaybe-uninitialized] 8410 | if(c_idx) c_idx=(long *)nco_free(c_idx); | ^ -
nco_rgr.c:4375:113: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 4375 | if(nco_rgr_mth_typ == nco_rgr_mth_nil) (void)fprintf(stdout,"%s: WARNING %s reports map global attribute %s = %s does not match SCRIP/ESMF conventions that support only values of \"Conservative\" and \"Bilinear\" for this attribute. Proceeding anyway...\n",nco_prg_nm_get(),fnc_nm,cnv_sng,att_val); | ^~ -
nco_rgr.c:6337:47: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 6 [-Wformat-overflow=] 6337 | (void)sprintf(dmn_nm_sng,"sng_lng_%d",dmn_sz_chr); | ^~ -
nco_rgr.c:4606:29: warning: ‘lon_psn_src’ may be used uninitialized [-Wmaybe-uninitialized] 4606 | lon_nbr_in=dmn_sz_in_int[lon_psn_src]; | ^ -
nco_rgr.c:4607:29: warning: ‘lat_psn_src’ may be used uninitialized [-Wmaybe-uninitialized] 4607 | lat_nbr_in=dmn_sz_in_int[lat_psn_src]; | ^ -
/usr/include/bits/stdio2.h:111:10: warning: ‘col_nbr_in’ may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
/usr/include/bits/stdio2.h:111:10: warning: ‘lon_nbr_in’ may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
/usr/include/bits/stdio2.h:111:10: warning: ‘lat_nbr_in’ may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
/usr/include/bits/stdio2.h:111:10: warning: ‘idx_max_dvn’ may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
nco_rgr.c:5941:9: warning: ‘bnd_nm_out’ may be used uninitialized [-Wmaybe-uninitialized] 5941 | if(!strcmp(bnd_nm_out,bnd_tm_nm_out)){ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_rgr.c:6719:56: warning: ‘dmn_nbr_out’ may be used uninitialized [-Wmaybe-uninitialized] 6719 | dmn_nbr_max= dmn_nbr_in > dmn_nbr_out ? dmn_nbr_in : dmn_nbr_out; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -
nco_rgr.c:11305:7: warning: ‘lat_typ’ may be used uninitialized [-Wmaybe-uninitialized]
-
nco_rgr.c:10476:11: warning: ‘msk_unn.vp’ may be used uninitialized [-Wmaybe-uninitialized]
-
nco_rgr.c:11292:105: warning: ‘lat_spn’ may be used uninitialized [-Wmaybe-uninitialized]
-
nco_rgr.c:3233:47: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 6 [-Wformat-overflow=] 3233 | (void)sprintf(dmn_nm_sng,"sng_lng_%d",dmn_sz_chr); | ^~ -
nco_rgr.c:1162:9: warning: ‘ps_nm_tpl’ may be used uninitialized [-Wmaybe-uninitialized] 1162 | rcd=nco_inq_varid_flg(tpl_id,ps_nm_tpl,&ps_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
nco_rgr.c:1469:15: warning: ‘mss_val_cmp_dbl’ may be used uninitialized [-Wmaybe-uninitialized] 1469 | if(lt_out[idx_ttl] != mss_val_cmp_dbl) lt_sum[idx_fst+grd_idx]+=lt_out[idx_ttl]; | ^ -
nco_rgr.c:2733:26: warning: ‘dmn_nbr_out’ may be used uninitialized [-Wmaybe-uninitialized] 2733 | for(dmn_idx=0;dmn_idx<dmn_nbr_out;dmn_idx++){ | ~~~~~~~^~~~~~~~~~~~ -
nco_rgr.c:2600:72: warning: ‘lev_in_min’ may be used uninitialized [-Wmaybe-uninitialized] 2600 | for(size_t idx_in=0;idx_in<tm_hrz_sz;idx_in++) prs_min_in[idx_in]=lev_in_min; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ -
nco_rgr.c:2608:77: warning: ‘lev_out_min’ may be used uninitialized [-Wmaybe-uninitialized] 2608 | for(size_t idx_out=0;idx_out<tm_hrz_sz;idx_out++) prs_min_out[idx_out]=lev_out_min; | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -
nco_rgr.c:2662:72: warning: ‘lev_in_min’ may be used uninitialized [-Wmaybe-uninitialized] 2662 | for(size_t idx_in=0;idx_in<tm_hrz_sz;idx_in++) prs_min_in[idx_in]=lev_in_min; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~