X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A851C3857BB3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1678092990; bh=LlxFBTZAwiY/mraKhX3LBflKOpMkvktJPd8FCK8Mni4=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=pqz84hkebn4uLqzJH8SosbqZiqsLlCTy53p3wPkYtjowRtAIc50PhBU2DUkEArsBO G8ewYwBwo4XbNYMyW3AmstUxzIOAvv6PL85mFq35AKdlcZd3QwDuO7iQ1WD2nKT3Co A24i8ifeN+rh9thxW7vAGCgmdzHqnZos9yYY8xjc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com Date: Mon, 6 Mar 2023 09:55:52 +0100 To: Mark Geisert Subject: Re: type mismatch on cpuset.h Message-ID: Mail-Followup-To: Mark Geisert , Marco Atzeri , cygwin AT cygwin DOT com References: <41f9bb68-d5e0-58d7-701f-a84b9db6b9a9 AT gmail DOT com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <41f9bb68-d5e0-58d7-701f-a84b9db6b9a9@gmail.com> X-Provags-ID: V03:K1:7Hq4qaHWxfcZcxDDrZtOkc4552m9kBmEWJcAtSu5y6FPeMFt+30 eLU7jTL2EJrr4YWxL29v63r1WgAnzju5Upn+HLUcwITeyov+aUUMRLkv/vUhfYFJzwX9poG jRx5zepblNzPontZgIfqXirk8HuKA29+SqA+JGts1B6IIOR65FeBHq812k0dhnhEFskSPTI s1VgJAL0ErV2wZaKbserw== UI-OutboundReport: notjunk:1;M01:P0:6nNB6f4lwRM=;vV7Br6SlJfrzJlBub9Zb+sd6zSt TmVX7EKNfynwjOWwiFJX3Xmz9gORbKBT2Dvu/hUqYtlRsqnloazXe8MI+YggoO6Q0i4aEQnQG Ud/XxjNYRaIHWUjMqAleGgPm/LRPjDVA/OFTB9DrsF33NJzoOmdIUAZMFbP9+lTozm6OMGjIJ 6IMKrcjUbHV/A7s5866B1/7R9nl9iKmW5x/btmHeXeWimymSEuXVY9LLVSfDFxgRYoL4qmylF HaDsHOIEEZQUmz1ZyJOR8znc4HnCGivsHegsZ9c9UljPi/AVcLeSfgTuBnLVvb5mw5xFiNnSB 6hPdtciiVN5V/P7sCxWs9V5ozFBMMwAAWsxyp+HOhOH6A8sy7uKSSPH8UvZcSj6OM7JMdyfoX ZGOk7DGedHG9QG8HabaJu3jLxnJqBmFt/iADCgOAf0Uy5PUJzV4V78MrK234iA7yW1YZMTs7E K/iUU6FchrN1A3TLJDtsawnaOp19kzgy8/6kDz7se4XaQt7cqxuadGSH0a/45HmX75npX/Ikf AanMl8TRMl4KHJxBlkBf3Nwvta+ddgKWDXV4dWWY5VmCFnqsUAnRSmWC4fp4yO+HrsidOfjse WZ6ahTJ0jZqXtmIwIdL3x+ZXuih289Jm3dq4a6z9RL+XxracM/0EUwjZW+4QCgJstOQ185gDj aS33VVE7D5hA1WgI3vK30R72s39YafGf0LmV05oiBA== X-Spam-Status: No, score=-97.5 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_FAIL, SPF_HELO_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen , Marco Atzeri , cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple