From f16e6422ee0aa0ecf98ef36e6605dc36791e0675 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jul 2011 22:48:50 +0200 Subject: Suppress warnings --- odb/pgsql/query.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/odb/pgsql/query.hxx b/odb/pgsql/query.hxx index cde68d8..9e0a7d1 100644 --- a/odb/pgsql/query.hxx +++ b/odb/pgsql/query.hxx @@ -1303,7 +1303,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::set_image (buffer_, size, dummy, v); size_ = size; return cap != buffer_.capacity (); @@ -1468,7 +1468,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::set_image (buffer_, size, dummy, v); size_ = size; return cap != buffer_.capacity (); @@ -1513,7 +1513,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::set_image (buffer_, size, dummy, v); size_ = size; return cap != buffer_.capacity (); @@ -1552,7 +1552,7 @@ namespace odb init (const T& v) { bool dummy; - std::size_t size, cap (buffer_.capacity ()); + std::size_t size (0), cap (buffer_.capacity ()); // NOTE: Using a fixed size bit type in queries requires // alternative image buffer type support. @@ -1602,7 +1602,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::set_image (buffer_, size, dummy, v); size_ = size; return cap != buffer_.capacity (); -- cgit v1.1