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 ++++---- examples/stm32/f2/jobygps/spi_test/spi_test.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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. */ diff --git a/examples/stm32/f2/jobygps/spi_test/spi_test.c b/examples/stm32/f2/jobygps/spi_test/spi_test.c index 95ba021..a017a29 100644 --- a/examples/stm32/f2/jobygps/spi_test/spi_test.c +++ b/examples/stm32/f2/jobygps/spi_test/spi_test.c @@ -91,7 +91,7 @@ int _write(int file, char *ptr, int len) int main(void) { int counter = 0; - volatile u16 dummy; + volatile u16 dummy __attribute__((unused)); clock_setup(); gpio_setup(); -- cgit v1.2.3