CRAN reports the following errors with the C compiler: 'gcc.exe (GCC) 12.3.0':
Version: 1.6-0.12
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
triangle.c:1428:9: warning: too many arguments for format [-Wformat-extra-args]
triangle.c:3699:23: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3705:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3712:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3719:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3727:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
triangle.c:3734:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
triangle.c:3741:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
triangle.c:3748:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3753:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3758:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3793:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3799:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3806:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3814:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
triangle.c:3821:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
triangle.c:3829:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3836:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
triangle.c:3844:41: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
triangle.c:3851:41: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
See 'd:/Rcompile/CRANpkg/local/4.4/RTriangle.Rcheck/00install.out' for details.
* used C compiler: 'gcc.exe (GCC) 12.3.0'
triangle.c: In function 'printtriangle':
triangle.c:3699:23: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3699 | printf("triangle x%lx with orientation %d:\n", (uintptr_t) t->tri,
| ~~^ ~~~~~~~~~~~~~~~~~~
| | |
| long unsigned int long long unsigned int
| %llx
triangle.c:3705:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3705 | printf(" [0] = x%lx %d\n", (uintptr_t) printtri.tri,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c:3712:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3712 | printf(" [1] = x%lx %d\n", (uintptr_t) printtri.tri,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c:3719:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3719 | printf(" [2] = x%lx %d\n", (uintptr_t) printtri.tri,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c:3727:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
3727 | printf(" Origin[%d] = x%lx (%.12g, %.12g)\n",
| ~~^
| |
| long unsigned int
| %llx
3728 | (t->orient + 1) % 3 + 3, (uintptr_t) printvertex,
| ~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
triangle.c:3734:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
3734 | printf(" Dest [%d] = x%lx (%.12g, %.12g)\n",
| ~~^
| |
| long unsigned int
| %llx
3735 | (t->orient + 2) % 3 + 3, (uintptr_t) printvertex,
| ~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
triangle.c:3741:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
3741 | printf(" Apex [%d] = x%lx (%.12g, %.12g)\n",
| ~~^
| |
| long unsigned int
| %llx
3742 | t->orient + 3, (uintptr_t) printvertex,
| ~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
triangle.c:3748:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3748 | printf(" [6] = x%lx %d\n", (uintptr_t) printsh.ss,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c:3753:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3753 | printf(" [7] = x%lx %d\n", (uintptr_t) printsh.ss,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c:3758:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3758 | printf(" [8] = x%lx %d\n", (uintptr_t) printsh.ss,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c: In function 'printsubseg':
triangle.c:3793:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3793 | printf("subsegment x%lx with orientation %d and mark %d:\n",
| ~~^
| |
| long unsigned int
| %llx
3794 | (uintptr_t) s->ss, s->ssorient, mark(*s));
| ~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
triangle.c:3799:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3799 | printf(" [0] = x%lx %d\n", (uintptr_t) printsh.ss,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c:3806:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3806 | printf(" [1] = x%lx %d\n", (uintptr_t) printsh.ss,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c:3814:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
3814 | printf(" Origin[%d] = x%lx (%.12g, %.12g)\n",
| ~~^
| |
| long unsigned int
| %llx
3815 | 2 + s->ssorient, (uintptr_t) printvertex,
| ~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
triangle.c:3821:33: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
3821 | printf(" Dest [%d] = x%lx (%.12g, %.12g)\n",
| ~~^
| |
| long unsigned int
| %llx
3822 | 3 - s->ssorient, (uintptr_t) printvertex,
| ~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
triangle.c:3829:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3829 | printf(" [6] = x%lx %d\n", (uintptr_t) printtri.tri,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c:3836:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
3836 | printf(" [7] = x%lx %d\n", (uintptr_t) printtri.tri,
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long unsigned int
| long unsigned int
| %llx
triangle.c:3844:41: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
3844 | printf(" Segment origin[%d] = x%lx (%.12g, %.12g)\n",
| ~~^
| |
| long unsigned int
| %llx
3845 | 4 + s->ssorient, (uintptr_t) printvertex,
| ~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
triangle.c:3851:41: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
3851 | printf(" Segment dest [%d] = x%lx (%.12g, %.12g)\n",
| ~~^
| |
| long unsigned int
| %llx
3852 | 5 - s->ssorient, (uintptr_t) printvertex,
| ~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
CRAN reports the following errors with the C compiler: 'gcc.exe (GCC) 12.3.0':