Skip to content

Commit

Permalink
Re-enable deprecation warnings for recent Clang versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Oct 2, 2024
1 parent 57df9d4 commit 460a948
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/linux-full-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@ jobs:
tag: noble
cc: clang
cxx: clang++
cxxflags: -Wno-deprecated-declarations
- name: "Clang 19"
shortname: clang19
tag: oracular
cc: clang
cxx: clang++
cxxflags: -Wno-deprecated-declarations
- name: "C++17 mode"
shortname: c++17
tag: rolling
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/linux-nondefault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,11 @@ jobs:
tag: noble
cc: clang
cxx: clang++
cxxflags: -Wno-deprecated-declarations
- name: "Clang 19"
shortname: clang19
tag: oracular
cc: clang
cxx: clang++
cxxflags: -Wno-deprecated-declarations
- name: "C++17 mode"
shortname: c++17
tag: rolling
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ jobs:
tag: noble
cc: clang
cxx: clang++
cxxflags: -Wno-deprecated-declarations
tests: true
- name: "Clang 19"
shortname: clang19
tag: oracular
cc: clang
cxx: clang++
cxxflags: -Wno-deprecated-declarations
tests: true
- name: "C++17 mode"
shortname: c++17
Expand Down
14 changes: 4 additions & 10 deletions ql/currency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,10 @@ namespace QuantLib {
const std::string& formatString,
const Currency& triangulationCurrency,
const std::set<std::string>& minorUnitCodes)
: data_(ext::make_shared<Currency::Data>(name,
code,
numericCode,
symbol,
fractionSymbol,
fractionsPerUnit,
rounding,
formatString,
triangulationCurrency,
minorUnitCodes)) {}
: Currency(name, code, numericCode, symbol, fractionSymbol, fractionsPerUnit,
rounding, triangulationCurrency, minorUnitCodes) {
data_->formatString = formatString;
}

QL_DEPRECATED_ENABLE_WARNING

Expand Down
2 changes: 1 addition & 1 deletion ql/currency.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ namespace QuantLib {
/*! \deprecated Use the constructor without formatString.
Deprecated in version 1.33.
*/
QL_DEPRECATED
[[deprecated("Use the constructor without formatString")]]
Data(std::string name,
std::string code,
Integer numericCode,
Expand Down

0 comments on commit 460a948

Please sign in to comment.