From 926cb2480371ea3b48219bcdb68edc9a8591906d Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 20 Mar 2017 02:32:44 +0100 Subject: [PATCH] Correct base_rate function prototype to be compatible with C++. Signed-off-by: Pavel Pisa --- ert_linux/ert_linux_main.tlc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } /** -- 2.39.2