The main issue of the previous fix to the problem (by Arnaud G) was
that it documented the commit in the source, explaining why it was
mandatory in a C comment. That's source bloat in my mind:
git blame+git log can give you the same information if you need it.
So I figured out an excuse to recommit on top of it, and here we go :)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8512
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
static int trace_category(lua_State * L)
{
static int trace_category(lua_State * L)
{
- /* _XBT_GNUC_UNUSED to pass compilation in paranoid mode without tracing
- * support, where TRACE_category(x) is preprocessed to nothing. */
- const char *category _XBT_GNUC_UNUSED = luaL_checkstring(L, 1);
- TRACE_category(category);
+ TRACE_category(luaL_checkstring(L, 1));
return 1;
}
static int trace_set_task_category(lua_State *L)
{
return 1;
}
static int trace_set_task_category(lua_State *L)
{
- /* _XBT_GNUC_UNUSED as above */
- m_task_t tk _XBT_GNUC_UNUSED = checkTask(L, -2);
- const char *category _XBT_GNUC_UNUSED = luaL_checkstring(L, -1);
- TRACE_msg_set_task_category(tk, category);
+ TRACE_msg_set_task_category(checkTask(L, -2), luaL_checkstring(L, -1));