Co robi void casting?
Czytałem jakiś kod źródłowy i to się pojawiło;
struct Cookie *
Curl_cookie_add(struct SessionHandle *data, /* rest of params were here */)
{
/* unrelated things were here */
#ifdef CURL_DISABLE_VERBOSE_STRINGS
(void)data;
#endif
/* rest of function goes here */
}
Jak widać, wskaźnik void casted nie jest nawet przypisany do zmiennej. Zastanawiałem się, jaki jest tego cel.