From 9a8e7d08c12b51407b8aa710fd4ca8cdf8842669 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Feb 2013 06:20:26 +0200 Subject: Suppress warning in empty for-loop --- odb/pgsql/traits.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb') diff --git a/odb/pgsql/traits.cxx b/odb/pgsql/traits.cxx index 79188d1..8ce2378 100644 --- a/odb/pgsql/traits.cxx +++ b/odb/pgsql/traits.cxx @@ -86,7 +86,7 @@ namespace odb // Figure out the length. We cannot use strlen since it may // not be 0-terminated (strnlen is not standard). // - for (n = 0; n != N && v[n] != '\0'; ++n); + for (n = 0; n != N && v[n] != '\0'; ++n) ; if (n > b.capacity ()) b.capacity (n); -- cgit v1.1