Open midwan opened 1 year ago
In cfgfile.cpp, function:
cfgfile.cpp
static TCHAR *cfgfile_option_find_it(const TCHAR *s, const TCHAR *option, bool checkequals) { TCHAR buf[MAX_DPATH];
I'm seeing a compiler warning: warning: function may return address of local variable [-Wreturn-local-addr]
warning: function may return address of local variable [-Wreturn-local-addr]
Should that variable be marked as static perhaps?
static
It does not return local variable, it always returns newly allocated string.
In
cfgfile.cpp
, function:I'm seeing a compiler warning:
warning: function may return address of local variable [-Wreturn-local-addr]
Should that variable be marked as
static
perhaps?