News for hackers. Stuff that matters.
Re:The security hole in sudo by kstenerud on Wednesday May 23, 2012 @12:02PM (#4013690)
Would be nice if compilers offered a warning for missing breaks in a switch statement, and a pragma to mark fallthrough:

    switch(something)
    {
        case 1:
            // Do stuff
            break;
        case 2:
            #pragma switch_fallthrough
        case 3:
            // Do stuff
            break;
        #pragma switch_nodefault
    }
Re:The security hole in sudo by there on Wednesday May 23, 2012 @12:18PM (#4013762)
lint will warn about those cases unless they are marked in the code with /* FALLTHROUGH */. I think even if you're not using lint, such comments are good practice.