Implicit conversion from const char* to bool Languages

Implicit conversion from const char* to bool

consider following code:I want compiler raise warning, when passing const char* instead of bool as parameter to function foo. But GCC implicitly converts it. I tried -Wall, -Wextra, -Wpedantic, nothing works. Is there any flag that, could catch such implicit conversion (invalid parameter type)?
Read More