diff options
author | Piotr Esden-Tempski <piotr@esden.net> | 2013-01-07 09:17:00 +0400 |
---|---|---|
committer | Piotr Esden-Tempski <piotr@esden.net> | 2013-01-07 09:17:00 +0400 |
commit | 4d234c7e27fad516f1a34698099982d7e9ced260 (patch) | |
tree | 54fcd0f88e01f36190ee470de90262a22a1aebb8 | |
parent | 0eeca37e9fdcdac1a136984b05dc39fd61c4cd9f (diff) |
Marked some dummy variables in examples as unused, so that the newer GCC stops complaining.
-rw-r--r-- | examples/stm32/f1/other/i2c_stts75_sensor/stts75.c | 8 | ||||
-rw-r--r-- | 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 5e4d6321..e211f29a 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 95ba0216..a017a296 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(); |