This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Introduce -Wimplicit-fallthrough={0,1,2,3,4,5}


On 10/12/2016 12:08 PM, Markus Trippelsdorf wrote:

Actually looking more closely it appears that all of the 136 additional
warnings for level 2 are bogus, too. Here is an example:

         switch (class) {
         case ATA_DEV_SEMB:
                 class = ATA_DEV_ATA;    /* some hard drives report SEMB sig */
         case ATA_DEV_ATA:
         case ATA_DEV_ZAC:
                 tf.command = ATA_CMD_ID_ATA;
                 break;

Another interesting question would be, how many of the level 1 warnings are false positives? But I'm not going to make you go through all 951 of them.


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]