Marked some dummy variables in examples as unused, so that the newer GCC stops complaining.
This commit is contained in:
parent
0eeca37e9f
commit
4d234c7e27
@ -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. */
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user