Skip to content

Commit

Permalink
Remove unneeded pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jan 30, 2021
1 parent a44b404 commit ca3fe3a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 27 deletions.
9 changes: 1 addition & 8 deletions ql/math/integrals/discreteintegrals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,13 @@
*/

#include <ql/math/integrals/discreteintegrals.hpp>

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++11-extensions"
#endif
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/sum.hpp>
#if defined(__clang__)
#pragma clang diagnostic pop
#endif

using namespace boost::accumulators;

namespace QuantLib {

Real DiscreteTrapezoidIntegral::operator()(
const Array& x, const Array& f) const {

Expand Down
8 changes: 0 additions & 8 deletions ql/math/statistics/incrementalstatistics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@

#include <ql/utilities/null.hpp>
#include <ql/errors.hpp>

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++11-extensions"
#endif
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/accumulators/statistics/count.hpp>
Expand All @@ -46,9 +41,6 @@
#include <boost/accumulators/statistics/weighted_skewness.hpp>
#include <boost/accumulators/statistics/weighted_kurtosis.hpp>
#include <boost/accumulators/statistics/weighted_moment.hpp>
#if defined(__clang__)
#pragma clang diagnostic pop
#endif

namespace QuantLib {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,9 @@
#include <ql/math/integrals/gausslobattointegral.hpp>
#include <ql/termstructures/volatility/equityfx/localvoltermstructure.hpp>
#include <ql/methods/finitedifferences/meshers/fdmhestonvariancemesher.hpp>

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++11-extensions"
#endif
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/mean.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#if defined(__clang__)
#pragma clang diagnostic pop
#endif

#include <set>
#include <algorithm>

Expand Down
4 changes: 2 additions & 2 deletions ql/termstructures/inflationtermstructure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ namespace QuantLib {
#endif
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++11-extensions"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
#if defined(QL_PATCH_MSVC)
#pragma warning(push)
Expand Down Expand Up @@ -340,7 +340,7 @@ namespace QuantLib {
#endif
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++11-extensions"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
#if defined(QL_PATCH_MSVC)
#pragma warning(push)
Expand Down

0 comments on commit ca3fe3a

Please sign in to comment.