[clang-tidy] cppcoreguidelines-init-variables

This commit is contained in:
akallabeth
2024-01-23 16:49:54 +01:00
committed by akallabeth
parent 207def5c56
commit 0ba995655d
548 changed files with 9745 additions and 9771 deletions

View File

@@ -13,7 +13,7 @@ static INLINE UINT32 lzcnt_s(UINT32 x)
if (!g_LZCNT)
{
UINT32 y;
UINT32 y = 0;
int n = 32;
y = x >> 16;
if (y != 0)

View File

@@ -22,7 +22,7 @@
static BOOL test_co_errors(void)
{
size_t x;
size_t x = 0;
const LONG should[] = {
(LONG)0x80004006l, (LONG)0x80004007l, (LONG)0x80004008l, (LONG)0x80004009l,
(LONG)0x8000400Al, (LONG)0x8000400Bl, (LONG)0x8000400Cl, (LONG)0x8000400Dl,
@@ -142,7 +142,7 @@ static BOOL TestSucceededFailedMacros(HRESULT hr, char* sym, BOOL isSuccess)
int TestTypes(int argc, char* argv[])
{
BOOL ok = TRUE;
HRESULT hr;
HRESULT hr = 0;
WINPR_UNUSED(argc);
WINPR_UNUSED(argv);