From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m0.truegem.net (m0.truegem.net [69.55.228.47]) by sourceware.org (Postfix) with ESMTPS id 799623858D39 for ; Mon, 6 Mar 2023 09:14:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 799623858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=maxrnd.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=maxrnd.com Received: from localhost (mark@localhost) by m0.truegem.net (8.12.11/8.12.11) with ESMTP id 3269EY7Y028194; Mon, 6 Mar 2023 01:14:34 -0800 (PST) (envelope-from mark@maxrnd.com) X-Authentication-Warning: m0.truegem.net: mark owned process doing -bs Date: Mon, 6 Mar 2023 01:14:34 -0800 (PST) From: Mark Geisert X-X-Sender: mark@m0.truegem.net To: cygwin@cygwin.com cc: Marco Atzeri Subject: Re: type mismatch on cpuset.h In-Reply-To: Message-ID: References: <41f9bb68-d5e0-58d7-701f-a84b9db6b9a9@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Corinna, Marco, I will look into this shortly. Sorry for the inconvenience. ..mark On Mon, 6 Mar 2023, Corinna Vinschen wrote: > Hi Mark, > > On Mar 6 07:57, Marco Atzeri via Cygwin wrote: >> Hi, >> >> building latest gdal I noticed a type mismatch, that forced me to build >> with "-fpermissive" >> >> on /usr/include/sys/cpuset.h >> >> #define CPU_ALLOC(num) __builtin_malloc (CPU_ALLOC_SIZE(num)) >> >> >> but on >> https://linux.die.net/man/3/cpu_alloc >> >> cpu_set_t *CPU_ALLOC(int num_cpus) >> >> >> so void* versus cpu_set_t* > > Marco is correct. cpuset.h was your pet project a while back. Would > you like to pick it up? Maybe we should convert all the macros into > type-safe inline functions, or macros calling type-safe (inline) > functions, as on Linux as well as on BSD? > > > Thanks, > Corinna