【cppcheck】error: Memory is allocated but not initialized: xxx

はじめに C++の静的解析ツール「cppcheck」でソースコードを静的解析した場合に、以下の警告がでることがあります。 error: Memory is allocated but not initialized: xxx cppcheckのバージョン v1.66 サンプルプログラム 以下のソースプログラムを解析にかけると表示されます。 #include "stdafx.h" #include <windows.h> #define _</windows.h>…