diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-25 22:25:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-25 22:25:26 +0200 |
commit | 50ffd8f25b9e36c9d65cd7201f117162f1f1b18f (patch) | |
tree | d58afdb0c3cc4b82e14f74773d184af27157c8a3 | |
parent | ed22a75d665f030dcfcfc9b52764ce0e991c9169 (diff) |
Suppress warnings1.5.0
-rw-r--r-- | odb/mysql/query.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odb/mysql/query.hxx b/odb/mysql/query.hxx index ca95f1c..8f2737b 100644 --- a/odb/mysql/query.hxx +++ b/odb/mysql/query.hxx @@ -1373,7 +1373,7 @@ namespace odb init (const T& v) { bool dummy; - std::size_t size, cap (buffer_.capacity ()); + std::size_t size (0), cap (buffer_.capacity ()); value_traits<T, id_decimal>::set_image (buffer_, size, dummy, v); size_ = static_cast<unsigned long> (size); return cap != buffer_.capacity (); @@ -1583,7 +1583,7 @@ namespace odb init (const T& v) { bool dummy; - std::size_t size, cap (buffer_.capacity ()); + std::size_t size (0), cap (buffer_.capacity ()); value_traits<T, id_string>::set_image (buffer_, size, dummy, v); size_ = static_cast<unsigned long> (size); return cap != buffer_.capacity (); @@ -1622,7 +1622,7 @@ namespace odb init (const T& v) { bool dummy; - std::size_t size, cap (buffer_.capacity ()); + std::size_t size (0), cap (buffer_.capacity ()); value_traits<T, id_blob>::set_image (buffer_, size, dummy, v); size_ = static_cast<unsigned long> (size); return cap != buffer_.capacity (); @@ -1662,7 +1662,7 @@ namespace odb init (const T& v) { bool dummy; - std::size_t size; + std::size_t size (0); value_traits<T, id_bit>::set_image ( buffer_, sizeof (buffer_), size, dummy, v); size_ = static_cast<unsigned long> (size); @@ -1738,7 +1738,7 @@ namespace odb init (const T& v) { bool dummy; - std::size_t size, cap (buffer_.capacity ()); + std::size_t size (0), cap (buffer_.capacity ()); value_traits<T, id_set>::set_image (buffer_, size, dummy, v); size_ = static_cast<unsigned long> (size); return cap != buffer_.capacity (); |