local-madvise_warn
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Fri, 5 Jan 2018 18:09:39 +0000 (18:09 +0000)
committerAurelien Jarno <aurel32@debian.org>
Fri, 5 Jan 2018 18:09:39 +0000 (18:09 +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 3239561c973b2dc6f2e1d9cb3fdb33ccd6d07f20..8a64907296b2376ea0f9fa16904f655e98efb7a4 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 19f2bad4dd696c0fa56f2fd2fa8b6e88a90de0d6..772f3718f48e8fe0e672026f54c7df544c93524e 100644 (file)
@@ -27,4 +27,4 @@ posix_madvise (__ptr_t addr, size_t len, int advice)
 {
   return ENOSYS;
 }
-stub_warning (posix_madvise)
+/* stub_warning (posix_madvise) */