summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-08-07 22:14:02 +0200
committerBruno Haible <bruno@clisp.org>2021-08-07 22:14:02 +0200
commit21884ba6ddab17cc9dd05c92b6b31943f3173db8 (patch)
tree53d3ab87203fc164bb3f604f4d15c9028a1c0e12 /lib
parent392c16a063455fbc2b634529b48407e1976151ac (diff)
downloadgnulib-21884ba6ddab17cc9dd05c92b6b31943f3173db8.tar.gz
striconveha: Improve GCC 11 allocation-deallocation checking.
* lib/striconveha.h: Include <stdlib.h> instead of <stddef.h>. (str_iconveha): Declare that deallocation must happen through 'free'.
Diffstat (limited to 'lib')
-rw-r--r--lib/striconveha.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/striconveha.h b/lib/striconveha.h
index baa50f5aa8..5c47a44419 100644
--- a/lib/striconveha.h
+++ b/lib/striconveha.h
@@ -19,7 +19,7 @@
#define _STRICONVEHA_H
#include <stdbool.h>
-#include <stddef.h>
+#include <stdlib.h>
#include "iconveh.h"
@@ -69,7 +69,8 @@ extern char *
str_iconveha (const char *src,
const char *from_codeset, const char *to_codeset,
bool transliterate,
- enum iconv_ilseq_handler handler);
+ enum iconv_ilseq_handler handler)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;
/* In the above, FROM_CODESET can also be one of the following values: