[Spice-devel] [PATCH 7/9] common: add ring_get_length() for debugging purposes

Marc-André Lureau mlureau at redhat.com
Tue Jan 25 11:33:34 PST 2011


Hi

> > +static inline unsigned int ring_get_length(Ring *ring)
> 
> This won't compile if no one uses it - so you probably want to make
> it non static (or do a hack by doing (void)ring_get_length somewhere).

Correct, if you intend to do (gdb) call ring_get_length(ring). But I was using it in some temporary SPICE_DEBUG code.


-- 
Marc-André Lureau


More information about the Spice-devel mailing list