This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Clang v6.15 How to generate a compiler warning when break missing in switch/case fallthrough

Hi

What option needs to be given to compiler to generate warning over this code

switch (case_enum)
{
    case  1:
        // missing break
    case 2:
        break;
};

Thanks