Changeset 4499

Show
Ignore:
Timestamp:
06/27/07 17:12:30 (7 years ago)
Author:
khali
Message:

Show more warnings, and fix them.

Location:
i2c-tools/trunk/tools
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/tools/Makefile

    r4492 r4499  
    88CFLAGS  = -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \ 
    99          -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W \ 
    10           -I../include 
     10          -Wundef -Wmissing-prototypes -I../include 
    1111 
    1212CFLAGS  += -O2 
  • i2c-tools/trunk/tools/i2cdetect.c

    r4492 r4499  
    3434#define MODE_FUNC       3 
    3535 
    36 void help(void) 
     36static void help(void) 
    3737{ 
    3838        fprintf(stderr, 
     
    5252} 
    5353 
    54 int scan_i2c_bus(int file, const int mode, const int first, const int last) 
     54static int scan_i2c_bus(int file, int mode, int first, int last) 
    5555{ 
    5656        int i, j; 
     
    156156}; 
    157157 
    158 void print_functionality(unsigned long funcs) 
     158static void print_functionality(unsigned long funcs) 
    159159{ 
    160160        int i; 
  • i2c-tools/trunk/tools/i2cdump.c

    r4488 r4499  
    3030#include "../version.h" 
    3131 
    32 void help(void) 
     32static void help(void) 
    3333{ 
    3434        fprintf(stderr, "Syntax: i2cdump [-f] [-y] I2CBUS ADDRESS [MODE] " 
  • i2c-tools/trunk/tools/i2cget.c

    r4487 r4499  
    3333#include "../version.h" 
    3434 
    35 void help(void) __attribute__ ((noreturn)); 
    36  
    37 void help(void) 
     35static void help(void) __attribute__ ((noreturn)); 
     36 
     37static void help(void) 
    3838{ 
    3939        fprintf(stderr, "Syntax: i2cget [-f] [-y] I2CBUS CHIP-ADDRESS " 
     
    5151} 
    5252 
    53 int check_funcs(int file, int i2cbus, int size, int daddress, int pec) 
     53static int check_funcs(int file, int i2cbus, int size, int daddress, int pec) 
    5454{ 
    5555        unsigned long funcs; 
     
    103103} 
    104104 
    105 int confirm(const char *filename, int address, int size, int daddress, int pec) 
     105static int confirm(const char *filename, int address, int size, int daddress, 
     106                   int pec) 
    106107{ 
    107108        int dont = 0; 
  • i2c-tools/trunk/tools/i2cset.c

    r4487 r4499  
    3030#include "../version.h" 
    3131 
    32 void help(void) __attribute__ ((noreturn)); 
    33  
    34 void help(void) 
     32static void help(void) __attribute__ ((noreturn)); 
     33 
     34static void help(void) 
    3535{ 
    3636        fprintf(stderr, "Syntax: i2cset [-f] [-y] I2CBUS CHIP-ADDRESS DATA-ADDRESS "