qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 00/57] target-i386 eflags cleanup and bmi/adx ex


From: Jay Foad
Subject: Re: [Qemu-devel] [PATCH 00/57] target-i386 eflags cleanup and bmi/adx extensions
Date: Mon, 28 Jan 2013 10:09:39 +0000

> Checkpatch doesn't work well with the pattern
>
> #ifdef SOMETHING
>     if (foo) {
>         bar();
>     } else
> #endif
>     {
>         baz1();
>         baz2();
>     }
>
> Which is exactly the case for all three errors reported in this series.
> I know of no other good way to arrange this pattern.

    if (0) {
#ifdef SOMETHING
    } else if (foo) {
        bar();
#endif
    } else {
        baz1();
        baz2();
    }

Jay.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]