diff --git a/bindings/c/fdb_c.cpp b/bindings/c/fdb_c.cpp index ad14b3d819..20b3e7da5b 100644 --- a/bindings/c/fdb_c.cpp +++ b/bindings/c/fdb_c.cpp @@ -129,7 +129,7 @@ fdb_error_t fdb_stop_network() { extern "C" DLLEXPORT fdb_error_t fdb_add_network_thread_completion_hook(void (*hook)(void*), void *hook_parameter) { - CATCH_AND_RETURN( API->addNetworkThreadCompletionHook(hook, hook_parameter); ); + CATCH_AND_RETURN( API->addNetworkThreadCompletionHook(hook, hook_parameter); ); } diff --git a/fdbrpc/Platform.cpp b/fdbrpc/Platform.cpp index 91db66245d..98efa4282a 100644 --- a/fdbrpc/Platform.cpp +++ b/fdbrpc/Platform.cpp @@ -132,15 +132,15 @@ std::string getDefaultConfigPath() { bool isSse42Supported() { #if defined(_WIN32) - int info[4]; - __cpuid(info, 1); - return (info[2] & (1 << 20)) != 0; + int info[4]; + __cpuid(info, 1); + return (info[2] & (1 << 20)) != 0; #elif defined(__unixish__) - uint32_t eax, ebx, ecx, edx, level = 1, count = 0; - __cpuid_count(level, count, eax, ebx, ecx, edx); - return ((ecx >> 20) & 1) != 0; + uint32_t eax, ebx, ecx, edx, level = 1, count = 0; + __cpuid_count(level, count, eax, ebx, ecx, edx); + return ((ecx >> 20) & 1) != 0; #else - #error Port me! + #error Port me! #endif } diff --git a/flow/Platform.cpp b/flow/Platform.cpp index f3d70646eb..76f972baaa 100644 --- a/flow/Platform.cpp +++ b/flow/Platform.cpp @@ -1349,12 +1349,12 @@ void getLocalTime(const time_t *timep, struct tm *result) { #ifdef _WIN32 if(localtime_s(result, timep) != 0) { TraceEvent(SevError, "GetLocalTimeError").GetLastError(); - throw platform_error; + throw platform_error(); } #elif defined(__unixish__) if(localtime_r(timep, result) == NULL) { TraceEvent(SevError, "GetLocalTimeError").GetLastError(); - throw platform_error; + throw platform_error(); } #else #error Port me!