diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-05-28 13:21:37 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-05-28 13:21:37 (GMT) |
commit | 8cb6645ad8779c7066a9a31907004506b595aab2 (patch) | |
tree | 0fb33f0cf62d41c4532068d38b96600d2a10474a /Source/cmDynamicLoader.cxx | |
parent | 64db4e2cd8706ea91a8598145cff5d7607e3bfd2 (diff) | |
download | CMake-8cb6645ad8779c7066a9a31907004506b595aab2.zip CMake-8cb6645ad8779c7066a9a31907004506b595aab2.tar.gz CMake-8cb6645ad8779c7066a9a31907004506b595aab2.tar.bz2 |
Remove some borland 6 warnings
Diffstat (limited to 'Source/cmDynamicLoader.cxx')
-rw-r--r-- | Source/cmDynamicLoader.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx index 8eff2e7..d9cd119 100644 --- a/Source/cmDynamicLoader.cxx +++ b/Source/cmDynamicLoader.cxx @@ -259,15 +259,14 @@ int cmDynamicLoader::CloseLibrary(cmLibHandle lib) cmDynamicLoaderFunction cmDynamicLoader::GetSymbolAddress(cmLibHandle lib, const char* sym) { - void* result = 0; #ifdef UNICODE - wchar_t *wsym = new wchar_t [mbstowcs(NULL, sym, 32000)]; - mbstowcs(wsym, sym, 32000); - void *ret = GetProcAddress(lib, wsym); - delete [] wsym; - result = ret; + wchar_t *wsym = new wchar_t [mbstowcs(NULL, sym, 32000)]; + mbstowcs(wsym, sym, 32000); + void *ret = GetProcAddress(lib, wsym); + delete [] wsym; + void* result = ret; #else - result = GetProcAddress(lib, sym); + void* result = GetProcAddress(lib, sym); #endif // Hack to cast pointer-to-data to pointer-to-function. return *reinterpret_cast<cmDynamicLoaderFunction*>(&result); |