Skip to content

Commit 3c71e92

Browse files
author
ripley
committed
suppress g++ warnings on use of #warning before C++23
git-svn-id: https://svn.r-project.org/R/trunk@89110 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 0388712 commit 3c71e92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/library/tools/R/check.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6222,6 +6222,10 @@ add_dummies <- function(dir, Log)
62226222
ex_re <- "BH/include/boost/.*\\[-Wdeprecated-literal-operator\\]"
62236223
lines <- filtergrep(ex_re, lines, useBytes = TRUE)
62246224

6225+
## Filter out GCC >= 12 C++23 warnings on #warning (clang does not warn)
6226+
ex_re <- "warning:.*\\[-Wc\\+\\+23-extensions\\]"
6227+
lines <- filtergrep(ex_re, lines, useBytes = TRUE)
6228+
62256229
## "gcc (even 9) seems not to know the size of pointers, so skip
62266230
## some from -Walloc-size-larger-than= and -Wstringop-overflow="
62276231
## lines <- grep("exceeds maximum object size.*-W(alloc-size-larger-than|stringop-overflow)", lines,

0 commit comments

Comments
 (0)