You probably need to pre-declare
```
static int mailimap_search_key_need_to_send_charset(struct mailimap_search_key * key)
```
somewhere above to get it to compile without warnings.