mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 02:43:34 +08:00
Linux: Minor fixes of error caught by gcc-4.9.1
- Missing static declarations for functions not used outside a file. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -72,7 +72,7 @@ void run_cmd(const vector<string> &appargs) {
|
||||
}
|
||||
}
|
||||
|
||||
void process_line(string &line)
|
||||
static void process_line(string &line)
|
||||
{
|
||||
vector<string> appargs(5);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ using namespace device;
|
||||
|
||||
#define TESTDEV "/dev/vdevex"
|
||||
|
||||
int writer_main(int argc, char *argv[])
|
||||
static int writer_main(int argc, char *argv[])
|
||||
{
|
||||
char buf[1] = { '1' };
|
||||
|
||||
@@ -97,7 +97,7 @@ VCDevExample::~VCDevExample() {
|
||||
}
|
||||
}
|
||||
|
||||
int test_pub_block(int fd, unsigned long blocked)
|
||||
static int test_pub_block(int fd, unsigned long blocked)
|
||||
{
|
||||
int ret = px4_ioctl(fd, PX4_DEVIOCSPUBBLOCK, blocked);
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user