bug-gnulib
[Top][All Lists]
Advanced

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

Re: emacs: macOS warning in lib/nproc.c


From: Paul Eggert
Subject: Re: emacs: macOS warning in lib/nproc.c
Date: Fri, 15 Oct 2021 19:35:53 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 10/15/21 3:32 AM, Mattias EngdegÄrd wrote:

This code in lib/nproc.c:

         if (sysctl (mib[i], ARRAY_SIZE (mib[i]), &nprocs, &len, NULL, 0) == 0

elicits a warning on macOS 10.14 because `mib[i]` is `const int *` but the 
sysctl argument is `int *`.

Thanks for reporting this; I installed the attached.

Attachment: 0001-nproc-port-better-to-macOS-10.14.patch
Description: Text Data


reply via email to

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