lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 85076e0 7/8: Disable -Wunused-parameter warni


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 85076e0 7/8: Disable -Wunused-parameter warning in Boost.Numeric header
Date: Mon, 19 Apr 2021 20:37:30 -0400 (EDT)

branch: master
commit 85076e02249fa10cbe0ef38b20bf08f9cd7ee654
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Disable -Wunused-parameter warning in Boost.Numeric header
    
    Surprisingly, this warning wasn't given by clang without -std=c++20
    option but is (apparently correctly, because the parameter is actually
    unused) given with it.
    
    Just suppress it, as we don't care about harmless warnings in Boost
    headers in any case.
---
 expression_template_0_test.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/expression_template_0_test.cpp b/expression_template_0_test.cpp
index 005fb4b..5bff00d 100644
--- a/expression_template_0_test.cpp
+++ b/expression_template_0_test.cpp
@@ -48,6 +48,7 @@
 #   if defined LMI_CLANG
 #       pragma clang diagnostic push
 #       pragma clang diagnostic ignored "-Wdeprecated-copy"
+#       pragma clang diagnostic ignored "-Wunused-parameter"
 #   endif // defined LMI_CLANG
 #   include <boost/numeric/ublas/vector.hpp>
 #   if defined LMI_CLANG



reply via email to

[Prev in Thread] Current Thread [Next in Thread]