From 270a5d351f69676bfdd6ada4aa793953265f0491 Mon Sep 17 00:00:00 2001 From: px4dev Date: Mon, 29 Oct 2012 21:47:37 -0700 Subject: Warning fixes. --- apps/drivers/hmc5883/hmc5883.cpp | 1 + apps/px4/tests/test_hrt.c | 1 + apps/px4/tests/test_uart_send.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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 #include +#include #include #include 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(); -- cgit v1.2.3