From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 793ED3858D34 for ; Sun, 14 Apr 2024 16:02:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 793ED3858D34 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 793ED3858D34 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713110561; cv=none; b=tbzJne3GduzPTDDqHzf1tfdBFYTckcOHZgY/9NSfP6vq9blrZ9EuFmebUNjPbpCa6+PQVtqbxkUydXDVw1wtO5X1a2Ii62O8INyHjq8xzF6U4PeZwPGCITwd50t63AdYocPgdU4YF0uc8fCjnRfZx7rLJQIUC9UhQ44W6YkSyMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713110561; c=relaxed/simple; bh=WkxpxNlo5R58qKiI3aJ6zZQxZGlX37TNQzgZPghgYyY=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=aQXbzS7o++aWUiX/k4uUczoTQBqdH6LyKAMkyF8CspX6GV+fwxigY1lo2TwdT9YyDh77RhiUXXvc+ZQlOHFVKgPvXGBhrDjy6RUYn/dAoVy/REsZv4hP3bUEMbx3pBbZWDUJdg2rTbfxuVtz5jwdLfUHkhS4tq8efdaZPVQvvGM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713110559; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=T5HGg2/F1oraRB0rWEIeZz/4jQLNrP45czSyNcKfw98=; b=hX/EnF7FQ/DUKSEhbEC4qh8PIFuguL5iMfw3bB628625tS7PRSJ/SgJimEx6DPrgILzRRP q22QAl+TfZDXrZeHMlFf49OkEq8sQ1wLJMdJ6EoFDW6664a7zDZPruBxCotdN2zqqS0B+I oBW6AyzNuaJc+INC8crBY0thzpAXkYY= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-400-lb4XFgTYPoaHDUkXqkE0YQ-1; Sun, 14 Apr 2024 12:02:34 -0400 X-MC-Unique: lb4XFgTYPoaHDUkXqkE0YQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E5D5A1C05EA6; Sun, 14 Apr 2024 16:02:33 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.224.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 30CF9492BC7; Sun, 14 Apr 2024 16:02:33 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 43EG2MuT028160 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 14 Apr 2024 18:02:22 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 43EG2Lrm028159; Sun, 14 Apr 2024 18:02:21 +0200 Date: Sun, 14 Apr 2024 18:02:21 +0200 From: Jakub Jelinek To: Gerald Pfeifer Cc: Sebastian Huber , GCC Patches , Sam James Subject: Re: [wwwdocs] gcc-14: Mention that some warnings are now errors Message-ID: Reply-To: Jakub Jelinek References: <20240413095037.61941-1-sebastian.huber@embedded-brains.de> <2b4f949b-a686-3617-7f19-0458222e8e1e@pfeifer.com> MIME-Version: 1.0 In-Reply-To: <2b4f949b-a686-3617-7f19-0458222e8e1e@pfeifer.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_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 List-Id: On Sun, Apr 14, 2024 at 05:55:03PM +0200, Gerald Pfeifer wrote: > Hi Sebastian, > > On Sat, 13 Apr 2024, Sebastian Huber wrote: > > +
  • The following warnings are now errors (see also > > + Porting to GCC 14): > > +
      > > +
    • -Werror=declaration-missing-parameter-type
    • > > +
    • -Werror=implicit-function-declaration
    • > > +
    • -Werror=implicit-int
    • > > +
    • -Werror=incompatible-pointer-types
    • > > +
    • -Werror=int-conversion
    • > > +
    • -Werror=return-mismatch
    • > > +
    > > thanks for putting this together. Just a question, and maybe I'm confused: > these don't look like warnings to me? > > Are you saying that what used to be -Wint-conversion is now an error by > default and does not need to activated as such with any further options? > > (That is, it appears as if those -Werror=... flags were used?) > > And does this apply to all C versions/dialects? No, so I think the change is certainly not appropriate in that form. The porting_to.html, in particular porting_to.html#warnings-as-errors has detailed explanation on what actually changed etc., so I think we just want one short sentence that certain C warnings are now errors and refer to particular porting_to.html#warnings-as-errors for details. Because the above shortcut is certainly not true. Jakub