]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix #5962
authorFlole998 <Flole998@users.noreply.github.com>
Mon, 19 Oct 2020 22:39:36 +0000 (00:39 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Oct 2020 22:39:36 +0000 (00:39 +0200)
src/wrappers.c

index 4cccdfc41c5955e32b55d566b0afe5c3df54a66d..635758fbaeb792a9592a59704d4bcd5567222df1 100644 (file)
@@ -452,8 +452,7 @@ int regex_match_substring_length(tvh_regex_t *regex, unsigned number)
  * Sanitizer helpers to avoid false positives
  */
 #if ENABLE_CCLANG_THREADSAN
-void *blacklisted_memcpy(void *dest, const void *src, size_t n)
-  __attribute__((no_sanitize("thread")))
+void __attribute__((no_sanitize("thread"))) *blacklisted_memcpy(void *dest, const void *src, size_t n) 
 {
   uint8_t *d = dest;
   const uint8_t *s = src;
@@ -463,8 +462,7 @@ void *blacklisted_memcpy(void *dest, const void *src, size_t n)
 
 void *dlsym(void *handle, const char *symbol);
 
-int blacklisted_close(int fd)
-  __attribute__((no_sanitize("thread")))
+int __attribute__((no_sanitize("thread"))) blacklisted_close(int fd)
 {
   // close(fd); // sanitizer reports errors in close()
   return 0;