}
static inline
-int bt_close_memstream(char **buf, size_t *size, FILE *fp)
+int bt_close_memstream(
+ char **buf __attribute__((unused)),
+ size_t *size __attribute__((unused)),
+ FILE *fp)
{
return fclose(fp);
}
* into the buffer (which we allocate).
*/
static inline
-FILE *bt_open_memstream(char **ptr, size_t *sizeloc)
+FILE *bt_open_memstream(char **ptr __attribute__((unused)),
+ size_t *sizeloc __attribute__((unused)))
{
char *tmpname;
FILE *fp;
* into the buffer (which we allocate).
*/
static inline
-FILE *bt_open_memstream(char **ptr, size_t *sizeloc)
+FILE *bt_open_memstream(char **ptr __attribute__((unused)),
+ size_t *sizeloc __attribute__((unused)))
{
char *tmpname;
int ret;
}
*size = pos;
/* add final \0 */
- *buf = calloc(pos + 1, sizeof(char));
+ *buf = (char *) calloc(pos + 1, sizeof(char));
if (!*buf) {
return -ENOMEM;
}