[SSSD] [PATCH] Fix warning: for loop has empty body

Pavel Březina pbrezina at redhat.com
Mon Jan 12 12:17:28 UTC 2015


On 01/10/2015 06:08 PM, Lukas Slebodnik wrote:
> ehlo,
>
> The attached patch fixes clang warning -Wempty-body.
> The other alternative is to put put the semicolon on a separate line to silence
> this warning as it was suggested by compiler.
>
> LS

If we are going to fix this warning, I would prefer this way:

for (...) {
     /* no op */
}



More information about the sssd-devel mailing list