Re: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch]

2020-12-21 Thread Tomas Kalibera
- > *From:* Tomas Kalibera > *Sent:* Friday, 18 December 2020 19:14 > *To:* Pierre Lafaye de Micheaux ; Ivan Krylov > > *Cc:* R Package Devel > *Subject:* Re: [R-pkg-devel] [Re] warning: type of �zhpevx_� does not > match original declaration [-Wlto-ty

Re: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch]

2020-12-18 Thread Pierre Lafaye de Micheaux
lib...@gmail.com>; Prof Brian Ripley <mailto:rip...@stats.ox.ac.uk>; R Package Devel <mailto:r-package-devel@r-project.org> Subject: Re: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch] Dear Pierre L., I think that the

Re: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch]

2020-12-18 Thread Tomas Kalibera
ns (but does not include the complex type). Best, Tomas > > Have a nice day. > > Kind regards, > Pierre > > *From:* Ivan Krylov > *Sent:* Friday, 18 December 2020 18:16 > *To:* Pierre Lafaye de Micheaux &g

Re: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch]

2020-12-17 Thread Pierre Lafaye de Micheaux
work. Have a nice day. Kind regards, Pierre From: Ivan Krylov Sent: Friday, 18 December 2020 18:16 To: Pierre Lafaye de Micheaux Cc: Tomas Kalibera ; Prof Brian Ripley ; R Package Devel Subject: Re: [R-pkg-devel] [Re] warning: type of �zhpevx_� does not match

Re: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch]

2020-12-17 Thread Ivan Krylov
Dear Pierre L., I think that the zhpevxC wrapper, as written, may result in undefined behaviour: >const char *JOBZ = jobz[0]; >delete[] JOBZ; >delete[] Cap; This could work okay, depending on how the rest of the package is written, but in general, it is considered a bad idea for li

Re: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch]

2020-12-17 Thread Pierre Lafaye de Micheaux
day, 18 December 2020 16:15 To: Tomas Kalibera Cc: Prof Brian Ripley ; R Package Devel Subject: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch] Dear Tomas, Thank you very much for your feedback. This was really helpful and helped me to

[R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch]

2020-12-17 Thread Pierre Lafaye de Micheaux
Dear Tomas, Thank you very much for your feedback. This was really helpful and helped me to find a solution. Even if it is not entirely satisfactory to me (in the sense that I now create new extra pointers which will take unnecessary space in memory), at least the LTO errors are not displayed a