Fixes LTO-related compiler warnings by cleaning up mismatches in parameters between C++ function code and entries in init.c.
Steps to reproduce CRAN compiler warnings locally, for future reference:
1) Compile R-devel with correct flag: ./configure --enable-lto
2) .R/Makevars options:
CXXFLAGS= -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-deprecated-declarations -Wno-parentheses -flto -Wlto-type-mismatch
3) Use g++, I could not get clang to work properly with these options
3) Build package with R-devel
Fixes LTO-related compiler warnings by cleaning up mismatches in parameters between C++ function code and entries in
init.c
.Steps to reproduce CRAN compiler warnings locally, for future reference:
1) Compile R-devel with correct flag:
./configure --enable-lto
2).R/Makevars
options:CXXFLAGS= -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-deprecated-declarations -Wno-parentheses -flto -Wlto-type-mismatch
3) Useg++
, I could not getclang
to work properly with these options 3) Build package with R-devel