SciTools Understand warning fixes

This commit is contained in:
Pavel Kirienko
2014-04-18 16:32:20 +04:00
parent b7cf443418
commit 9a04bc6dbc
6 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -422,7 +422,7 @@ class UAVCAN_EXPORT Array : public ArrayImpl<T, ArrayMode, MaxSize_>
if (on_diagonal)
{
const SizeType source_index = (this->size() == 1) ? 0 : (index / Width);
*it++ = at(source_index);
*it++ = this->at(source_index);
}
else
{
@@ -184,10 +184,11 @@ private:
template <unsigned BitLen, CastMode CastMode>
struct UAVCAN_EXPORT YamlStreamer<FloatSpec<BitLen, CastMode> >
class UAVCAN_EXPORT YamlStreamer<FloatSpec<BitLen, CastMode> >
{
typedef typename FloatSpec<BitLen, CastMode>::StorageType StorageType;
public:
template <typename Stream>
static void stream(Stream& s, const StorageType value, int)
{
@@ -134,11 +134,12 @@ struct IsIntegerSpec<IntegerSpec<BitLen, Signedness, CastMode> >
template <unsigned BitLen, Signedness Signedness, CastMode CastMode>
struct UAVCAN_EXPORT YamlStreamer<IntegerSpec<BitLen, Signedness, CastMode> >
class UAVCAN_EXPORT YamlStreamer<IntegerSpec<BitLen, Signedness, CastMode> >
{
typedef IntegerSpec<BitLen, Signedness, CastMode> RawType;
typedef typename RawType::StorageType StorageType;
public:
template <typename Stream>
static void stream(Stream& s, const StorageType value, int)
{
@@ -65,6 +65,6 @@ public:
template <typename T>
struct UAVCAN_EXPORT YamlStreamer;
class UAVCAN_EXPORT YamlStreamer;
}