lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 03/09/2010, at 8:45 AM, Nick Gammon wrote:
> 
> I downloaded luacom today (version 1.3) and when compiling I got this warning:
> 
> tLuaControl.cpp(756) : warning C4700: local variable 'hr' used without having been initialized
> 

Also I note that a Nick Gammon (that is, me) reported this same thing almost exactly 4 years ago (Sat, 2 Sep 2006).

I also note that in some copies of the source that I Googled for (however not the reference source, or I would have noticed) the problem has been "fixed" by adding in a "fail" case like this:

// FIX-TODO!!! hr is undefined here.
// http://lua-users.org/lists/lua-l/2006-09/msg00030.html
#pragma message("FIX - luacom bug http://lua-users.org/lists/lua-l/2006-09/msg00030.html";)
FAIL("FIX - luacom bug lua-l/2006-09/msg00030.html");


Is that then the recommended way of leaving it?

- Nick