[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Pacify gcc -Wpointer-to-int-cast

From: Sam James
Subject: Re: [PATCH] Pacify gcc -Wpointer-to-int-cast
Date: Mon, 27 Mar 2023 00:54:21 +0100
User-agent: mu4e 1.8.14; emacs 29.0.60

Paul Eggert <eggert@cs.ucla.edu> writes:

> * lib/sh/random.c (genseed): Use a different type, to pacify GCC
> "warning: cast from pointer to integer of different size
> [-Wpointer-to-int-cast]" on platforms with 64-bit pointers
> and 32-bit int.

Thanks for this one. I've been meaning to report it because
-Wpointer-to-int-cast is one of the warnings we flag up in our
packaging in Gentoo, as it often indicates a portability problem.

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]