Skip to content

Commit 24e849f

Browse files
committed
Get rid of compiler warnings.
1 parent df95b16 commit 24e849f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

core/algorithms/young_reduce.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ std::string adjform_to_string(const cadabra::yr::adjform_t& adjform, const std::
5151
return res;
5252
}
5353

54-
std::string pf_to_string (const cadabra::yr::ProjectedForm& projform, const std::vector<cadabra::nset_t::iterator>* index_map = nullptr)
54+
std::string pf_to_string (const cadabra::yr::ProjectedForm& projform, const std::vector<cadabra::nset_t::iterator>*)
5555
{
5656
std::stringstream os;
5757
int i = 0;
@@ -224,7 +224,7 @@ namespace cadabra {
224224
data[ret] += parity * kv.second;
225225
if (data[ret] == 0)
226226
data.erase(ret);
227-
} while (swaps = next_perm(perm));
227+
} while( (swaps = next_perm(perm)) );
228228
}
229229
}
230230

@@ -289,6 +289,7 @@ namespace cadabra {
289289
for (Ex::sibling_iterator beg = it.begin(), end = it.end(); beg != end; ++beg)
290290
if (has_TableauBase(beg, kernel))
291291
return true;
292+
return false;
292293
}
293294
else {
294295
return (kernel.properties.get_composite<cadabra::TableauBase>(it) != nullptr);

web2/cadabra2/source/changelog.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ <h1>Change log</h1>
1818
<a name="master"></a>
1919
<h3>github master</h3>
2020
<ul>
21+
<li>More versatile handling of <tt>Trace</tt>, including sorting
22+
using cyclic symmetry (Connor).></li>
2123
<li>Fixes for <tt>combine</tt> (Connor).</li>
2224
<li>Save command-line history (Connor).</li>
2325
<li>Make imported notebooks use the default <tt>post_process</tt> function.</li>

0 commit comments

Comments
 (0)