[PATCH] mlock, mlock2, munlock: Tell the compiler we don't derefernce the pointer
Andreas K. Huettel
dilfridge@gentoo.org
Wed Jan 1 15:12:34 GMT 2025
Am Mittwoch, 1. Januar 2025, 09:18:47 Mitteleuropäische Normalzeit schrieb Xi Ruoyao:
> On Mon, 2024-12-30 at 13:22 +0000, Sam James wrote:
> > Xi Ruoyao <xry111@xry111.site> writes:
> >
> > > Since https://gcc.gnu.org/r11-959, the compiler emits
> > > -Wmaybe-uninitialized if a const pointer to an uninitialized buffer is
> > > passed. Tell the compiler we don't dereference the pointer to remove
> > > the false alarm.
> > >
> >
> > Reviewed-by: Sam James <sam@gentoo.org>
>
> I don't have the write access, so I need help to push at some proper
> time point (not sure now or after 2.41 release).
>
No problem. Pushed.
--
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, comrel, toolchain, base-system, perl, libreoffice)
https://wiki.gentoo.org/wiki/User:Dilfridge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250101/a79ccbe4/attachment.sig>
More information about the Libc-alpha
mailing list