aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/b64enc.c1
-rw-r--r--src/gpg-error.h.in6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/b64enc.c b/src/b64enc.c
index 571f4ec..a4edd0c 100644
--- a/src/b64enc.c
+++ b/src/b64enc.c
@@ -39,6 +39,7 @@
#define B64ENC_USE_PGPCRC 32
/* The base-64 character list */
+GPGRT_ATTR_NONSTRING
static unsigned char const bintoasc[64] = ("ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/");
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index d925ab0..4b4c60f 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -247,6 +247,12 @@ typedef unsigned int gpg_error_t;
# define GPGRT_ATTR_MALLOC
#endif
+#if _GPG_ERR_GCC_VERSION >= 80000
+# define GPGRT_ATTR_NONSTRING __attribute__((__nonstring__))
+#else
+# define GPGRT_ATTR_NONSTRING
+#endif
+
/* A macro defined if a GCC style __FUNCTION__ macro is available. */
#undef GPGRT_HAVE_MACRO_FUNCTION
#if _GPG_ERR_GCC_VERSION >= 20500