diff options
author | px4dev <px4@purgatory.org> | 2012-10-29 21:47:37 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-10-29 21:47:37 -0700 |
commit | 270a5d351f69676bfdd6ada4aa793953265f0491 (patch) | |
tree | e9bb8e3cd535dbeb1cbd7c6cced27cdaa1bb6660 | |
parent | 9a85801cb02af887b89bb2a1b2f09e2f9d4fcd7e (diff) | |
download | px4-firmware-270a5d351f69676bfdd6ada4aa793953265f0491.tar.gz px4-firmware-270a5d351f69676bfdd6ada4aa793953265f0491.tar.bz2 px4-firmware-270a5d351f69676bfdd6ada4aa793953265f0491.zip |
Warning fixes.
-rw-r--r-- | apps/drivers/hmc5883/hmc5883.cpp | 1 | ||||
-rw-r--r-- | apps/px4/tests/test_hrt.c | 1 | ||||
-rw-r--r-- | apps/px4/tests/test_uart_send.c | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/apps/drivers/hmc5883/hmc5883.cpp b/apps/drivers/hmc5883/hmc5883.cpp index 6fefbfafc..2b4fab151 100644 --- a/apps/drivers/hmc5883/hmc5883.cpp +++ b/apps/drivers/hmc5883/hmc5883.cpp @@ -1045,6 +1045,7 @@ int HMC5883::check_calibration() _calibrated = false; // XXX Notify system via uORB } + return 0; } int HMC5883::set_excitement(unsigned enable) diff --git a/apps/px4/tests/test_hrt.c b/apps/px4/tests/test_hrt.c index f364ea080..3730272a2 100644 --- a/apps/px4/tests/test_hrt.c +++ b/apps/px4/tests/test_hrt.c @@ -39,6 +39,7 @@ #include <nuttx/config.h> #include <sys/types.h> +#include <sys/time.h> #include <stdio.h> #include <stdlib.h> diff --git a/apps/px4/tests/test_uart_send.c b/apps/px4/tests/test_uart_send.c index a88e617d9..f5c26e9f3 100644 --- a/apps/px4/tests/test_uart_send.c +++ b/apps/px4/tests/test_uart_send.c @@ -112,7 +112,7 @@ int test_uart_send(int argc, char *argv[]) char sample_test_uart[25];// = {'S', 'A', 'M', 'P', 'L', 'E', ' ', '\n'}; - int i, r, n; + int i, n; uint64_t start_time = hrt_absolute_time(); |