From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: master 37889523278: Add new `swap` macro and use it Date: Sat, 27 Jan 2024 15:56:14 -0800 Message-ID: References: <170452579053.27998.16123231327386305897@vcs2.savannah.gnu.org> <20240106072311.28B8FC0034E@vcs2.savannah.gnu.org> <87plye9ahs.fsf@yahoo.com> <83o7dyua0d.fsf@gnu.org> <87le9297ei.fsf@yahoo.com> <87cyue92fx.fsf@yahoo.com> <877ckm8uzz.fsf@yahoo.com> <83v886sgtl.fsf@gnu.org> <4719da9bc2bbcffdb634@heytings.org> <87bk9o1ooo.fsf@yahoo.com> <87ttncw6qz.fsf@yahoo.com> <87plxzwk2u.fsf@yahoo.com> <2f5a5ec4d5397d558f7c@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13855"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Gregory Heytings , Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 28 00:57:03 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rTsXn-0003N5-Gw for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Jan 2024 00:57:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTsX9-0001Pe-RY; Sat, 27 Jan 2024 18:56:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTsX6-0001PN-2L for emacs-devel@gnu.org; Sat, 27 Jan 2024 18:56:20 -0500 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTsX3-0008Vv-Ea; Sat, 27 Jan 2024 18:56:19 -0500 Original-Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5102b43035eso1423833e87.1; Sat, 27 Jan 2024 15:56:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706399775; x=1707004575; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=O1Hj+g6LkWVWk00phgWwDhefT8WgdM6l+pYJEpKC2r0=; b=P7y8IlDTMTPfie6GIfc22FPYbEKFGX9yiNk6Qos4IbdDxmmkmNzbjDFILRBjHL1Pqg IUpyQ0TefnWvNiOxceixFGnfJCFDWgkMPoHKohlxVXHsWYerc14ezmMtA0egLhwJoiQ6 TXGxuk/W3sr4x0i/xM3iBtvSHe35l80R1kMvNkF3UByEQM2cbQeiLbR7qDQqMzGmaT9R S/FJ5ahaGURjlX4vVtXSSEJaJq6kW+LaPNnplCzQXJbTaEYyI0apmp5henlWdYSqGjIW IjkZJPho7Si1Tj8V5NJxO8hZSueXHCjVTGh4DnlhoYjmbKwMHD9GBRc7wjZ5UJeACGRq GlSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706399775; x=1707004575; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=O1Hj+g6LkWVWk00phgWwDhefT8WgdM6l+pYJEpKC2r0=; b=ufhEgj4OsV6Dy+YjI6ovMsrKT4yFWk7V3GHINDQyNAQYFVNYuepygggH0XjLkvMu7E I4Q5v5GLw8XkKpICmD8RLM22EpAsgKUTZoIEZ6nH1Tvs1RTKDOaV4jlBzyfnMb4nagQ9 34Klzchsd6yBsnfyQ2LTXWMUrHJelDl2P0XzLutqFYhJBhMZ79VxuWVrFCbVFlYYIj0b 1Pq4bLa/19SBchKHWNicp2lwiJeeJ5YjRj+VFyVIXPXfu3VZKmvUNhsKzSREVTM23HxZ 9O0w/oEE8mqLL9DRM9BhiqxrxqeOGJXZDm3Ww4J+BXf8IPMED80KPO792Shx7uTlfT0t JbyA== X-Gm-Message-State: AOJu0Yz4n3a7KxEJZsfTWNrQQ9JJC03317EKHPIfP23udkREk7kX26bF sYYb082mcDq/703gOEw0tVIXc8Zj5C/Y4Z+c3uG+NT9qp9EuGtWAsrd9z0ALIKdFHAcKOaSEnIU rHxBlq+9NKj0TE5C+tIy6HO5CHuo= X-Google-Smtp-Source: AGHT+IH7M5TZQ4g92UZVgMwBbfT6h8caoe5sF3Wlbvct/x+lc+yZeCSfbBbFP3wI9IFIo0HLfR5j7ZHcO2oGXjS/IBc= X-Received: by 2002:a2e:a403:0:b0:2cf:2bf:2844 with SMTP id p3-20020a2ea403000000b002cf02bf2844mr1204823ljn.52.1706399775032; Sat, 27 Jan 2024 15:56:15 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 27 Jan 2024 15:56:14 -0800 In-Reply-To: <2f5a5ec4d5397d558f7c@heytings.org> Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=stefankangas@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315503 Archived-At: Gregory Heytings writes: > - this is about GCC < 4.8 (ten year old compilers) > > - on a specific platform (PowerPC, which is rarely used nowadays) > > - on which GCC displays a bogus "value computed is not used" warning (a > warning, not an error!) > > - when __typeof__ is used in a cast operation on the return type of a > function. > > That's a far cry, to say the least, from "__typeof__ is unusable under > compilers older than GCC 4.8". This is my conclusion as well. I've spent several hours trying to track down the actual fix in GCC to get more information about the severity of the warning, but had to give up because the time I had available ran out. The reason why GLib introduced their change, AFAICT, was that people wanted to compile some program depending on it with -Werror. Based on what I found so far, which honestly wasn't much, I think it's just a bogus warning, and nothing to worry about. If anyone can provide more information about this that would point to something more critical, please do tell. It also remains to be seen if we will even get that warning in Emacs, since it might only show up under specific conditions.