]> rtime.felk.cvut.cz Git - ert_linux.git/commitdiff
Correct base_rate function prototype to be compatible with C++.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 20 Mar 2017 01:32:44 +0000 (02:32 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 20 Mar 2017 01:32:44 +0000 (02:32 +0100)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
ert_linux/ert_linux_main.tlc

index 85830b63589244ecde3d3c8b9b83f2e6c29119d2..418d20c0bf84f722c49e6e6e03109fd3294f61fb 100644 (file)
    * This is the thread function of the base rate loop.
    * Fundamental sample time = %<fundamentalStepSize>s
    */
-  void * base_rate()
+  void * base_rate(void *param_unused)
   {
     %assign  sec = FEVAL("uint32", fundamentalStepSize)
     %assign nsec = FEVAL("uint32", (fundamentalStepSize - FEVAL("floor", fundamentalStepSize))*1000000000)
     int step_sem_value;
     int_T i;
 
+    (void)param_unused;
+
     %if extMode == 1
       %<SLibGenERTExtModeInit()>
       CHECKE(sem_post(&ext_mode_ready));
       sem_post(&sub_rate[i].sem);
       sem_post(&sub_rate[i].sem);
     }
+    return NULL;
   }
 
   /**