mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 17:13:34 +08:00
clang-tidy modernize-redundant-void-arg
This commit is contained in:
@@ -193,7 +193,7 @@ namespace
|
||||
ADCSIM *g_adc;
|
||||
|
||||
int
|
||||
test(void)
|
||||
test()
|
||||
{
|
||||
DevHandle h;
|
||||
DevMgr::getHandle(ADCSIM0_DEVICE_PATH, h);
|
||||
|
||||
@@ -133,7 +133,7 @@ private:
|
||||
/**
|
||||
* Worker task: main GPS thread that configures the GPS and parses incoming data, always running
|
||||
*/
|
||||
void task_main(void);
|
||||
void task_main();
|
||||
|
||||
/**
|
||||
* Set the baudrate of the UART to the GPS
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
namespace px4
|
||||
{
|
||||
void init_once(void);
|
||||
void init_once();
|
||||
}
|
||||
|
||||
using namespace std;
|
||||
@@ -260,7 +260,7 @@ static void process_line(string &line, bool exit_on_fail)
|
||||
run_cmd(appargs, exit_on_fail);
|
||||
}
|
||||
|
||||
static void restore_term(void)
|
||||
static void restore_term()
|
||||
{
|
||||
cout << "Restoring terminal\n";
|
||||
tcsetattr(0, TCSANOW, &orig_term);
|
||||
|
||||
@@ -67,9 +67,9 @@ __END_DECLS
|
||||
namespace px4
|
||||
{
|
||||
|
||||
void init_once(void);
|
||||
void init_once();
|
||||
|
||||
void init_once(void)
|
||||
void init_once()
|
||||
{
|
||||
_shell_task_id = pthread_self();
|
||||
//printf("[init] shell id: %lu\n", (unsigned long)_shell_task_id);
|
||||
|
||||
Reference in New Issue
Block a user