From 7e88b0a80618848d3a3c5f6cad886c8b7785787d 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/sqlite/traits.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odb/sqlite/traits.cxx b/odb/sqlite/traits.cxx index d3542d2..dae008c 100644 --- a/odb/sqlite/traits.cxx +++ b/odb/sqlite/traits.cxx @@ -80,7 +80,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); @@ -159,7 +159,7 @@ namespace odb // Figure out the length. We cannot use wcslen since it may // not be 0-terminated (wcsnlen is not standard). // - for (n = 0; n != N && v[n] != L'\0'; ++n); + for (n = 0; n != N && v[n] != L'\0'; ++n) ; n *= 2; -- cgit v1.1