> -Werror=unused-but-set-variable

>                                     In some cases (often from
>       macro expansion) you just want to keep such unused variables
>       around.  You can in that case just cast them to void,
>       or add __attribute__((__unused__)) to them.

Some code employs a macro:

    #define UNUSED(a) (void)(a)

It is portable and easy to use, provides documentation, facilitates maintenance.

-- 
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to