Revert "fix C compiler warnings reported by CRAN"

This reverts commit 178f5d93d769bab53036e38bf342cfe3e9150883.