Displaying 2 results from an estimated 2 matches for "7a84dc9b".
Did you mean:
7a74c9b
2016 Mar 29
0
-Wswitch-bool?
On 3/29/2016 11:44 AM, Max Ruttenberg via llvm-dev wrote:
>
> I've looked online and saw some post mentioning that this warning is named
> "switch-bool" but clang doesn't seem to know that.
You're probably using an old clang. There is an option
"-Wno-switch-bool" that turns this warning off, but if your clang does
not understand it, there may be no other
2016 Mar 29
2
-Wswitch-bool?
All,
If I have source file like this:
/**********************************/
#include <stdbool.h>
#include <stdio.h>
int main(int argc, char* argv[])
{
switch(argc == 2)
{
case true:
puts("argc == 2");
break;
case false:
puts("argc != 2");
break;
}
return 0;
}
/**********************************/
When I compile this source file with