From patchwork Mon Feb 19 20:00:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 203257 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp11681dyc; Mon, 19 Feb 2024 12:01:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV8UeHojTa1FtNPIVWJaJ1uNbVTUPSNis59kiTwxJC4shktd+2YnaaQj29WUw4aGQgVKZLHQDFtK82cmiv/BGWKkO/xFA== X-Google-Smtp-Source: AGHT+IFxwkCIrqdEoQrAmAyIQX1u6yB0wfwdhixzUTriLCBnlUoOBKuH8VxlvNRk1HvnNKYSY8ob X-Received: by 2002:a05:6358:4e46:b0:176:40d5:2bd5 with SMTP id le6-20020a0563584e4600b0017640d52bd5mr16879597rwc.6.1708372901913; Mon, 19 Feb 2024 12:01:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708372901; cv=pass; d=google.com; s=arc-20160816; b=fKNOndmPetU7UzP6qYmAX2pvPBXPKBFhaGox6SJILQbP6vmJKejWirGUfEt+GVL5pN rimMRPPbDbgBCISZ3s+KSlF0AUt8DkmYl6ZGVaQPu2nR6JQ9Hyj08sq+7zLO7ju6tNk+ U2haUVTpqpv6L5aqIgI72uvinraZnLMiPB/Z6+4iqO3lQOuaL1HonWBAq3cyR7qn1l+M 9s4UtuKMA7Agc/71gEB4ztcfLjwCSMqLE1KcHWM1s3coaZvAHxLmdrBbInYq651Znmk6 3j3n0yP2+QeWqkDJ7hr50BROd+nlm37p4XtL/v1pq6pjlW4har8H9RIRNJ1hOxBwnK1A /taw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:message-id:date :subject:to:from:arc-filter:dmarc-filter:delivered-to; bh=Cb91XDkuyVsgKB3sYB6Vr/Z4OnMHxUfEQBmES7Mzqkg=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=gW6t/VARfG/aBT4vxrxeCaxvX0GQ37DtQz2v/d/MGiexcpYl1gdwJHkXoP4++NtjAr wImMiW9fJgy3wRIck3rbyhVkvz2qks5vKQzsWLcohYo5RAzxRsXJNC8laW3kfE/SoaOh ajSuelB5rSw06Lulb5LlnwVSwVB/1M8mPuc/wA79akZtiMDJwh5pI08fSA4QO4G99llC W1kSzJyA5oJZghJViD0MVVAUFUSTwMfuGwj1M6ly27oU0T/N/MsaZ4blvNQ3dZT+SSqh VirDOqGmhONKS85i+/B9WnBFn+0tZOnyiOzjE9nK+DG+tLny63+/5MFXRWGWi1HrDx+G zhGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f22-20020ac859d6000000b0042e0bafa3d4si3713139qtf.264.2024.02.19.12.01.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:01:41 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7EF713858C53 for ; Mon, 19 Feb 2024 20:01:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cygnus.enyo.de (cygnus.enyo.de [79.140.189.114]) by sourceware.org (Postfix) with ESMTPS id 026F83858D33 for ; Mon, 19 Feb 2024 20:01:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 026F83858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=deneb.enyo.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 026F83858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=79.140.189.114 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708372861; cv=none; b=QzBwm3LfAM5CUQYDGSOpwH+idPiG94fPC74AzreqrS1oFc+zHYcVRSnxzLL3Kc1RJ8+de6UF3gI92QZgU0czdg4OMhUsIerMuRq23jtUZ40jTUSruL83MODZgYcuTLuJXbzoI91DiWYzGxqwYZpI4t5WAt2CGkhOeT55haDNOEQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708372861; c=relaxed/simple; bh=fU0d5oRh//cBPPTnpOzxN62xOm8aLirvJRn7BRj9kF0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=r6Ll65cXJsXYATj6fccFPUEXhhd3mbh+KIPgsC7/iLYKpN/ucgr+az6bLBw2q9CNga+I8hjskPOoV0Zha7GLZRdl6JxNRoYOHpax0whnDq4ylM0N6QLA/lKTrf7KugyvzvPJuqJOMFD+7nisw5OMhDpUFYs9kt+ak33imxokNCQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from [172.17.203.2] (port=45471 helo=deneb.enyo.de) by albireo.enyo.de ([172.17.140.2]) with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1rc9ot-004gTt-Q6 for gcc-patches@gcc.gnu.org; Mon, 19 Feb 2024 20:00:57 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.96) (envelope-from ) id 1rc9ou-000ZSk-2r for gcc-patches@gcc.gnu.org; Mon, 19 Feb 2024 21:00:56 +0100 From: Florian Weimer To: gcc-patches@gcc.gnu.org Subject: [PATCH wwwdocs COMMITTED] gcc-14: Fix unintentional error in -Wimplicit-int example Date: Mon, 19 Feb 2024 21:00:56 +0100 Message-ID: <87o7ccdy13.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791358823573962266 X-GMAIL-MSGID: 1791358823573962266 diff --git a/htdocs/gcc-14/porting_to.html b/htdocs/gcc-14/porting_to.html index bbbaa25a..901a1653 100644 --- a/htdocs/gcc-14/porting_to.html +++ b/htdocs/gcc-14/porting_to.html @@ -92,7 +92,7 @@ below). In the example below, the type of s should be
   write_string (fd, s)
   {
-    write (1, s, strlen (s));
+    write (fd, s, strlen (s));
   }
 
@@ -103,7 +103,7 @@ disregarding error handling and short writes): void write_string (int fd, const char *s) { - write (1, s, strlen (s)); + write (fd, s, strlen (s)); }