aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-13 06:20:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-13 06:20:26 +0200
commitc3c82a4c2ed3d82bb23eef9cd1aee181756d7015 (patch)
tree0d6d78d94373519c728063c761936dd4d149be4a
parentc2082e5566915912849381cfefddc8ebc19eb11a (diff)
Suppress warning in empty for-loop2.2.0
-rw-r--r--odb/mssql/traits.cxx4
1 files 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;