dimanche 27 novembre 2016

C language — why cast a formal parameter to void in STM32 ucos-iii

static  void  AppTaskLed2 ( void * p_arg )
{
    OS_ERR      err;

    (void)p_arg;
    .....
}

(void)p_arg; — What's the meaning? What is the significance of this?

Aucun commentaire:

Enregistrer un commentaire