From: Pavel Pisa Date: Mon, 20 Mar 2017 01:32:44 +0000 (+0100) Subject: Correct base_rate function prototype to be compatible with C++. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/ert_linux.git/commitdiff_plain/926cb2480371ea3b48219bcdb68edc9a8591906d Correct base_rate function prototype to be compatible with C++. Signed-off-by: Pavel Pisa --- diff --git a/ert_linux/ert_linux_main.tlc b/ert_linux/ert_linux_main.tlc index 85830b6..418d20c 100644 --- a/ert_linux/ert_linux_main.tlc +++ b/ert_linux/ert_linux_main.tlc @@ -136,7 +136,7 @@ * This is the thread function of the base rate loop. * Fundamental sample time = %s */ - void * base_rate() + void * base_rate(void *param_unused) { %assign sec = FEVAL("uint32", fundamentalStepSize) %assign nsec = FEVAL("uint32", (fundamentalStepSize - FEVAL("floor", fundamentalStepSize))*1000000000) @@ -148,6 +148,8 @@ int step_sem_value; int_T i; + (void)param_unused; + %if extMode == 1 % CHECKE(sem_post(&ext_mode_ready)); @@ -219,6 +221,7 @@ sem_post(&sub_rate[i].sem); sem_post(&sub_rate[i].sem); } + return NULL; } /**