diff options
author | Tim Jenssen <tim.jenssen@digia.com> | 2012-10-30 12:25:15 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2012-10-31 12:24:59 +0100 |
commit | 90ecea22156bd5e2b8c360b6a13cc7f4d98d705d (patch) | |
tree | ddf61ef9400ecb3514c022abb2bdc9e6473e8d1d /src/libs/7zip/unix/CPP/Common/MyString.cpp | |
parent | df3f9838f58b8bca182539eb392ba128e0c511c0 (diff) |
reduce warnings on old gcc versions (Mac used 4.2.1)
Change-Id: Icf60411ea67900b98fec91570b8799d65751f9ee
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src/libs/7zip/unix/CPP/Common/MyString.cpp')
-rw-r--r-- | src/libs/7zip/unix/CPP/Common/MyString.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/7zip/unix/CPP/Common/MyString.cpp b/src/libs/7zip/unix/CPP/Common/MyString.cpp index 697a35558..1c145f36e 100644 --- a/src/libs/7zip/unix/CPP/Common/MyString.cpp +++ b/src/libs/7zip/unix/CPP/Common/MyString.cpp @@ -176,7 +176,7 @@ size_t wcslen(const wchar_t *s) { register const wchar_t *p; - for (p=s ; *p ; p++); + for (p=s ; *p ; p++) {} return p - s; } @@ -185,7 +185,7 @@ wchar_t *wcscpy(wchar_t * s1, const wchar_t * s2) { register wchar_t *s = s1; - while ( (*s++ = *s2++) != 0 ); + while ( (*s++ = *s2++) != 0 ) {} return s1; } @@ -194,9 +194,9 @@ wchar_t *wcscat(wchar_t * s1, const wchar_t * s2) { register wchar_t *s = s1; - while (*s++); + while (*s++) {} --s; - while ((*s++ = *s2++) != 0); + while ((*s++ = *s2++) != 0) {} return s1; } |