aboutsummaryrefslogtreecommitdiff
path: root/src/platforms
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-05 16:49:52 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-05 16:49:52 +0100
commit017dc424238e168ba63d540010c580e20b6d9dd7 (patch)
tree3239b266a71c5408fd8df128fc14d85b7b3bce62 /src/platforms
parent683b06321c192bbc76d322b266c62e414e24f4f4 (diff)
downloadpx4-firmware-017dc424238e168ba63d540010c580e20b6d9dd7.tar.gz
px4-firmware-017dc424238e168ba63d540010c580e20b6d9dd7.tar.bz2
px4-firmware-017dc424238e168ba63d540010c580e20b6d9dd7.zip
multiplatform fix errors from werror
Diffstat (limited to 'src/platforms')
-rw-r--r--src/platforms/px4_subscriber.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/platforms/px4_subscriber.h b/src/platforms/px4_subscriber.h
index e7e344201..4b6d5b58f 100644
--- a/src/platforms/px4_subscriber.h
+++ b/src/platforms/px4_subscriber.h
@@ -79,7 +79,8 @@ public:
/**
* Get the last message value
*/
- virtual const M& get() = 0;
+ virtual M get() = 0;
+
/**
* Get void pointer to last message value
*/
@@ -124,7 +125,7 @@ public:
/**
* Get the last message value
*/
- const M& get() { return _msg_current; }
+ M get() { return _msg_current; }
/**
* Get void pointer to last message value
*/
@@ -204,7 +205,7 @@ public:
/**
* Get the last message value
*/
- const M& get() { return uORB::Subscription<M>::getData(); }
+ M get() { return uORB::Subscription<M>::getData(); }
/**
* Get void pointer to last message value
*/