local-madvise_warn
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Mon, 21 Feb 2022 08:47:11 +0000 (08:47 +0000)
committerAurelien Jarno <aurel32@debian.org>
Mon, 21 Feb 2022 08:47:11 +0000 (08:47 +0000)
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 253443e2858811003827df20539e7f8514cd1e25..49c285ab5225c905d408392ba5836f7b52678525 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 6713e528e0d11b19999b3ca0a0319bb69c67a04e..b7c992f1871ffb92349142ba362ba22a0edb9561 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) */