]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/commitdiff
Get rid of unreferenced variable
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 31 Mar 2015 16:37:02 +0000 (18:37 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 31 Mar 2015 16:37:02 +0000 (18:37 +0200)
For single-rate systems, the following warning appeared:

variable "taskCounter" was declared but never referenced

rpp/rpp/rpp_srmain.tlc

index f7adc45da8693bc5a310aded5b37f377992eb031..79729e884357378ac65dd9988ad711bb11e13361 100644 (file)
      */
     void working_task(void* p)
     {
+      %if LibNumSynchronousSampleTimes() > 1
         static  int_T taskCounter[%<FcnNumST()>] = %<FcnInitializeTaskCounter()>;
+      %endif
 
         /* Initialize model */
         %<LibCallModelInitialize()>\