[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Resend:[PATCH] cleanup of gcc-3.0 depreciated label in end of compound statement



resend to ext3-users redhat com
Albert Cranford wrote:
> 
> Hi Andrew,
> 
> Could we please apply this patch to shut up gcc-3.0 warnings ?
> BTW, EXT3 & 2.4.6-pre6 works well with:
>   MACH 1-gcc-3.0 & ext3 on /usr/src filesystem (production workstation)
>   MACH 2-gcc-2.95-3 & ext3 on / filesystem (network server)
> 
> Keep up the good work.
> Thanks,
> Albert
> 
> super.c: In function `ext3_error_behaviour':
> super.c:115: warning: deprecated use of label at end of compound statement
> super.c: In function `ext3_read_super':
> super.c:1026: warning: deprecated use of label at end of compound statement
> journal.c: In function `journal_update_format':
> journal.c:1095: warning: deprecated use of label at end of compound statement
> --
> --- linux/fs/ext3/super.c.orig  Sat Jun 30 11:12:44 2001
> +++ linux/fs/ext3/super.c       Sat Jun 30 11:13:33 2001
> @@ -112,6 +112,7 @@
>         case EXT3_ERRORS_RO:
>                 return EXT3_ERRORS_RO;
>         default:
> +               break;
>         }
>         return EXT3_ERRORS_CONTINUE;
>  }
> @@ -195,7 +196,8 @@
>                 else
>                         errstr = "Readonly filesystem";
>                 break;
> -       default: ;
> +       default:
> +               break;
>         }
> 
>         if (errstr) {
> @@ -1023,6 +1025,7 @@
>                         goto failed_mount3;
>                 }
>         default:
> +               break;
>         }
> 
>         /*
> --- linux/fs/jbd/journal.c.orig Sat Jun 30 11:16:04 2001
> +++ linux/fs/jbd/journal.c      Sat Jun 30 11:16:29 2001
> @@ -1092,6 +1092,7 @@
>         case JFS_SUPERBLOCK_V1:
>                 return journal_convert_superblock_v1(journal, sb);
>         default:
> +               break;
>         }
>         return -EINVAL;
>  }
> --
> Albert Cranford Deerfield Beach FL USA
> ac9410 bellsouth net

-- 
Albert Cranford Deerfield Beach FL USA
ac9410 bellsouth net





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]