diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libsystemd/disable-warning-nonnull.patch | |
Diffstat (limited to 'vcpkg/ports/libsystemd/disable-warning-nonnull.patch')
| -rw-r--r-- | vcpkg/ports/libsystemd/disable-warning-nonnull.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/libsystemd/disable-warning-nonnull.patch b/vcpkg/ports/libsystemd/disable-warning-nonnull.patch new file mode 100644 index 0000000..1ce5b68 --- /dev/null +++ b/vcpkg/ports/libsystemd/disable-warning-nonnull.patch @@ -0,0 +1,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. */ |