aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libsystemd/disable-warning-nonnull.patch
blob: 1ce5b68fffe31cb07c197b609fad4afdf0bd5f97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/basic/memory-util.h b/src/basic/memory-util.h
index 1179513..fc39e06 100644
--- a/src/basic/memory-util.h
+++ b/src/basic/memory-util.h
@@ -41,7 +41,9 @@ static inline int memcmp_safe(const void *s1, const void *s2, size_t n) {
                 return 0;
         assert(s1);
         assert(s2);
+DISABLE_WARNING_NONNULL
         return memcmp(s1, s2, n);
+REENABLE_WARNING
 }
 
 /* Compare s1 (length n1) with s2 (length n2) in lexicographic order. */