windows/syscall: fix unused function warning

pull/3669/head
Victor Julien 8 years ago
parent 759040a75a
commit d143ac6e89

@ -209,12 +209,6 @@ const char *Win32GetErrorString(DWORD error_code, HMODULE ext_module)
}
#ifdef DEBUG
#define Win32HResultLogDebug(hr) \
_Win32HResultLog(SC_LOG_DEBUG, (hr), __FILE__, __FUNCTION__, __LINE__)
#else
#define Win32HResultLogDebug(hr)
#endif /* DEBUG */
/**
* \brief log an HRESULT
*/
@ -227,6 +221,12 @@ static void _Win32HResultLog(SCLogLevel level, HRESULT hr, const char *file,
LocalFree((LPVOID)err_str);
}
#define Win32HResultLogDebug(hr) \
_Win32HResultLog(SC_LOG_DEBUG, (hr), __FILE__, __FUNCTION__, __LINE__)
#else
#define Win32HResultLogDebug(hr)
#endif /* DEBUG */
/**
* \brief log a WBEM error
*/

Loading…
Cancel
Save