https://www.ultimatepp.org/redmine/https://www.ultimatepp.org/redmine/redmine/favicon.ico2012-05-01T14:32:03ZRedmineU++ - Task #279: Core/Value.hpp:177:9: warning: unused variable ‘t’https://www.ultimatepp.org/redmine/issues/279?journal_id=5382012-05-01T14:32:03ZMiroslav Fidlercxl@ntllib.org
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Immediate</i></li></ul> U++ - Task #279: Core/Value.hpp:177:9: warning: unused variable ‘t’https://www.ultimatepp.org/redmine/issues/279?journal_id=5602012-05-12T11:32:13ZMiroslav Fidlercxl@ntllib.org
<ul><li><strong>Assignee</strong> changed from <i>Miroslav Fidler</i> to <i>Massimo Del Fedele</i></li></ul><p>Weird:</p>
<pre>
template <class T>
void Value::SvoRegister(const char *name)
{
dword t = GetValueTypeNo<T>();
ASSERT(t < 255);
SVO_FN(sval, T)
svo[t] = &sval;
AddName(t, name);
}
</pre>
<p>I would swear it is used in optimal mode too?!</p> U++ - Task #279: Core/Value.hpp:177:9: warning: unused variable ‘t’https://www.ultimatepp.org/redmine/issues/279?journal_id=5612012-05-12T11:34:01ZMiroslav Fidlercxl@ntllib.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Ready for QA</i></li></ul><p>Sry, wrong line. Fixed.</p> U++ - Task #279: Core/Value.hpp:177:9: warning: unused variable ‘t’https://www.ultimatepp.org/redmine/issues/279?journal_id=5702012-05-14T16:46:47ZMassimo Del Fedelemax@veneto.com
<ul><li><strong>Status</strong> changed from <i>Ready for QA</i> to <i>In Progress</i></li><li><strong>Assignee</strong> changed from <i>Massimo Del Fedele</i> to <i>Miroslav Fidler</i></li></ul><p>Sorry, at least here :</p>
<pre>
template <class T>
T& Value::GetSmall() const
{
dword t = GetValueTypeNo<T>();
ASSERT(t < 255 && (t == STRING_V ? IsString() : Is((byte)t)));
return *(T*)&data;
}
</pre>
<p>the problem is still present.<br />I recompiled it with an #ifdef and there are no warnings anymore.</p> U++ - Task #279: Core/Value.hpp:177:9: warning: unused variable ‘t’https://www.ultimatepp.org/redmine/issues/279?journal_id=5712012-05-14T18:27:03ZMiroslav Fidlercxl@ntllib.org
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Ready for QA</i></li><li><strong>Assignee</strong> changed from <i>Miroslav Fidler</i> to <i>Massimo Del Fedele</i></li></ul><p>And now?</p> U++ - Task #279: Core/Value.hpp:177:9: warning: unused variable ‘t’https://www.ultimatepp.org/redmine/issues/279?journal_id=5732012-05-14T20:47:04ZMassimo Del Fedelemax@veneto.com
<ul><li><strong>Status</strong> changed from <i>Ready for QA</i> to <i>Approved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>It's ok now.</p>
<p>Btw, I don't get any mail from redmine.... I keep missing your updates.</p>
<p>Max</p>