rath3t / dune-iga

A DUNE grid implementation with NURBS as ansatz functions.
https://rath3t.github.io/dune-iga-doc/
Other
1 stars 1 forks source link

Clang warning: unsequenced modification and access to 'i' #20

Closed rath3t closed 11 months ago

rath3t commented 1 year ago

In /dune/dune-iga/dune/iga/trim/subgrid.hh:78 clang throws a warning

warning: unsequenced modification and access to 'i' [-Wunsequenced], since in

newLoop.emplace_back(geometry, Utilities::Domain<double>{uVec[i], uVec[++i]});

the arguments on the right can be evaluated in different orders, which can lead to undefiend behaviour