[email protected] wrote:
Citerar Alexey Dobriyan <[email protected]>:
Please, show compiler flag[s] to enable warning[s] from gcc about
_Bool foo = 42;
Until you do that the whole activity is moot.
On it...
Would not the compiler treat 42 as a Boolean expression (as opposed to
an integer expression) that evaluates to true and set foo accordingly.
I.e. there's only a problem here if foo ends up with the value 42
instead of the value true.
Peter
--
Peter Williams [email protected]
"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]