diff options
author | Bernard Normier <bernard@zeroc.com> | 2012-12-26 19:45:20 -0500 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2012-12-26 19:45:20 -0500 |
commit | 4e404c3bc3e148f056459dd02ebb811c5f37abac (patch) | |
tree | dfdc221b8bee33b556d17c09814591bcc95db7ef /cpp/src/Ice/Service.cpp | |
parent | compact ID support for scripting languages (diff) | |
download | ice-4e404c3bc3e148f056459dd02ebb811c5f37abac.tar.bz2 ice-4e404c3bc3e148f056459dd02ebb811c5f37abac.tar.xz ice-4e404c3bc3e148f056459dd02ebb811c5f37abac.zip |
Fixed mingw warnings and added -Werror to mingw build
Diffstat (limited to 'cpp/src/Ice/Service.cpp')
-rw-r--r-- | cpp/src/Ice/Service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/Service.cpp b/cpp/src/Ice/Service.cpp index 140eb8759f4..df2681fb02b 100644 --- a/cpp/src/Ice/Service.cpp +++ b/cpp/src/Ice/Service.cpp @@ -230,7 +230,7 @@ public: DWORD d; LONG err = RegCreateKeyExW(HKEY_LOCAL_MACHINE, IceUtil::stringToWstring(nativeToUTF8(stringConverter, createKey(source))).c_str(), - 0, L"REG_SZ", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, 0, &hKey, &d); + 0, const_cast<wchar_t*>(L"REG_SZ"), REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, 0, &hKey, &d); if(err != ERROR_SUCCESS) { |