Skip to content

FTBFS with DEBUG_TRACE enabled due to a reference to a non-existent variable

Submitted by David H. Gutteridge

Assigned to Olivier Fourdan @olivier

Link to original bug (#16329)

Description

While trying to build xfwm4 with DEBUG_TRACE enabled, I hit the following issue:

  CC       xfwm4-misc.o
In file included from /home/disciple/pkgsrc/wm/xfce4-wm/work/.buildlink/include/xfce4/libxfce4util/libxfce4util.h:29:0,
                 from misc.c:39:
misc.c: In function 'getMouseXY':
misc.c:54:30: error: 'w' undeclared (first use in this function)
     TRACE ("window (0x%lx)", w);
                              ^

There is no "w" variable in that function; I think this is just a copy/pasto from somewhere else in the code. I've simply commented it out in my tree.

(That's the only issue I encountered when DEBUG_TRACE is enabled. Otherwise, it compiles and logs output as expected.)

Version: 4.14.0

Edited by Yousuf Philips