diff options
author | Daniel Agar <daniel@agar.ca> | 2014-12-22 17:09:43 -0500 |
---|---|---|
committer | Daniel Agar <daniel@agar.ca> | 2014-12-22 17:56:59 -0500 |
commit | d511e39ea7a3f1e0cb672b14598e18a7df18156a (patch) | |
tree | 1c2994b2cc65558bd469b111ffd92eafa5460f15 /src/drivers/px4flow | |
parent | d54b46355ce0f8c128a5e7fce94564c7cb338987 (diff) | |
download | px4-firmware-d511e39ea7a3f1e0cb672b14598e18a7df18156a.tar.gz px4-firmware-d511e39ea7a3f1e0cb672b14598e18a7df18156a.tar.bz2 px4-firmware-d511e39ea7a3f1e0cb672b14598e18a7df18156a.zip |
turn on -Werror and fix resulting errors
Diffstat (limited to 'src/drivers/px4flow')
-rw-r--r-- | src/drivers/px4flow/module.mk | 2 | ||||
-rw-r--r-- | src/drivers/px4flow/px4flow.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/px4flow/module.mk b/src/drivers/px4flow/module.mk index 460bec7b9..ecd3e804a 100644 --- a/src/drivers/px4flow/module.mk +++ b/src/drivers/px4flow/module.mk @@ -40,3 +40,5 @@ MODULE_COMMAND = px4flow SRCS = px4flow.cpp MAXOPTIMIZATION = -Os + +EXTRACXXFLAGS = -Wno-attributes diff --git a/src/drivers/px4flow/px4flow.cpp b/src/drivers/px4flow/px4flow.cpp index 09ec4bf96..62308fc65 100644 --- a/src/drivers/px4flow/px4flow.cpp +++ b/src/drivers/px4flow/px4flow.cpp @@ -106,7 +106,7 @@ struct i2c_frame { }; struct i2c_frame f; -typedef struct i2c_integral_frame { +struct i2c_integral_frame { uint16_t frame_count_since_last_readout; int16_t pixel_flow_x_integral; int16_t pixel_flow_y_integral; |