rbchan / unmarked

R package for hierarchical models in ecological research
https://rbchan.github.io/unmarked/
36 stars 25 forks source link

Fix LTO errors #177

Closed kenkellner closed 4 years ago

kenkellner commented 4 years ago

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