Building libacanberra-0.9 on OS X 10.4, I get a compiler warning:

dso.c: In function 'driver_open':
dso.c:255: warning: declaration of 'p' shadows a previous local
dso.c:178: warning: shadowed declaration is here
dso.c:257: warning: declaration of 'p' shadows a previous local
dso.c:178: warning: shadowed declaration is here

There is a variable used in driver_open:

    struct private_dso *p;

but later lines 255 and 257 (snipping out some irrelevant syntax):

        GET_FUNC_PTR(p->module, driver, "driver_play", int, (ca_context*, 
uint32_t id, ca_proplist *p, ca_finish_callback_t cb, void *userdata))
[...]
        GET_FUNC_PTR(p->module, driver, "driver_cache", int, (ca_context*, 
ca_proplist *p))

It looks like the last parameters to GET_FUNC_PTR are just a parameter
prototype for the accessed via dlsym(). Does it need actual variable
names, or are just types sufficient? Or else could some variable other
than *p be used? The actual prototypes in the various drivers' .c use
*proplist.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks

_______________________________________________
libcanberra-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss

Reply via email to