local-madvise_warn
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 23 Nov 2024 13:57:03 +0000 (14:57 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sat, 23 Nov 2024 13:57:03 +0000 (14:57 +0100)
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 7cdeb4111e98d124b1afae74faf6e72766b1b12a..f91790ced33ffd7d9f0c21e6b46deb2c22f471fc 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 4c44595a5d70aba39b370969cff693760e0426b4..7b8252afe9c44725ae9c2ab9ca439ee9f97c3f52 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) */