Thanks :)

-----Original Message-----
From: Iris Simmons 
<ikwsi...@gmail.com<mailto:iris%20simmons%20%3cikwsi...@gmail.com%3e>>
To: Søren Højsgaard 
<sor...@math.aau.dk<mailto:%3d%3fiso-8859-1%3fq%3fs%3df8ren_h%3df8jsgaard%3f%3d%20%3csor...@math.aau.dk%3e>>
Cc: List r-package-devel 
<r-package-devel@r-project.org<mailto:list%20r-package-devel%20%3cr-package-de...@r-project.org%3e>>
Subject: Re: [R-pkg-devel] warning: explicit assigning values of variable of 
type ....
Date: 06/07/2024 02:13:26 AM

Unless I'm misunderstanding, you're trying to pass a value by name to a 
function. That is not a thing in C nor C++. However if you want to name the 
arguments, you can do so with comments:

/* print = */ print

On Thu, Jun 6, 2024, 19:16 Søren Højsgaard via R-package-devel 
<r-package-devel@r-project.org<mailto:r-package-devel@r-project.org>> wrote:
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
______________________________________________
R-package-devel@r-project.org<mailto:R-package-devel@r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


        [[alternative HTML version deleted]]

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to