Browse Source

Enable lots of warnings.

git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4492 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.0.0
Jean Delvare 18 years ago
parent
commit
a22bba2fd3
  1. 4
      tools/Makefile
  2. 2
      tools/i2cdetect.c

4
tools/Makefile

@ -5,7 +5,9 @@
# Licensed under the GNU Public License.
CC = gcc
CFLAGS = -Wall -I../include
CFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
-Wcast-align -Wwrite-strings -Wnested-externs -Winline -W \
-I../include
CFLAGS += -O2
# When debugging, use the following instead

2
tools/i2cdetect.c

@ -152,7 +152,7 @@ static const struct func all_func[] = {
.name = "I2C Block Write" },
{ .value = I2C_FUNC_SMBUS_READ_I2C_BLOCK,
.name = "I2C Block Read" },
{ }
{ .value = 0, .name = "" }
};
void print_functionality(unsigned long funcs)

Loading…
Cancel
Save