Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 556 Bytes

File metadata and controls

26 lines (21 loc) · 556 Bytes
description Learn more about: C26494 VAR_USE_BEFORE_INIT
title C26494
ms.date 03/22/2018
ms.topic reference
f1_keywords
C26494
helpviewer_keywords
C26494

C26494 VAR_USE_BEFORE_INIT

Variable '%variable%' is uninitialized. Always initialize an object.

See also

C++ Core Guidelines Type.5.

Example

#include <iostream>
void function()
{
    int myVal; // C26494, Variable is uninitialized
    std::cout << myVal; // C6001
}