Subject: [Boost-bugs] [Boost C++ Libraries] #12172: Warning in ublas/matrix_expression.hpp from GCC 6.1.0 -Wmisleading-indentation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-02 16:59:38
#12172: Warning in ublas/matrix_expression.hpp from GCC 6.1.0 -Wmisleading-
indentation
-------------------------------------+---------------------
Reporter: lopresti@⦠| Owner: guwi17
Type: Bugs | Status: new
Milestone: To Be Determined | Component: uBLAS
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+---------------------
When I compile with "-Wall -Wextra -Werror", I get:
.../boost/numeric/ublas/matrix_expression.hpp:2224:17: error: this âifâ
clause does not guard... [-Werror=misleading-indentation]
if (it2_ != it2_end_)
^~
.../boost/numeric/ublas/matrix_expression.hpp:2227:21: note: ...this
statement, but the latter is misleadingly indented as if it is guarded by
the âifâ
if (it2_ != it2_end_) {
This appears to be a valid warning, and lines 2227 and 2228 should be un-
indented by one level. Assuming this is not a real bug, that is.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12172> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC