Question

J'ai le code suivant

static pthread_mutex_t watchdogMutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t watchdogCond = PTHREAD_COND_INITIALIZER;

Et j'obtiens les erreurs / avertissements suivants lors de l'utilisation de l'attelle

Watchdogcond statique._Les données._Mutex initialisé à la valeur nul: watchDogCond._Les données._mutex = (void ) 0 Une référence sans annotation nulle est attribuée ou initialisée à NULL. Utilisation /@null @ * / pour déclarer la référence comme un pointeur peut-être nul. (Utiliser -NullSsign pour inhiber l'avertissement)

Quel est le problème avec cela et est-ce un vrai danger?

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top