Skip to content

Commit c16f131

Browse files
committed
WIP: some new warnings
1 parent 407a903 commit c16f131

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/homme/src/share/compose/cedr_kokkos.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ using Unmanaged =
7676
MemoryTraitsMask<View>::value |
7777
// ... |ed with the one we want, whether or not it's
7878
// already there.
79-
Kokkos::Unmanaged> >;
79+
unsigned(Kokkos::Unmanaged)> >;
8080

8181
template <typename View>
8282
using Const = typename View::const_type;

components/homme/src/share/compose/compose_slmm_islmpi_pack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct Accum {
1919
Int mos, sendcount, xos, qos;
2020
SLMM_KIF Accum () : mos(0), sendcount(0), xos(0), qos(0) {}
2121
SLMM_KIF void operator+= (const volatile Accum& o) volatile {
22-
mos += o.mos; sendcount += o.sendcount; xos += o.xos; qos += o.qos;
22+
mos = mos + o.mos; sendcount = sendcount + o.sendcount; xos = xos + o.xos; qos = qos + o.qos;
2323
}
2424
};
2525

components/homme/src/share/compose/compose_slmm_islmpi_q.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ struct Accum {
276276
Int cnt, qcnt, qos, xos;
277277
SLMM_KIF Accum () : cnt(0), qcnt(0), qos(0), xos(0) {}
278278
SLMM_KIF void operator+= (const volatile Accum& o) volatile {
279-
cnt += o.cnt; qcnt += o.qcnt; qos += o.qos; xos += o.xos;
279+
cnt = cnt + o.cnt; qcnt = qcnt + o.qcnt; qos = qos + o.qos; xos = xos + o.xos;
280280
}
281281
};
282282

0 commit comments

Comments
 (0)