> On 3 May 2026, at 23:29, Ranjan Maitra via users 
> <[email protected]> wrote:
> 
> Here is the error I get:
> 
> pulse_glue.c: In function ‘pulse_glue_sync_active_profile’:
> pulse_glue.c:348:12: error: variable ‘index’ set but not used 
> [-Werror=unused-but-set-variable=]
>   348 |   uint32_t index = 0;
>       |            ^~~~~
> cc1: all warnings being treated as errors
> make[2]: *** [Makefile:511: pa_applet-pulse_glue.o] Error 1
> 
> So, if I go in and remove it, I should (and do get) error because the 
> variable is used two lines down as an argument to a function. So, I do not 
> understand where this error of unused but set is coming from.

You have to remove index in 2 places:

    uint32_t index = 0;
    for (GSList *entry = as->profiles; entry;entry = g_slist_next(entry), 
++index) {

You missed the ", ++index" that is not needed.

Barry

-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to