我正在阅读一些源代码,然后出现了这个问题;
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 */
}
Run Code Online (Sandbox Code Playgroud)
如您所见,void cast 指针甚至没有分配给变量。我想知道这样做的目的是什么。
| 归档时间: |
|
| 查看次数: |
503 次 |
| 最近记录: |