local-madvise_warn
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 18 Jun 2025 04:49:31 +0000 (06:49 +0200)
committerAurelien Jarno <aurel32@debian.org>
Wed, 18 Jun 2025 04:49:31 +0000 (06:49 +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 3ce919ed4f0a0ec687baa6d331fbe8b6dd91cd46..295c323250618050bb3a4f57c98ceeddabb467f2 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 89c6cf5535f7a6f7971241bf075c8248dc77b4fe..289038c8d010132f55dd10f94ce7bcf1fd098345 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) */