aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/stm32/f1/other/i2c_stts75_sensor/stts75.c8
-rw-r--r--examples/stm32/f2/jobygps/spi_test/spi_test.c2
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();