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
commit7e88b0a80618848d3a3c5f6cad886c8b7785787d (patch)
tree6a026d7f9d1e2fccc42654f0cdc3e97915b31202
parent4b4cea7da1fbfd0ea90124932450fbde53a84c2e (diff)
Suppress warning in empty for-loop2.2.0
-rw-r--r--odb/sqlite/traits.cxx4
1 files 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;