Skip to content

Commit d3f7a18

Browse files
author
ripley
committed
report some clang -Wmacro-redefined errors
git-svn-id: https://svn.r-project.org/R/trunk@88054 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent c2e8e6f commit d3f7a18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/library/tools/R/check.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6155,6 +6155,8 @@ add_dummies <- function(dir, Log)
61556155
## Includes Hollerith constants
61566156
## does not complain about 'Shared DO termination'
61576157
"(portability: A DO loop should terminate with an END DO or CONTINUE|portability: deprecated usage|in the context: arithmetic IF statement)",
6158+
## selected re-defining of macros": clang
6159+
": warning: .*(M_PI|INT_MIN|FCONE).* \\[-Wmacro-redefined\\]",
61586160
## LLVM >= 18 clang++
61596161
": warning: .* \\[-Wdeprecated-literal-operator\\]"
61606162
)
@@ -6387,7 +6389,7 @@ add_dummies <- function(dir, Log)
63876389
lines, useBytes = TRUE)
63886390
}
63896391
## </FIXME>
6390-
6392+
63916393
lines <- unique(lines)
63926394

63936395
## Can get reports like

0 commit comments

Comments
 (0)