diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-07-31 13:47:43 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-07-31 13:47:43 +0200 |
commit | 37a32e37e76172599461b264c7e545b2c56ebf3c (patch) | |
tree | c286769a67129acc1d53af4ec56e7812bc75720b /src | |
parent | 68064fbe8d5e0e13688d41d620bd78babb0b431a (diff) | |
download | gnunet-37a32e37e76172599461b264c7e545b2c56ebf3c.tar.gz gnunet-37a32e37e76172599461b264c7e545b2c56ebf3c.zip |
fix #5815
Diffstat (limited to 'src')
-rw-r--r-- | src/include/platform.h | 9 | ||||
-rw-r--r-- | src/util/common_logging.c | 2 |
2 files changed, 10 insertions, 1 deletions
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); | |||
295 | #define GNUNET_THREAD_LOCAL | 295 | #define GNUNET_THREAD_LOCAL |
296 | #endif | 296 | #endif |
297 | 297 | ||
298 | /** | ||
299 | * clang et al do not have such an attribute | ||
300 | */ | ||
301 | #if __has_attribute(__nonstring__) | ||
302 | # define __nonstring __attribute__((__nonstring__)) | ||
303 | #else | ||
304 | # define __nonstring | ||
305 | #endif | ||
306 | |||
298 | #endif | 307 | #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; | |||
108 | * characters, in which case it is NOT 0-terminated! | 108 | * characters, in which case it is NOT 0-terminated! |
109 | */ | 109 | */ |
110 | static GNUNET_THREAD_LOCAL char last_bulk[BULK_TRACK_SIZE] | 110 | static GNUNET_THREAD_LOCAL char last_bulk[BULK_TRACK_SIZE] |
111 | __attribute__ ((nonstring)); | 111 | __nonstring; |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * Type of the last bulk message. | 114 | * Type of the last bulk message. |