[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix #5815
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix #5815 |
Date: |
Wed, 31 Jul 2019 13:49:06 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 37a32e37e fix #5815
37a32e37e is described below
commit 37a32e37e76172599461b264c7e545b2c56ebf3c
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Wed Jul 31 13:47:43 2019 +0200
fix #5815
---
src/include/platform.h | 9 +++++++++
src/util/common_logging.c | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/include/platform.h b/src/include/platform.h
index 23e640ec1..4636ddd73 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -295,4 +295,13 @@ atoll (const char *nptr);
#define GNUNET_THREAD_LOCAL
#endif
+/**
+ * clang et al do not have such an attribute
+ */
+#if __has_attribute(__nonstring__)
+# define __nonstring __attribute__((__nonstring__))
+#else
+# define __nonstring
+#endif
+
#endif
diff --git a/src/util/common_logging.c b/src/util/common_logging.c
index 3193878b8..19bbbdb81 100644
--- a/src/util/common_logging.c
+++ b/src/util/common_logging.c
@@ -108,7 +108,7 @@ static __thread struct GNUNET_AsyncScopeSave
current_async_scope;
* characters, in which case it is NOT 0-terminated!
*/
static GNUNET_THREAD_LOCAL char last_bulk[BULK_TRACK_SIZE]
- __attribute__ ((nonstring));
+ __nonstring;
/**
* Type of the last bulk message.
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: fix #5815,
gnunet <=