-
Notifications
You must be signed in to change notification settings - Fork 41
Description
On some OSX systems (presumably using clang compilers), packages that are using RcppEigen spout a LOT of warnings of the form:
warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop
I know this is a harmless warning, but end-users in an R context are very often either not software developers at all, or at least lack exposure and experience with compiled programming languages. In an R context warnings are typically more serious and indicative of a serious problem than the compiler warnings in a C/CXX context are assumed to be.
This can result in users being worried about the trustworthiness of a package and being spooked into not using it at all.
Could something be done with preprocessor directives to determine when these pragma directives are actually supported and surround them with #if style directives, so they are only visible the compilers that understand what they do?