* installing to library ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages’
* installing *source* package ‘arrangements’ ...
** package ‘arrangements’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘gcc-14 (Debian 14.2.0-8) 14.2.0’
make[1]: Entering directory '/tmp/Rtmpy0MoIT/R.INSTALL27edc7497999db/arrangements/src'
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c arrangements.c -o arrangements.o
arrangements.c: In function ‘validate_n_value’:
arrangements.c:17:12: warning: variable ‘k’ set but not used [-Wunused-but-set-variable]
   17 |     int n, k;
      |            ^
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c combinations.c -o combinations.o
In file included from combinations.c:5:
combinations/combinations-ordinary.c: In function ‘next_ordinary_combinations’:
combinations/combinations-ordinary.c:126:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  126 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
combinations/combinations-ordinary.c:90:12: note: ‘maxd’ was declared here
   90 |     double maxd;
      |            ^~~~
In file included from utils.h:6,
                 from macros.h:4,
                 from combinations.c:2:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
combinations/combinations-ordinary.c:160:18: note: in expansion of macro ‘PROTECT’
  160 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
combinations/combinations-ordinary.c:87:10: note: ‘result’ was declared here
   87 |     SEXP result;
      |          ^~~~~~
combinations/combinations-ordinary.c: In function ‘draw_ordinary_combinations’:
combinations/combinations-ordinary.c:272:57: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  272 |                 nth_ordinary_combination(ap, n, k, index[j] - 1); \
      |                                                    ~~~~~^~~
macros.h:260:13: note: in expansion of macro ‘NEXT’
  260 |             NEXT(); \
      |             ^~~~
combinations/combinations-ordinary.c:283:13: note: in expansion of macro ‘RESULT_STRSXP’
  283 |             RESULT_STRSXP(k);
      |             ^~~~~~~~~~~~~
combinations/combinations-ordinary.c:255:14: note: ‘index’ was declared here
  255 |         int* index;
      |              ^~~~~
combinations/combinations-ordinary.c:196:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  196 |         mpz_t* index;
      |                ^~~~~
In file included from combinations.c:6:
combinations/combinations-multiset.c: In function ‘n_multiset_combinations’:
combinations/combinations-multiset.c:77:12: warning: ‘ptemp’ may be used uninitialized [-Wmaybe-uninitialized]
   77 |     return ptemp;
      |            ^~~~~
combinations/combinations-multiset.c:52:12: note: ‘ptemp’ was declared here
   52 |     double ptemp;
      |            ^~~~~
combinations/combinations-multiset.c: In function ‘next_multiset_combinations’:
combinations/combinations-multiset.c:241:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  241 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
combinations/combinations-multiset.c:194:12: note: ‘maxd’ was declared here
  194 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
combinations/combinations-multiset.c:288:18: note: in expansion of macro ‘PROTECT’
  288 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
combinations/combinations-multiset.c:185:12: note: ‘j’ was declared here
  185 |     int i, j, h;
      |            ^
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
combinations/combinations-multiset.c:288:18: note: in expansion of macro ‘PROTECT’
  288 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
combinations/combinations-multiset.c:188:10: note: ‘result’ was declared here
  188 |     SEXP result;
      |          ^~~~~~
combinations/combinations-multiset.c: In function ‘draw_multiset_combinations’:
combinations/combinations-multiset.c:400:64: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  400 |                 nth_multiset_combination(ap, fp, flen, k, index[j] - 1); \
      |                                                           ~~~~~^~~
macros.h:260:13: note: in expansion of macro ‘NEXT’
  260 |             NEXT(); \
      |             ^~~~
combinations/combinations-multiset.c:411:13: note: in expansion of macro ‘RESULT_STRSXP’
  411 |             RESULT_STRSXP(k);
      |             ^~~~~~~~~~~~~
combinations/combinations-multiset.c:383:14: note: ‘index’ was declared here
  383 |         int* index;
      |              ^~~~~
combinations/combinations-multiset.c:324:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  324 |         mpz_t* index;
      |                ^~~~~
In file included from combinations.c:7:
combinations/combinations-replacement.c: In function ‘next_replacement_combinations’:
combinations/combinations-replacement.c:121:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  121 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
combinations/combinations-replacement.c:87:12: note: ‘maxd’ was declared here
   87 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
combinations/combinations-replacement.c:155:18: note: in expansion of macro ‘PROTECT’
  155 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
combinations/combinations-replacement.c:84:10: note: ‘result’ was declared here
   84 |     SEXP result;
      |          ^~~~~~
combinations/combinations-replacement.c: In function ‘draw_replacement_combinations’:
combinations/combinations-replacement.c:267:60: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  267 |                 nth_replacement_combination(ap, n, k, index[j] - 1); \
      |                                                       ~~~~~^~~
macros.h:260:13: note: in expansion of macro ‘NEXT’
  260 |             NEXT(); \
      |             ^~~~
combinations/combinations-replacement.c:278:13: note: in expansion of macro ‘RESULT_STRSXP’
  278 |             RESULT_STRSXP(k);
      |             ^~~~~~~~~~~~~
combinations/combinations-replacement.c:250:14: note: ‘index’ was declared here
  250 |         int* index;
      |              ^~~~~
combinations/combinations-replacement.c:191:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  191 |         mpz_t* index;
      |                ^~~~~
combinations.c: In function ‘ncombinations’:
combinations.c:50:17: warning: ‘fp’ may be used uninitialized [-Wmaybe-uninitialized]
   50 |             d = n_multiset_combinations(fp, flen, k);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
combinations.c:19:10: note: ‘fp’ was declared here
   19 |     int* fp;
      |          ^~
combinations.c:50:17: warning: ‘flen’ may be used uninitialized [-Wmaybe-uninitialized]
   50 |             d = n_multiset_combinations(fp, flen, k);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
combinations.c:20:9: note: ‘flen’ was declared here
   20 |     int flen;
      |         ^~~~
combinations.c: In function ‘get_combinations’:
combinations.c:117:19: warning: ‘fp’ may be used uninitialized [-Wmaybe-uninitialized]
  117 |             ans = draw_multiset_combinations(fp, flen, k, _v, layout, _index, _nsample);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
combinations.c:73:10: note: ‘fp’ was declared here
   73 |     int* fp;
      |          ^~
combinations.c:117:19: warning: ‘flen’ may be used uninitialized [-Wmaybe-uninitialized]
  117 |             ans = draw_multiset_combinations(fp, flen, k, _v, layout, _index, _nsample);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
combinations.c:74:9: note: ‘flen’ was declared here
   74 |     int flen;
      |         ^~~~
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c compositions.c -o compositions.o
In file included from compositions.c:6:
compositions/compositions-asc-k.c: In function ‘next_asc_k_composition’:
compositions/compositions-asc-k.c:26:19: warning: ‘a’ may be used uninitialized [-Wmaybe-uninitialized]
   26 |     ar[k - 1] = a - 1;
      |                 ~~^~~
compositions/compositions-asc-k.c:13:18: note: ‘a’ was declared here
   13 |     unsigned int a;
      |                  ^
In file included from utils.h:6,
                 from compositions.c:2:
compositions/compositions-asc.c: In function ‘next_asc_compositions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
compositions/compositions-asc.c:167:18: note: in expansion of macro ‘PROTECT’
  167 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from compositions.c:4:
compositions/compositions-asc.c:90:12: note: ‘j’ was declared here
   90 |     int i, j, k;
      |            ^
compositions/compositions-asc.c:131:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  131 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
compositions/compositions-asc.c:96:12: note: ‘maxd’ was declared here
   96 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
compositions/compositions-asc.c:167:18: note: in expansion of macro ‘PROTECT’
  167 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
compositions/compositions-asc.c:93:10: note: ‘result’ was declared here
   93 |     SEXP result;
      |          ^~~~~~
compositions/compositions-asc.c: In function ‘draw_asc_compositions’:
compositions/compositions-asc.c:276:49: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  276 |                 nth_asc_composition(ap, n, index[j] - 1); \
      |                                            ~~~~~^~~
compositions/../macros.h:75:13: note: in expansion of macro ‘NEXT’
   75 |             NEXT(); \
      |             ^~~~
compositions/compositions-asc.c:285:9: note: in expansion of macro ‘RESULT_PART’
  285 |         RESULT_PART(n, k);
      |         ^~~~~~~~~~~
compositions/compositions-asc.c:257:14: note: ‘index’ was declared here
  257 |         int* index;
      |              ^~~~~
compositions/compositions-asc.c:203:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  203 |         mpz_t* index;
      |                ^~~~~
compositions/compositions-desc.c: In function ‘next_desc_compositions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
compositions/compositions-desc.c:166:18: note: in expansion of macro ‘PROTECT’
  166 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from compositions.c:5:
compositions/compositions-desc.c:88:12: note: ‘j’ was declared here
   88 |     int i, j, k;
      |            ^
compositions/compositions-desc.c:130:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  130 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
compositions/compositions-desc.c:94:12: note: ‘maxd’ was declared here
   94 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
compositions/compositions-desc.c:166:18: note: in expansion of macro ‘PROTECT’
  166 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
compositions/compositions-desc.c:91:10: note: ‘result’ was declared here
   91 |     SEXP result;
      |          ^~~~~~
compositions/compositions-desc.c: In function ‘draw_desc_compositions’:
compositions/compositions-desc.c:275:50: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  275 |                 nth_desc_composition(ap, n, index[j] - 1); \
      |                                             ~~~~~^~~
compositions/../macros.h:75:13: note: in expansion of macro ‘NEXT’
   75 |             NEXT(); \
      |             ^~~~
compositions/compositions-desc.c:284:9: note: in expansion of macro ‘RESULT_PART’
  284 |         RESULT_PART(n, k);
      |         ^~~~~~~~~~~
compositions/compositions-desc.c:256:14: note: ‘index’ was declared here
  256 |         int* index;
      |              ^~~~~
compositions/compositions-desc.c:202:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  202 |         mpz_t* index;
      |                ^~~~~
compositions/compositions-asc-k.c: In function ‘next_asc_k_compositions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
compositions/compositions-asc-k.c:140:18: note: in expansion of macro ‘PROTECT’
  140 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
compositions/compositions-asc-k.c:78:12: note: ‘j’ was declared here
   78 |     int i, j;
      |            ^
compositions/compositions-asc-k.c:119:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  119 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
compositions/compositions-asc-k.c:84:12: note: ‘maxd’ was declared here
   84 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
compositions/compositions-asc-k.c:140:18: note: in expansion of macro ‘PROTECT’
  140 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
compositions/compositions-asc-k.c:81:10: note: ‘result’ was declared here
   81 |     SEXP result;
      |          ^~~~~~
compositions/compositions-asc-k.c: In function ‘draw_asc_k_compositions’:
compositions/compositions-asc-k.c:239:54: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  239 |                 nth_asc_k_composition(ap, n, k, index[j] - 1); \
      |                                                 ~~~~~^~~
compositions/../macros.h:112:13: note: in expansion of macro ‘NEXT’
  112 |             NEXT(); \
      |             ^~~~
compositions/compositions-asc-k.c:242:9: note: in expansion of macro ‘RESULT_K_PART’
  242 |         RESULT_K_PART();
      |         ^~~~~~~~~~~~~
compositions/compositions-asc-k.c:222:14: note: ‘index’ was declared here
  222 |         int* index;
      |              ^~~~~
compositions/compositions-asc-k.c:176:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  176 |         mpz_t* index;
      |                ^~~~~
compositions/compositions-desc-k.c: In function ‘next_desc_k_compositions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
compositions/compositions-desc-k.c:166:18: note: in expansion of macro ‘PROTECT’
  166 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from compositions.c:7:
compositions/compositions-desc-k.c:87:12: note: ‘j’ was declared here
   87 |     int i, j;
      |            ^
compositions/compositions-desc-k.c:130:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  130 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
compositions/compositions-desc-k.c:93:12: note: ‘maxd’ was declared here
   93 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
compositions/compositions-desc-k.c:166:18: note: in expansion of macro ‘PROTECT’
  166 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
compositions/compositions-desc-k.c:90:10: note: ‘result’ was declared here
   90 |     SEXP result;
      |          ^~~~~~
compositions/compositions-desc-k.c: In function ‘draw_desc_k_compositions’:
compositions/compositions-desc-k.c:265:55: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  265 |                 nth_desc_k_composition(ap, n, k, index[j] - 1); \
      |                                                  ~~~~~^~~
compositions/../macros.h:112:13: note: in expansion of macro ‘NEXT’
  112 |             NEXT(); \
      |             ^~~~
compositions/compositions-desc-k.c:268:9: note: in expansion of macro ‘RESULT_K_PART’
  268 |         RESULT_K_PART();
      |         ^~~~~~~~~~~~~
compositions/compositions-desc-k.c:248:14: note: ‘index’ was declared here
  248 |         int* index;
      |              ^~~~~
compositions/compositions-desc-k.c:202:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  202 |         mpz_t* index;
      |                ^~~~~
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c math.c -o math.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c partitions.c -o partitions.o
In file included from utils.h:6,
                 from partitions.c:3:
partitions/partitions-asc.c: In function ‘next_asc_partitions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-asc.c:179:18: note: in expansion of macro ‘PROTECT’
  179 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from partitions.c:5:
partitions/partitions-asc.c:102:12: note: ‘j’ was declared here
  102 |     int i, j, k;
      |            ^
partitions/partitions-asc.c:143:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  143 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
partitions/partitions-asc.c:108:12: note: ‘maxd’ was declared here
  108 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-asc.c:179:18: note: in expansion of macro ‘PROTECT’
  179 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
partitions/partitions-asc.c:105:10: note: ‘result’ was declared here
  105 |     SEXP result;
      |          ^~~~~~
partitions/partitions-asc.c: In function ‘draw_asc_partitions’:
partitions/partitions-asc.c:288:47: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  288 |                 nth_asc_partition(ap, n, index[j] - 1); \
      |                                          ~~~~~^~~
partitions/../macros.h:75:13: note: in expansion of macro ‘NEXT’
   75 |             NEXT(); \
      |             ^~~~
partitions/partitions-asc.c:297:9: note: in expansion of macro ‘RESULT_PART’
  297 |         RESULT_PART(n, k);
      |         ^~~~~~~~~~~
partitions/partitions-asc.c:269:14: note: ‘index’ was declared here
  269 |         int* index;
      |              ^~~~~
partitions/partitions-asc.c:215:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  215 |         mpz_t* index;
      |                ^~~~~
partitions/partitions-desc.c: In function ‘next_desc_partitions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-desc.c:217:18: note: in expansion of macro ‘PROTECT’
  217 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from partitions.c:6:
partitions/partitions-desc.c:120:12: note: ‘j’ was declared here
  120 |     int i, j, k;
      |            ^
partitions/partitions-desc.c:163:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  163 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
partitions/partitions-desc.c:126:12: note: ‘maxd’ was declared here
  126 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-desc.c:217:18: note: in expansion of macro ‘PROTECT’
  217 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
partitions/partitions-desc.c:123:10: note: ‘result’ was declared here
  123 |     SEXP result;
      |          ^~~~~~
partitions/partitions-desc.c: In function ‘draw_desc_partitions’:
partitions/partitions-desc.c:326:48: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  326 |                 nth_desc_partition(ap, n, index[j] - 1); \
      |                                           ~~~~~^~~
partitions/../macros.h:75:13: note: in expansion of macro ‘NEXT’
   75 |             NEXT(); \
      |             ^~~~
partitions/partitions-desc.c:335:9: note: in expansion of macro ‘RESULT_PART’
  335 |         RESULT_PART(n, k);
      |         ^~~~~~~~~~~
partitions/partitions-desc.c:307:14: note: ‘index’ was declared here
  307 |         int* index;
      |              ^~~~~
partitions/partitions-desc.c:253:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  253 |         mpz_t* index;
      |                ^~~~~
partitions/partitions-asc-k.c: In function ‘next_asc_k_partitions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-asc-k.c:147:18: note: in expansion of macro ‘PROTECT’
  147 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from partitions.c:7:
partitions/partitions-asc-k.c:85:12: note: ‘j’ was declared here
   85 |     int i, j;
      |            ^
partitions/partitions-asc-k.c:126:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  126 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
partitions/partitions-asc-k.c:91:12: note: ‘maxd’ was declared here
   91 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-asc-k.c:147:18: note: in expansion of macro ‘PROTECT’
  147 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
partitions/partitions-asc-k.c:88:10: note: ‘result’ was declared here
   88 |     SEXP result;
      |          ^~~~~~
partitions/partitions-asc-k.c: In function ‘draw_asc_k_partitions’:
partitions/partitions-asc-k.c:246:52: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  246 |                 nth_asc_k_partition(ap, n, k, index[j] - 1); \
      |                                               ~~~~~^~~
partitions/../macros.h:112:13: note: in expansion of macro ‘NEXT’
  112 |             NEXT(); \
      |             ^~~~
partitions/partitions-asc-k.c:249:9: note: in expansion of macro ‘RESULT_K_PART’
  249 |         RESULT_K_PART();
      |         ^~~~~~~~~~~~~
partitions/partitions-asc-k.c:229:14: note: ‘index’ was declared here
  229 |         int* index;
      |              ^~~~~
partitions/partitions-asc-k.c:183:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  183 |         mpz_t* index;
      |                ^~~~~
partitions/partitions-desc-k.c: In function ‘next_desc_k_partitions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-desc-k.c:168:18: note: in expansion of macro ‘PROTECT’
  168 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from partitions.c:8:
partitions/partitions-desc-k.c:106:12: note: ‘j’ was declared here
  106 |     int i, j;
      |            ^
partitions/partitions-desc-k.c:147:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  147 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
partitions/partitions-desc-k.c:112:12: note: ‘maxd’ was declared here
  112 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-desc-k.c:168:18: note: in expansion of macro ‘PROTECT’
  168 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
partitions/partitions-desc-k.c:109:10: note: ‘result’ was declared here
  109 |     SEXP result;
      |          ^~~~~~
partitions/partitions-desc-k.c: In function ‘draw_desc_k_partitions’:
partitions/partitions-desc-k.c:267:53: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  267 |                 nth_desc_k_partition(ap, n, k, index[j] - 1); \
      |                                                ~~~~~^~~
partitions/../macros.h:112:13: note: in expansion of macro ‘NEXT’
  112 |             NEXT(); \
      |             ^~~~
partitions/partitions-desc-k.c:270:9: note: in expansion of macro ‘RESULT_K_PART’
  270 |         RESULT_K_PART();
      |         ^~~~~~~~~~~~~
partitions/partitions-desc-k.c:250:14: note: ‘index’ was declared here
  250 |         int* index;
      |              ^~~~~
partitions/partitions-desc-k.c:204:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  204 |         mpz_t* index;
      |                ^~~~~
partitions/partitions-asc-distinct.c: In function ‘next_asc_distinct_partitions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-asc-distinct.c:182:18: note: in expansion of macro ‘PROTECT’
  182 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from partitions.c:9:
partitions/partitions-asc-distinct.c:102:12: note: ‘j’ was declared here
  102 |     int i, j, k;
      |            ^
partitions/partitions-asc-distinct.c:146:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  146 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
partitions/partitions-asc-distinct.c:109:12: note: ‘maxd’ was declared here
  109 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-asc-distinct.c:182:18: note: in expansion of macro ‘PROTECT’
  182 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
partitions/partitions-asc-distinct.c:106:10: note: ‘result’ was declared here
  106 |     SEXP result;
      |          ^~~~~~
partitions/partitions-asc-distinct.c: In function ‘draw_asc_distinct_partitions’:
partitions/partitions-asc-distinct.c:292:59: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  292 |                 nth_asc_distinct_partition(ap, m, n, index[j] - 1); \
      |                                                      ~~~~~^~~
partitions/../macros.h:75:13: note: in expansion of macro ‘NEXT’
   75 |             NEXT(); \
      |             ^~~~
partitions/partitions-asc-distinct.c:301:9: note: in expansion of macro ‘RESULT_PART’
  301 |         RESULT_PART(m, k);
      |         ^~~~~~~~~~~
partitions/partitions-asc-distinct.c:273:14: note: ‘index’ was declared here
  273 |         int* index;
      |              ^~~~~
partitions/partitions-asc-distinct.c:219:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  219 |         mpz_t* index;
      |                ^~~~~
partitions/partitions-desc-distinct.c: In function ‘next_desc_distinct_partitions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-desc-distinct.c:195:18: note: in expansion of macro ‘PROTECT’
  195 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from partitions.c:10:
partitions/partitions-desc-distinct.c:115:12: note: ‘j’ was declared here
  115 |     int i, j, k;
      |            ^
partitions/partitions-desc-distinct.c:159:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  159 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
partitions/partitions-desc-distinct.c:122:12: note: ‘maxd’ was declared here
  122 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-desc-distinct.c:195:18: note: in expansion of macro ‘PROTECT’
  195 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
partitions/partitions-desc-distinct.c:119:10: note: ‘result’ was declared here
  119 |     SEXP result;
      |          ^~~~~~
partitions/partitions-desc-distinct.c: In function ‘draw_desc_distinct_partitions’:
partitions/partitions-desc-distinct.c:305:60: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  305 |                 nth_desc_distinct_partition(ap, m, n, index[j] - 1); \
      |                                                       ~~~~~^~~
partitions/../macros.h:75:13: note: in expansion of macro ‘NEXT’
   75 |             NEXT(); \
      |             ^~~~
partitions/partitions-desc-distinct.c:314:9: note: in expansion of macro ‘RESULT_PART’
  314 |         RESULT_PART(m, k);
      |         ^~~~~~~~~~~
partitions/partitions-desc-distinct.c:286:14: note: ‘index’ was declared here
  286 |         int* index;
      |              ^~~~~
partitions/partitions-desc-distinct.c:232:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  232 |         mpz_t* index;
      |                ^~~~~
partitions/partitions-asc-k-distinct.c: In function ‘next_asc_k_distinct_partitions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-asc-k-distinct.c:123:18: note: in expansion of macro ‘PROTECT’
  123 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from partitions.c:11:
partitions/partitions-asc-k-distinct.c:61:12: note: ‘j’ was declared here
   61 |     int i, j;
      |            ^
partitions/partitions-asc-k-distinct.c:102:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  102 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
partitions/partitions-asc-k-distinct.c:67:12: note: ‘maxd’ was declared here
   67 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-asc-k-distinct.c:123:18: note: in expansion of macro ‘PROTECT’
  123 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
partitions/partitions-asc-k-distinct.c:64:10: note: ‘result’ was declared here
   64 |     SEXP result;
      |          ^~~~~~
partitions/partitions-asc-k-distinct.c: In function ‘draw_asc_k_distinct_partitions’:
partitions/partitions-asc-k-distinct.c:222:61: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  222 |                 nth_asc_k_distinct_partition(ap, n, k, index[j] - 1); \
      |                                                        ~~~~~^~~
partitions/../macros.h:112:13: note: in expansion of macro ‘NEXT’
  112 |             NEXT(); \
      |             ^~~~
partitions/partitions-asc-k-distinct.c:225:9: note: in expansion of macro ‘RESULT_K_PART’
  225 |         RESULT_K_PART();
      |         ^~~~~~~~~~~~~
partitions/partitions-asc-k-distinct.c:205:14: note: ‘index’ was declared here
  205 |         int* index;
      |              ^~~~~
partitions/partitions-asc-k-distinct.c:159:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  159 |         mpz_t* index;
      |                ^~~~~
partitions/partitions-desc-k-distinct.c: In function ‘next_desc_k_distinct_partitions’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-desc-k-distinct.c:135:18: note: in expansion of macro ‘PROTECT’
  135 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
In file included from partitions.c:12:
partitions/partitions-desc-k-distinct.c:73:12: note: ‘j’ was declared here
   73 |     int i, j;
      |            ^
partitions/partitions-desc-k-distinct.c:114:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  114 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
partitions/partitions-desc-k-distinct.c:79:12: note: ‘maxd’ was declared here
   79 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
partitions/partitions-desc-k-distinct.c:135:18: note: in expansion of macro ‘PROTECT’
  135 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
partitions/partitions-desc-k-distinct.c:76:10: note: ‘result’ was declared here
   76 |     SEXP result;
      |          ^~~~~~
partitions/partitions-desc-k-distinct.c: In function ‘draw_desc_k_distinct_partitions’:
partitions/partitions-desc-k-distinct.c:234:62: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  234 |                 nth_desc_k_distinct_partition(ap, n, k, index[j] - 1); \
      |                                                         ~~~~~^~~
partitions/../macros.h:112:13: note: in expansion of macro ‘NEXT’
  112 |             NEXT(); \
      |             ^~~~
partitions/partitions-desc-k-distinct.c:237:9: note: in expansion of macro ‘RESULT_K_PART’
  237 |         RESULT_K_PART();
      |         ^~~~~~~~~~~~~
partitions/partitions-desc-k-distinct.c:217:14: note: ‘index’ was declared here
  217 |         int* index;
      |              ^~~~~
partitions/partitions-desc-k-distinct.c:171:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  171 |         mpz_t* index;
      |                ^~~~~
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c permutations.c -o permutations.o
In file included from permutations.c:4:
permutations/permutations-ordinary.c: In function ‘draw_ordinary_permutations’:
permutations/permutations-ordinary.c:326:54: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  326 |                 nth_ordinary_permutation(ap, n, index[j] - 1); \
      |                                                 ~~~~~^~~
macros.h:260:13: note: in expansion of macro ‘NEXT’
  260 |             NEXT(); \
      |             ^~~~
permutations/permutations-ordinary.c:337:13: note: in expansion of macro ‘RESULT_STRSXP’
  337 |             RESULT_STRSXP(n);
      |             ^~~~~~~~~~~~~
permutations/permutations-ordinary.c:309:14: note: ‘index’ was declared here
  309 |         int* index;
      |              ^~~~~
permutations/permutations-ordinary.c:250:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  250 |         mpz_t* index;
      |                ^~~~~
In file included from permutations.c:5:
permutations/permutations-k.c: In function ‘next_k_permutations’:
permutations/permutations-k.c:143:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  143 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
permutations/permutations-k.c:108:12: note: ‘maxd’ was declared here
  108 |     double maxd;
      |            ^~~~
In file included from utils.h:6,
                 from macros.h:4,
                 from permutations.c:2:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
permutations/permutations-k.c:201:18: note: in expansion of macro ‘PROTECT’
  201 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
permutations/permutations-k.c:102:12: note: ‘j’ was declared here
  102 |     int i, j;
      |            ^
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
permutations/permutations-k.c:201:18: note: in expansion of macro ‘PROTECT’
  201 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
permutations/permutations-k.c:105:10: note: ‘result’ was declared here
  105 |     SEXP result;
      |          ^~~~~~
permutations/permutations-k.c: In function ‘draw_k_permutations’:
permutations/permutations-k.c:313:50: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  313 |                 nth_k_permutation(ap, n, k, index[j] - 1); \
      |                                             ~~~~~^~~
macros.h:260:13: note: in expansion of macro ‘NEXT’
  260 |             NEXT(); \
      |             ^~~~
permutations/permutations-k.c:324:13: note: in expansion of macro ‘RESULT_STRSXP’
  324 |             RESULT_STRSXP(k);
      |             ^~~~~~~~~~~~~
permutations/permutations-k.c:296:14: note: ‘index’ was declared here
  296 |         int* index;
      |              ^~~~~
permutations/permutations-k.c:237:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  237 |         mpz_t* index;
      |                ^~~~~
In file included from permutations.c:6:
permutations/permutations-multiset.c: In function ‘n_multiset_permutations’:
permutations/permutations-multiset.c:63:12: warning: ‘ptemp’ may be used uninitialized [-Wmaybe-uninitialized]
   63 |     return ptemp;
      |            ^~~~~
permutations/permutations-multiset.c:37:12: note: ‘ptemp’ was declared here
   37 |     double ptemp;
      |            ^~~~~
permutations/permutations-ordinary.c: In function ‘next_ordinary_permutations’:
permutations/permutations-ordinary.c:125:20: warning: ‘fp’ may be used uninitialized [-Wmaybe-uninitialized]
  125 |             maxd = multichoose(fp, flen);
      |                    ^~~~~~~~~~~~~~~~~~~~~
permutations/permutations-ordinary.c:111:10: note: ‘fp’ was declared here
  111 |     int* fp;
      |          ^~
permutations/permutations-ordinary.c:125:20: warning: ‘flen’ may be used uninitialized [-Wmaybe-uninitialized]
  125 |             maxd = multichoose(fp, flen);
      |                    ^~~~~~~~~~~~~~~~~~~~~
permutations/permutations-ordinary.c:112:9: note: ‘flen’ was declared here
  112 |     int flen;
      |         ^~~~
permutations/permutations-ordinary.c:176:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  176 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
permutations/permutations-ordinary.c:119:12: note: ‘maxd’ was declared here
  119 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
permutations/permutations-ordinary.c:214:18: note: in expansion of macro ‘PROTECT’
  214 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
permutations/permutations-ordinary.c:106:12: note: ‘j’ was declared here
  106 |     int i, j, h;
      |            ^
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
permutations/permutations-ordinary.c:214:18: note: in expansion of macro ‘PROTECT’
  214 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
permutations/permutations-ordinary.c:109:10: note: ‘result’ was declared here
  109 |     SEXP result;
      |          ^~~~~~
permutations/permutations-multiset.c: In function ‘next_multiset_permutations’:
permutations/permutations-multiset.c:301:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  301 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
permutations/permutations-multiset.c:262:12: note: ‘maxd’ was declared here
  262 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
permutations/permutations-multiset.c:348:18: note: in expansion of macro ‘PROTECT’
  348 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
permutations/permutations-multiset.c:253:12: note: ‘j’ was declared here
  253 |     int i, j, h;
      |            ^
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
permutations/permutations-multiset.c:348:18: note: in expansion of macro ‘PROTECT’
  348 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
permutations/permutations-multiset.c:256:10: note: ‘result’ was declared here
  256 |     SEXP result;
      |          ^~~~~~
permutations/permutations-multiset.c: In function ‘draw_multiset_permutations’:
permutations/permutations-multiset.c:460:64: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  460 |                 nth_multiset_permutation(ap, fp, flen, k, index[j] - 1); \
      |                                                           ~~~~~^~~
macros.h:260:13: note: in expansion of macro ‘NEXT’
  260 |             NEXT(); \
      |             ^~~~
permutations/permutations-multiset.c:471:13: note: in expansion of macro ‘RESULT_STRSXP’
  471 |             RESULT_STRSXP(k);
      |             ^~~~~~~~~~~~~
permutations/permutations-multiset.c:443:14: note: ‘index’ was declared here
  443 |         int* index;
      |              ^~~~~
permutations/permutations-multiset.c:384:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  384 |         mpz_t* index;
      |                ^~~~~
In file included from permutations.c:7:
permutations/permutations-replacement.c: In function ‘next_replacement_permutations’:
permutations/permutations-replacement.c:105:29: warning: ‘maxd’ may be used uninitialized [-Wmaybe-uninitialized]
  105 |                 if (skip >= (int) maxd) {
      |                             ^~~~~~~~~~
permutations/permutations-replacement.c:71:12: note: ‘maxd’ was declared here
   71 |     double maxd;
      |            ^~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include/Rinternals.h:388:25: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]
  388 | #define PROTECT(s)      Rf_protect(s)
      |                         ^~~~~~~~~~~~~
permutations/permutations-replacement.c:139:18: note: in expansion of macro ‘PROTECT’
  139 |         result = PROTECT(resize_layout(result, j, layout));
      |                  ^~~~~~~
permutations/permutations-replacement.c:64:10: note: ‘result’ was declared here
   64 |     SEXP result;
      |          ^~~~~~
permutations/permutations-replacement.c: In function ‘draw_replacement_permutations’:
permutations/permutations-replacement.c:251:60: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  251 |                 nth_replacement_permutation(ap, n, k, index[j] - 1); \
      |                                                       ~~~~~^~~
macros.h:260:13: note: in expansion of macro ‘NEXT’
  260 |             NEXT(); \
      |             ^~~~
permutations/permutations-replacement.c:262:13: note: in expansion of macro ‘RESULT_STRSXP’
  262 |             RESULT_STRSXP(k);
      |             ^~~~~~~~~~~~~
permutations/permutations-replacement.c:234:14: note: ‘index’ was declared here
  234 |         int* index;
      |              ^~~~~
permutations/permutations-replacement.c:175:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
  175 |         mpz_t* index;
      |                ^~~~~
permutations.c: In function ‘npermutations’:
permutations.c:60:21: warning: ‘fp’ may be used uninitialized [-Wmaybe-uninitialized]
   60 |                 d = n_multiset_permutations(fp, flen, k);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
permutations.c:18:10: note: ‘fp’ was declared here
   18 |     int* fp;
      |          ^~
permutations.c:37:17: warning: ‘flen’ may be used uninitialized [-Wmaybe-uninitialized]
   37 |                 n_multiset_n_permutations_bigz(z, fp, flen);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
permutations.c:19:9: note: ‘flen’ was declared here
   19 |     int flen;
      |         ^~~~
permutations.c: In function ‘get_permutations’:
permutations.c:134:19: warning: ‘fp’ may be used uninitialized [-Wmaybe-uninitialized]
  134 |             ans = draw_multiset_permutations(fp, flen, k, _v, layout, _index, _nsample);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
permutations.c:88:10: note: ‘fp’ was declared here
   88 |     int* fp;
      |          ^~
permutations.c:134:19: warning: ‘flen’ may be used uninitialized [-Wmaybe-uninitialized]
  134 |             ans = draw_multiset_permutations(fp, flen, k, _v, layout, _index, _nsample);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
permutations.c:89:9: note: ‘flen’ was declared here
   89 |     int flen;
      |         ^~~~
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c utils.c -o utils.o
gcc-14 -shared -L/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib -Wl,-O1 -o arrangements.so arrangements.o combinations.o compositions.o math.o partitions.o permutations.o utils.o -lgmp -L/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib -lR
make[1]: Leaving directory '/tmp/Rtmpy0MoIT/R.INSTALL27edc7497999db/arrangements/src'
make[1]: Entering directory '/tmp/Rtmpy0MoIT/R.INSTALL27edc7497999db/arrangements/src'
make[1]: Leaving directory '/tmp/Rtmpy0MoIT/R.INSTALL27edc7497999db/arrangements/src'
installing to /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/00LOCK-arrangements/00new/arrangements/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (arrangements)