Hello Mateusz, could you please re-attach, or simply inline patch to this mail?
Thanks in advance, Kai 2017-04-05 14:08 GMT+02:00 Mateusz Mikuła <mati...@gmail.com>: > Ping, looks like it slipped unnoticed. > > > > > ------ Original Message ------ > Subject: [PATCH] stralign: cast ua_wcschr and ua_wcsrchr returns to > wchar_t * > Date: Mon, 3 Apr 2017 14:01:00 +0200 > To: Mingw-w64-public > From: Mateusz Mikuła >> >> I made another attempt to build libc++ with mingw-w64 and stumbled >> across Clang errors: >> >> |D:\msys64\mingw64\x86_64-w64-mingw32\include\windows.h:114: >> D:\msys64\mingw64\x86_64-w64-mingw32\include\stralign.h:121:37: error: >> cannot initialize return object of type 'PUWSTR_C' (aka 'wchar_t *') >> with an rvalue of type 'const wchar_t *' if(WSTR_ALIGNED(String)) >> return wcschr((PCWSTR)String,Character); >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> D:\msys64\mingw64\x86_64-w64-mingw32\include\stralign.h:125:37: error: >> cannot initialize return object of type 'PUWSTR_C' (aka 'wchar_t *') >> with an rvalue of type 'const wchar_t *' if(WSTR_ALIGNED(String)) >> return wcsrchr((PCWSTR)String,Character); You can see here function >> that should return PUWSTR_C (aka ||'wchar_t *') returns ||'const wchar_t *|' >> instead. >> >> This patch solved error for Clang and caused no errors or warning for GCC. > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public