DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 525GIUrJ4181433 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 525GIUrJ4181433 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=N1bAVyZP X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 262313858433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1741191508; bh=vh7bBlH9S2M2UKrhwkju9cfngcb9DUYZccu8BHPS15k=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=N1bAVyZPvThnY0v+ugtwJPF7e/JauES1Iw6ED+651HVslUYY7oDwMIgao3AQZ0Y6O f4GljNcivifPhtmp/6POoRX1XblDMxJMJ9fBbmZzWIZxbIYVbyiE/zOUWtvYQmmgIE oPxRHADbb0EOCv3987Hk9Avsm0JdmgyOySlTXGlU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 64BBC3858CDA ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 64BBC3858CDA ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741191408; cv=none; b=cXMca9VSyBXHNXECHEweT1ZoYke6X5uX6Y6aVCWuvF8np5BC5hQNDwbYnpB/2k1XBlf/Ja16RgHPKr/YKEKrNlQ1W0JgrCgInnGtrEJqspvDWYTq4E6Ot5mWkAfkdL0lXN3k/YwWw9WkFumgbFqPkazmuTkE9ptexR08GAB/vjg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741191408; c=relaxed/simple; bh=TgxUDlVuvCNtPP1Chy3pO6xCy1Vxq2GWmTB2UQCFH9Y=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=QZ9UdhfbC3KSUHhO0pMlPLlDXtL93mSDapOxq8xevQ7scyNFVMvBXStRDb44c3TQh49sl0dqi3L3Yiu1lmHfM8cO9kzFw2qRd2zJNYnQCx2xbiKtUTpgtYF8Uv/bHZebDCobeSHFIwpCbiORboNAj8M6lcRnvNMaZTX1hvnozKg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64BBC3858CDA Subject: Re: Cygwin 3.6: clang cannot use /usr/include/unistd.h, issue with |setproctitle_init()| ... To: cygwin AT cygwin DOT com References: Message-ID: <112c2ecc-cfc6-86d4-d7b6-bce46d92197e@t-online.de> Date: Wed, 5 Mar 2025 17:16:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 SeaMonkey/2.53.20 MIME-Version: 1.0 In-Reply-To: X-TOI-EXPURGATEID: 150726::1741191386-B67FB9FB-C1708AB4/0/0 CLEAN NORMAL X-TOI-MSGID: 28fa2d3c-3019-422f-a883-2ad80602d222 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Christian Franke via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Christian Franke Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Roland Mainz via Cygwin wrote: > Small issue with Cygwin 3.6 (3.6.0-0.419.g3c1308ed890e.x86_64) system > /usr/include/unistd.h and clang: > ---- snip ---- > $ clang --version > clang version 8.0.1 (tags/RELEASE_801/final) > Target: x86_64-unknown-windows-cygnus > Thread model: posix > InstalledDir: /usr/bin > $ clang -std=gnu17 -Wall -Wextra -g foo.c -lntdll -o foo.i686.exe > In file included from foo.c:37: > In file included from /usr/include/unistd.h:4: > /usr/include/sys/unistd.h:218:42: error: parameter name omitted > static inline void setproctitle_init (int, char *[], char *[]) {} The error is valid because the addition of this very old C++ feature took a very long time :-) clang 15 says: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions] gcc 12 requires '-pedantic' option: warning: ISO C does not support omitting parameter names in function definitions before C2X [-Wpedantic] -- Regards, Christian -- 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