[parted-devel] GNU Parted Official Repository: Changes to 'master'

Otavio Salvador otavio at alioth.debian.org
Fri Feb 16 17:24:19 CET 2007


 debug/clearfat/clearfat.c        |    6 ++
 libparted/arch/linux.c           |   42 ++++++++++++----
 libparted/cs/constraint.c        |    3 -
 libparted/cs/geom.c              |    3 -
 libparted/debug.c                |    6 +-
 libparted/disk.c                 |    5 --
 libparted/filesys.c              |    3 -
 libparted/fs/amiga/affs.c        |    3 -
 libparted/fs/amiga/amiga.c       |   34 -------------
 libparted/fs/amiga/apfs.c        |    3 -
 libparted/fs/amiga/asfs.c        |    6 +-
 libparted/fs/ext2/ext2.c         |    3 -
 libparted/fs/ext2/ext2_mkfs.c    |    3 -
 libparted/fs/fat/bootsector.c    |    6 ++
 libparted/fs/fat/calc.c          |    4 --
 libparted/fs/fat/clstdup.c       |    3 -
 libparted/fs/fat/count.c         |    7 ++-
 libparted/fs/fat/fat.c           |    3 -
 libparted/fs/fat/resize.c        |   11 +++-
 libparted/fs/fat/table.c         |   31 +++++++++---
 libparted/fs/fat/traverse.c      |    6 ++
 libparted/fs/hfs/file_plus.c     |   12 +++--
 libparted/fs/hfs/hfs.c           |    9 ++-
 libparted/fs/hfs/hfs.h           |    3 -
 libparted/fs/reiserfs/reiserfs.c |    9 ++-
 libparted/labels/aix.c           |    8 ---
 libparted/labels/bsd.c           |    2 -
 libparted/labels/dasd.c          |   51 ++++++++-----------
 libparted/labels/dos.c           |    6 --
 libparted/labels/dvh.c           |   10 ++--
 libparted/labels/fdasd.c         |  101 --------------------------------------
 libparted/labels/gpt.c           |    6 --
 libparted/labels/loop.c          |    4 --
 libparted/labels/mac.c           |    5 --
 libparted/labels/pc98.c          |    6 --
 libparted/labels/rdb.c           |   26 +---------
 libparted/labels/sun.c           |    3 -
 libparted/unit.c                 |    3 -
 parted/parted.c                  |   52 +++++++-------------
 parted/ui.c                      |    5 --
 40 files changed, 168 insertions(+), 344 deletions(-)

New commits:
commit 4529f6625622b459975c59921f4360afe6b7eb5c
Author: Jim Meyering <jim at meyering.net>
Date:   Fri Feb 16 15:55:40 2007 +0100

    Avoid compiler warnings with gcc -Wall -Wshadow.
    
    * libparted/arch/linux.c (init_ide): Add missing "break" at end of
    final case: stmt.
    Add "default:" in the same switch to avoid a compiler warning.
    * libparted/fs/fat/bootsector.c (fat_boot_sector_analyse): Likewise.
    * libparted/fs/fat/resize.c (ask_type): Likewise.
    * libparted/fs/fat/traverse.c (fat_dir_entry_set_first_cluster):
    Likewise.
    * debug/clearfat/clearfat.c (_calc_fat_entry_offset): Likewise.
    
    * parted/parted.c (_timer_handler): Cast time_t values to "int"
    to agree with %d printf format.
    (g_timer): Rename file-scoped global from shadowed "timer".
    Update all uses of the global.
    (version_msg): Remove decl of unused global.
    
    * parted/ui.c (current_exception_opt): Remove decl of unused global.
    
    * libparted/filesys.c (ped_file_system_close): Remove unused label.
    * libparted/unit.c (parse_chs): Likewise.
    
    * libparted/debug.c (ped_assert): Use "int" as type of backtrace
    return value, not size_t.
    
    * libparted/fs/reiserfs/reiserfs.c (reiserfs_check):
    Guard declaration of local with #ifdef HAVE_REISERFS_FS_CHECK,
    since it's used only in a similarly-guarded block.
    (reiserfs_fs_check): Likewise for this file-scoped global.
    
    Avoid warnings about unused file-scoped global variables.
    * libparted/fs/hfs/hfs.h (hfs_type, hfsplus_type): Remove these
    declarations of file-scoped static variables.
    * libparted/fs/hfs/hfs.c: Put them here, instead.
    
    * libparted/fs/fat/table.c (_test_code_active): Remove unused function.
    
    * libparted/arch/linux.c: Add casts to avoid performing
    pointer arithmetic on "void *" pointers.
    
    * libparted/fs/hfs/file_plus.c (hfsplus_file_read):
    Don't do pointer arithmetic on a "void *" pointer.
    (hfsplus_file_write): Likewise.
    
    * libparted/fs/fat/count.c (flag_traverse_dir): Move decl of
    unused local into #if-0'd block where it is referenced.
    (print_chain): Guard definition with #ifdef PED_VERBOSE,
    since the sole use of this function is guarded the same way.
    
    * libparted/fs/amiga/amiga.c: (_amiga_valid_block_id):
    Remove unused function.
    (_amiga_get_bstr): Likewise.
    (_amiga_set_bstr): Likewise.
    
    Remove unused labels and/or declarations of unused variables.
    * parted/ui.c (_readline): Likewise.
    * libparted/cs/constraint.c (_constraint_get_canonical_start_range):
    Likewise.
    * libparted/cs/geom.c (ped_geometry_read): Likewise.
    * libparted/fs/amiga/apfs.c (_generic_apfs_probe): Likewise.
    * libparted/fs/ext2/ext2_mkfs.c (ext2_mkfs_write_meta): Likewise.
    * libparted/disk.c: Likewise.
    * libparted/fs/hfs/hfs.c: Likewise.
    * libparted/fs/fat/fat.c: Likewise.
    * libparted/fs/fat/clstdup.c: Likewise.
    * libparted/fs/fat/calc.c: Likewise.
    * libparted/fs/ext2/ext2.c: Likewise.
    * libparted/fs/amiga/affs.c: Likewise.
    * libparted/fs/amiga/asfs.c: Likewise.
    * libparted/labels/aix.c: Likewise.
    * libparted/labels/sun.c: Likewise.
    * libparted/labels/pc98.c: Likewise.
    * libparted/labels/mac.c: Likewise.
    * libparted/labels/dos.c: Likewise.
    * libparted/labels/loop.c (loop_alloc): Likewise.
    * libparted/labels/gpt.c: Likewise.
    * libparted/labels/dvh.c (dvh_alloc): Likewise.
    (dvh_read) [!DISCOVER_ONLY]: Add "default:" in a switch.
    
    * libparted/labels/fdasd.c (fdasd_reread_partition_table):
    Remove decl of unused local(s).
    (fdasd_get_partition_data): Likewise.
    (fdasd_partition_type): Remove unused function.
    (fdasd_write_vtoc_labels): Likewise.
    (fdasd_change_volser): Likewise.
    (fdasd_check_volser): Likewise.
    (fdasd_reread_partition_table): Likewise.
    
    Signed-off-by: Jim Meyering <jim at meyering.net>

commit cbf5b4da095637e18ab6f2b8a52a506a4126845b
Author: Jim Meyering <jim at meyering.net>
Date:   Thu Feb 15 16:05:17 2007 +0100

    * libparted/labels/rdb.c (amiga_read): Remove decl of unused local(s).
    
    Signed-off-by: Jim Meyering <jim at meyering.net>

commit 3f3af4affe2ee037620c717acc7d3fc84422574c
Author: Jim Meyering <jim at meyering.net>
Date:   Thu Feb 15 15:56:23 2007 +0100

    * libparted/labels/bsd.c (bsd_partition_new): Remove unused label.
    
    Signed-off-by: Jim Meyering <jim at meyering.net>

commit 74eb62c50d7a6107f7c9dcb5273060f20da990b8
Author: Jim Meyering <jim at meyering.net>
Date:   Thu Feb 15 15:53:44 2007 +0100

    * libparted/labels/dasd.c: Remove unused labels and declarations
    
    of unused variables.
    
    Signed-off-by: Jim Meyering <jim at meyering.net>




More information about the parted-devel mailing list