From 2ae2b12c08f4b25a1228f2731b0bf7f497e36d7f Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 21 May 2015 10:22:47 +0000 Subject: [PATCH] fix --- Common/OS.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Common/OS.cpp b/Common/OS.cpp index ecb277ec1e..8bba8ce579 100644 --- a/Common/OS.cpp +++ b/Common/OS.cpp @@ -208,7 +208,7 @@ static unsigned int utf8FromUtf16(char* dst, unsigned int dstlen, static wchar_t *wbuf[3] = {NULL, NULL, NULL}; -static unsigned int setwbuf(int i, const char *f) +static void setwbuf(int i, const char *f) { // all strings in Gmsh are supposed to be UTF8-encoded, which is natively // supported by Mac and Linux. Windows does not support UTF-8, but UTF-16 @@ -219,7 +219,6 @@ static unsigned int setwbuf(int i, const char *f) wbuf[i] = (wchar_t*)realloc(wbuf[i], sizeof(wchar_t)*wn); wn = utf8toUtf16(f, (unsigned) l, (unsigned short *)wbuf[i], wn); wbuf[i][wn] = 0; - return wn; } #endif -- GitLab