Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/werror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
_R_CHECK_FORCE_SUGGESTS_: "false"
RCPP_CXXFLAGS: "-Werror -Wcast-function-type"
RCPP_CXXFLAGS: "-Werror -Wcast-function-type -Wdeprecated-copy"

jobs:
ci:
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
* inst/tinytest/testRcppInterfaceExporter/src/RcppExports.cpp: Idem
* inst/tinytest/testRcppInterfaceExporter/inst/include/testRcppInterfaceExporter_RcppExports.h: Idem

* .github/workflows/werror.yaml: Add -Wdeprecated-copy

* inst/include/Rcpp/date_datetime/newDateVector.h: Remove redundant custom
copy operator to avoid -Wdeprecated-copy warnings
* inst/include/Rcpp/date_datetime/newDatetimeVector.h: Idem

2026-09-01 Iñaki Ucar <iucar@fedoraproject.org>

* .github/workflows/werror.yaml: Add new CI file with -Werror enabled
Expand Down
8 changes: 0 additions & 8 deletions inst/include/Rcpp/date_datetime/newDateVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ namespace Rcpp {
return v;
}

inline newDateVector &operator=(const newDateVector &rhs) {
if (this != &rhs) {
NumericVector::operator=(rhs);
}

return *this;
}

friend inline std::ostream &operator<<(std::ostream & s, const newDateVector d);

private:
Expand Down
9 changes: 0 additions & 9 deletions inst/include/Rcpp/date_datetime/newDatetimeVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ namespace Rcpp {
return v;
}

inline newDatetimeVector &operator=(const newDatetimeVector &rhs) {
if (this != &rhs) {
NumericVector::operator=(rhs);
this->attr("tzone") = rhs.attr("tzone");
}

return *this;
}

friend inline std::ostream &operator<<(std::ostream & s, const newDatetimeVector d);

private:
Expand Down
Loading