a warning about an unused function, and clean up the function at the same time.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36270
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// in case wcscmp is missing
//
static int wx_wcscmp(const wchar_t *s1, const wchar_t *s2)
{
// in case wcscmp is missing
//
static int wx_wcscmp(const wchar_t *s1, const wchar_t *s2)
{
- for (;;) {
- if (*s1 != *s2)
- return *s1 - *s2;
- if (*s1 == 0)
- break;
+ while (*s1 == *s2 && *s1 != 0)
+ {
void
StringTestCase::DoTestConversion(const char *s,
void
StringTestCase::DoTestConversion(const char *s,