Re: GCC 4.6 related common package rebuild failures (was Re: mass rebuild status)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux