Skip to content

Commit bc6ee2a

Browse files
author
ripley
committed
add -Wstrict-prototypes to default _R_CHECK_COMPILATION_FLAGS_KNOWN_
git-svn-id: https://svn.r-project.org/R/trunk@83027 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent e458a84 commit bc6ee2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library/tools/R/check.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3590,11 +3590,12 @@ add_dummies <- function(dir, Log)
35903590
## -Werror is not compiler independent
35913591
## (as what is a warning is not)
35923592
## -Wno-dev is from qt, not a compiler flag.
3593+
## -Wstrict-prototypea is long supported by gcc and LLVM/Apple clang.
35933594
except <- Sys.getenv("_R_CHECK_COMPILATION_FLAGS_KNOWN_", "")
35943595
except <- unlist(strsplit(except, "\\s", perl = TRUE))
35953596
warns <- setdiff(warns,
35963597
c(except, "-Wall", "-Wextra", "-Weverything",
3597-
"-Wno-dev"))
3598+
"-Wno-dev", "-Wstrict-prototypes"))
35983599
warns <- warns[!startsWith(warns, "-Wl,")] # linker flags
35993600
diags <- grep(" -fno-diagnostics-show-option", tokens,
36003601
useBytes = TRUE, value = TRUE)

0 commit comments

Comments
 (0)