Skip to content

Commit

Permalink
add -Wstrict-prototypes to default _R_CHECK_COMPILATION_FLAGS_KNOWN_
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@83027 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Oct 5, 2022
1 parent e458a84 commit bc6ee2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/library/tools/R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -3590,11 +3590,12 @@ add_dummies <- function(dir, Log)
## -Werror is not compiler independent
## (as what is a warning is not)
## -Wno-dev is from qt, not a compiler flag.
## -Wstrict-prototypea is long supported by gcc and LLVM/Apple clang.
except <- Sys.getenv("_R_CHECK_COMPILATION_FLAGS_KNOWN_", "")
except <- unlist(strsplit(except, "\\s", perl = TRUE))
warns <- setdiff(warns,
c(except, "-Wall", "-Wextra", "-Weverything",
"-Wno-dev"))
"-Wno-dev", "-Wstrict-prototypes"))
warns <- warns[!startsWith(warns, "-Wl,")] # linker flags
diags <- grep(" -fno-diagnostics-show-option", tokens,
useBytes = TRUE, value = TRUE)
Expand Down

0 comments on commit bc6ee2a

Please sign in to comment.