Changeset 8268 for trunk

Show
Ignore:
Timestamp:
30/11/11 12:32:37 (6 months ago)
Author:
westram
Message:
  • removed unused(-but-set) variables/params
Location:
trunk/TOOLS
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/TOOLS/arb_2_bin.cxx

    r8247 r8268  
    2121                "\n" 
    2222                "Purpose: Converts a database to binary format\n" 
    23                 "Syntax:  arb_2_bin [-m] [-r] [-c][tree_xxx] database [newdatabase]\n" 
     23                "Syntax:  arb_2_bin [Options] database [newdatabase]\n" 
    2424                "Options: -m            create map file too\n" 
    2525                "         -r            try to repair destroyed database\n" 
     
    3434    } 
    3535    else { 
    36         char        rtype[256]; 
    37         char        wtype[256]; 
    38         int         ci       = 1; 
    39         int         nidx    = 0; 
    40         int         test     = 0; 
     36        char rtype[256]; 
     37        char wtype[256]; 
     38        int  ci   = 1; 
     39        int  nidx = 0; 
     40 
    4141        const char *opt_tree = 0; 
    4242 
     
    5656                if (!strncmp(argv[ci], "-c", 2)) { opt_tree = argv[ci]+2; ci++; } 
    5757                if (!strncmp(argv[ci], "-i", 2)) { nidx = atoi(argv[ci]+2); ci++; } 
    58                 if (!strncmp(argv[ci], "-t", 2)) { test = 1; ci++; } 
    5958            } 
    6059        } 
  • trunk/TOOLS/arb_read_tree.cxx

    r7314 r8268  
    251251 
    252252            if (!error) { 
    253                 // write tree comment: 
    254                 const char *datestring; 
    255                 { 
    256                     time_t date; 
    257                     if (time(&date) == -1) datestring = "<Error calculating time>"; 
    258                     else datestring = ctime(&date); 
    259                 } 
    260  
     253                // write tree comment 
    261254                const char *comments[] = { 
    262255                    param.comment, 
  • trunk/TOOLS/arb_test.cxx

    r8246 r8268  
    1414#include <unistd.h> 
    1515 
    16 int ARB_main(int argc, const char *argv[]) { 
     16int ARB_main(int , const char *[]) { 
    1717    fputs("don't call us\n", stderr); 
    1818    return EXIT_SUCCESS;