Skip to content

Conditional use OF R_NO_REMAP and STRICT_R_HEADERS #403

Closed
@pachadotdev

Description

@pachadotdev

We need to introduce it to avoid this with clang19

In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11.hpp:3:
/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/R.hpp:11:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined]
   11 | #define R_NO_REMAP
      |         ^
<command line>:5:9: note: previous definition is here
    5 | #define R_NO_REMAP 1
      |         ^
In file included from cpp11.cpp:4:
In file included from ./cpp11tesseract_types.h:4:
In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11.hpp:3:
/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/R.hpp:12:9: warning: 'STRICT_R_HEADERS' macro redefined [-Wmacro-redefined]
   12 | #define STRICT_R_HEADERS
      |         ^
<command line>:4:9: note: previous definition is here
    4 | #define STRICT_R_HEADERS 1

See https://win-builder.r-project.org/incoming_pretest/cpp11tesseract_5.3.3_20241023_161944/specialChecks/clang19/package/00install.out

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