And when linking (despite the Cxxxx code, I use /LTCG) I get this warning:
...\lua-5.2.2\src\loadlib.c(187) : warning C4700: uninitialized local
variable 'buffer' used
Let us see:
char buffer[128];
if (FormatMessageA(FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, error, 0, buffer, sizeof(buffer)/sizeof(char), NULL))
lua_pushstring(L, buffer);
MS documentation says 'buffer' is an _Out_ parameter [1]. What can we do?
[1] http://msdn.microsoft.com/en-us/library/windows/desktop/ms679351%28v=vs.85%29.aspx