From 4d234c7e27fad516f1a34698099982d7e9ced260 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Sun, 6 Jan 2013 21:17:00 -0800 Subject: Marked some dummy variables in examples as unused, so that the newer GCC stops complaining. --- examples/stm32/f1/other/i2c_stts75_sensor/stts75.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/stm32/f1/other') diff --git a/examples/stm32/f1/other/i2c_stts75_sensor/stts75.c b/examples/stm32/f1/other/i2c_stts75_sensor/stts75.c index 5e4d632..e211f29 100644 --- a/examples/stm32/f1/other/i2c_stts75_sensor/stts75.c +++ b/examples/stm32/f1/other/i2c_stts75_sensor/stts75.c @@ -22,7 +22,7 @@ void stts75_write_config(u32 i2c, u8 sensor) { - u32 reg32; + u32 reg32 __attribute__((unused)); /* Send START condition. */ i2c_send_start(i2c); @@ -53,7 +53,7 @@ void stts75_write_config(u32 i2c, u8 sensor) void stts75_write_temp_os(u32 i2c, u8 sensor, u16 temp_os) { - u32 reg32; + u32 reg32 __attribute__((unused)); /* Send START condition. */ i2c_send_start(i2c); @@ -86,7 +86,7 @@ void stts75_write_temp_os(u32 i2c, u8 sensor, u16 temp_os) void stts75_write_temp_hyst(u32 i2c, u8 sensor, u16 temp_hyst) { - u32 reg32; + u32 reg32 __attribute__((unused)); /* Send START condition. */ i2c_send_start(i2c); @@ -119,7 +119,7 @@ void stts75_write_temp_hyst(u32 i2c, u8 sensor, u16 temp_hyst) u16 stts75_read_temperature(u32 i2c, u8 sensor) { - u32 reg32; + u32 reg32 __attribute__((unused)); u16 temperature; /* Send START condition. */ -- cgit v1.2.3