Skip to content

Commit 3956b48

Browse files
author
ripley
committed
report -Wdeprecated-literal-operator from clang >= 18.1.6
git-svn-id: https://svn.r-project.org/R/trunk@87796 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 46ab9db commit 3956b48

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/library/tools/R/check.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6163,13 +6163,19 @@ add_dummies <- function(dir, Log)
61636163
## LLVM flang warnings:
61646164
## Includes Hollerith constants
61656165
## does not complain about 'Shared DO termination'
6166-
"(portability: A DO loop should terminate with an END DO or CONTINUE|portability: deprecated usage|in the context: arithmetic IF statement)"
6166+
"(portability: A DO loop should terminate with an END DO or CONTINUE|portability: deprecated usage|in the context: arithmetic IF statement)",
6167+
## LLVM >= 18 clang++
6168+
": warning: .* \\[-Wdeprecated-literal-operator\\]"
61676169
)
61686170

61696171
warn_re <- paste0("(", paste(warn_re, collapse = "|"), ")")
61706172

61716173
lines <- grep(warn_re, lines, value = TRUE, useBytes = TRUE)
61726174

6175+
## Filter out BH header warnings
6176+
ex_re <- "BH/include/boost/.*\\[-Wdeprecated-literal-operator\\]"
6177+
lines <- filtergrep(ex_re, lines, useBytes = TRUE)
6178+
61736179
## "gcc (even 9) seems not to know the size of pointers, so skip
61746180
## some from -Walloc-size-larger-than= and -Wstringop-overflow="
61756181
## lines <- grep("exceeds maximum object size.*-W(alloc-size-larger-than|stringop-overflow)", lines,

0 commit comments

Comments
 (0)