Add some more warning flags, and fix these warnings.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4545 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-07-03 16:03:22 +00:00
1 parent c7c77845d2
commit b79274babd
13 files changed
+52 -42

No files matched your search

+3 -3
View File
@@ -47,7 +47,7 @@
unsigned long isa_io_base = 0; /* XXX for now */
#endif /* __powerpc__ */
void help(void)
static void help(void)
{
fprintf(stderr,
"Syntax for I2C-like access:\n"
@@ -56,7 +56,7 @@ void help(void)
" isadump [-y] -f ADDRESS [RANGE [BANK [BANKREG]]]\n");
}
int default_bankreg(int flat, int addrreg, int datareg)
static int default_bankreg(int flat, int addrreg, int datareg)
{
if (flat) {
return 0x09; /* Works for National Semiconductor
@@ -71,7 +71,7 @@ int default_bankreg(int flat, int addrreg, int datareg)
return 0x4e; /* Works for Winbond ISA chips, default */
}
int set_bank(int flat, int addrreg, int datareg, int bank, int bankreg)
static int set_bank(int flat, int addrreg, int datareg, int bank, int bankreg)
{
int oldbank;
+2 -2
View File
@@ -64,7 +64,7 @@ static void sensors_get_available_features(const sensors_chip_name *name,
iter->mapping != SENSORS_NO_MAPPING &&
iter->mapping == feature->number) {
sensors_feature_type type = sensors_feature_get_type(iter);
unsigned int indx;
int indx;
if (type == SENSORS_FEATURE_UNKNOWN)
continue;
@@ -87,7 +87,7 @@ static int sensors_get_label_size(const sensors_chip_name *name)
int i, j, valid;
const sensors_feature_data *iter;
char *label;
int max_size = 11; /* Initialised to 11 as minumum label-width */
unsigned int max_size = 11; /* Initialised to 11 as minumum label-width */
i = j = 0;
while((iter = sensors_get_all_features(*name, &i, &j))) {
+2 -2
View File
@@ -95,7 +95,7 @@ void print_version(void)
/* This examines global var config_file, and leaves the name there too.
It also opens config_file. */
void open_config_file(const char* config_file_name)
static void open_config_file(const char* config_file_name)
{
if (!strcmp(config_file_name,"-")) {
config_file = stdin;
@@ -110,7 +110,7 @@ void open_config_file(const char* config_file_name)
}
}
void close_config_file(const char* config_file_name)
static void close_config_file(const char* config_file_name)
{
if (fclose(config_file) == EOF) {
fprintf(stderr,"Could not close config file\n");