[R-pkg-devel] warning: explicit assigning values of variable of type ....
Søren Højsgaard
@orenh @end|ng |rom m@th@@@u@dk
Thu Jun 6 22:49:05 CEST 2024
Dear all,
From CRAN maintainers I recieve:
Flavor: r-devel-linux-x86_64-debian-gcc
Check: whether package can be installed, Result: WARNING
Found the following significant warnings:
grips_fit_ips.cpp:149:45: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
grips_fit_ips.cpp:213:16: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
grips_fit_ips.cpp:254:10: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
grips_fit_ips.cpp:254:21: warning: explicitly assigning value of variable of type 'double' to itself [-Wself-assign]
The first warning pertains to the line:
conips_inner_(S, K, elst0, clist0, print=print);
print on lhs of "=" is the formal name and print on rhs of "=" the name of a variable. Does the compiler think I assign an integer
to itself? Like if I write
int a=7;
a=a;
Can anyone help me throw light on this?
Thanks in advance
Søren
More information about the R-package-devel
mailing list