local-madvise_warn
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Mon, 10 Jun 2024 20:25:19 +0000 (22:25 +0200)
committerSamuel Thibault <sthibault@debian.org>
Mon, 10 Jun 2024 20:25:19 +0000 (22:25 +0200)
Do not warn about madvise not being implemented. It does not have any real
semantic anyway, and that brings some -Werror FTBFS.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-madvise_warn.diff

misc/madvise.c
posix/posix_madvise.c

index 0c403bb7137f794ebd82385b820e3792dbc302a3..ffaac99096731d89b2634f1136dc10a4194285ec 100644 (file)
@@ -32,4 +32,4 @@ __madvise (void *addr, size_t len, int advice)
 libc_hidden_def (__madvise)
 weak_alias (__madvise, madvise)
 
-stub_warning (madvise)
+/* stub_warning (madvise) */
index 4c99fb46f2d7099f28f712ad17456bc8dec29670..e87e734cc9293a0e087012b35b7dbd06f221ea4e 100644 (file)
@@ -27,4 +27,4 @@ posix_madvise (void *addr, size_t len, int advice)
 {
   return ENOSYS;
 }
-stub_warning (posix_madvise)
+/* stub_warning (posix_madvise) */