aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-25 22:48:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-25 22:48:50 +0200
commitf16e6422ee0aa0ecf98ef36e6605dc36791e0675 (patch)
tree692af6f1b0311e96eced0ae16bfdd6f1a735dcd0
parentb9ebf41d9c7fbc9d8ef3b9a73abac4148e5b106a (diff)
Suppress warnings1.5.0
-rw-r--r--odb/pgsql/query.hxx10
1 files 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<T, id_numeric>::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<T, id_string>::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<T, id_bytea>::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<T, id_varbit>::set_image (buffer_, size, dummy, v);
size_ = size;
return cap != buffer_.capacity ();