Skip to content

Commit

Permalink
skip warnings on Fortran statement functions
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87186 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Sep 21, 2024
1 parent cd60443 commit 545f8a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@
\item Installation will define \code{STRICT_R_HEADERS} if
environment variable \env{_R_USE_STRICT_R_HEADERS_} is set to a
true value: this is done by \command{R CMD check --as-cran}.
\item \command{R CMD check} now reports more warnings on
long-deprecated/obsolete Fortran features from
\command{gfortran -Wall}. For hints on how to modernize these,
see
\url{https://fortranwiki.org/fortran/show/Modernizing+Old+Fortran}.
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/library/tools/R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -6206,6 +6206,8 @@ add_dummies <- function(dir, Log)
## "arithmetic IF statement at \\(1\\)",
## Reported as from 2024-09
## "Obsolescent feature:",
## see e.g. https://fortranwiki.org/fortran/show/Modernizing+Old+Fortran
"Obsolescent feature: Statement function",
"Nonconforming tab character (in|at)")
warn_re <- c(warn_re,
"Warning: .*\\[-Wconversion]",
Expand Down

0 comments on commit 545f8a9

Please sign in to comment.