summaryrefslogtreecommitdiffstats
path: root/src/libs/7zip/unix/CPP/Common/MyString.cpp
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@digia.com>2012-10-30 12:25:15 +0100
committerKarsten Heimrich <karsten.heimrich@digia.com>2012-10-31 12:24:59 +0100
commit90ecea22156bd5e2b8c360b6a13cc7f4d98d705d (patch)
treeddf61ef9400ecb3514c022abb2bdc9e6473e8d1d /src/libs/7zip/unix/CPP/Common/MyString.cpp
parentdf3f9838f58b8bca182539eb392ba128e0c511c0 (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.cpp8
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;
}