Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH 3/5]acpi:glue.c Fix warning: variable 'ret' set but not used | Date | Fri, 02 Jul 2010 01:10:45 +0100 |
| |
Justin P. Mattock <justinmattock@gmail.com> wrote:
> a bit confused with the whole: "?:" though > *condition ? value if true : value if false* (what if both are true > what if both are false or does it matter?)
If you say:
cond ?: false_value
then you'll get cond if cond is non-zero and false_value if it isn't.
I suspect it's a gccism.
David
| |