From c959c945cc0930623fbd0960fe6bd2f072dcbb5d 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/mysql/traits.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odb/mysql/traits.cxx b/odb/mysql/traits.cxx index 93b591d..7a5f39e 100644 --- a/odb/mysql/traits.cxx +++ b/odb/mysql/traits.cxx @@ -88,7 +88,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