From c3c82a4c2ed3d82bb23eef9cd1aee181756d7015 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/mssql/traits.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odb/mssql/traits.cxx b/odb/mssql/traits.cxx index fcec95c..120c197 100644 --- a/odb/mssql/traits.cxx +++ b/odb/mssql/traits.cxx @@ -49,7 +49,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 > c) n = c; @@ -237,7 +237,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) ; if (n > c) n = c; -- cgit v1.1