mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 12:03:33 +08:00
Fixes for gcc 4.8
The use of a non-static function without a declaration generates a warning for gcc 4.8. Clang-3.4 does not work when compiling for gprof. The executable always generates a segv. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -273,6 +273,7 @@ void px4_show_tasks()
|
||||
}
|
||||
|
||||
__BEGIN_DECLS
|
||||
const char *getprogname();
|
||||
const char *getprogname()
|
||||
{
|
||||
pthread_t pid = pthread_self();
|
||||
|
||||
Reference in New Issue
Block a user