Skip to content

warnings with some compilers due to unknown/unsupported pragma directives #74

@kotoroshinoto

Description

@kotoroshinoto

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions