Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRrDE-0007Gh-M6 for pgsql-committers@arkaria.postgresql.org; Sat, 18 May 2019 04:44:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRrDC-0006s4-82 for pgsql-committers@arkaria.postgresql.org; Sat, 18 May 2019 04:44:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRrD9-0006oh-P2 for pgsql-committers@lists.postgresql.org; Sat, 18 May 2019 04:44:45 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRrD6-0008Sh-JJ for pgsql-committers@lists.postgresql.org; Sat, 18 May 2019 04:44:42 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B37E13B1; Sat, 18 May 2019 00:44:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 18 May 2019 00:44:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=zMPWJHQ0vM259eMdgD9tYcyom3H 5qQCZIeiO2oWhfOM=; b=sh8/hv9M5wIcFeJicPWJrZi3pU5ogu8HmmFjs0odkKp VLHWps1VPnO9Hll5F04SmmKxz8HXAd42rz4fj0hbzhSWXGzvMgRt4pTMGe7IEy2w Ua7FTdI/3y7+LkeZasNTe0duIkFMRej2PvIvcv9/Ib3phq5JBi/WRDpJS3S6icvh SayPckepGoYuNt7WeXqOb33RkdjUDKd7l2sCPiUIQa3BaVZ8va9ZKJW1hBKaPueh 4S1ObsEb00+2lBdR/URCCL0RBqN+EOEEmtdSLi9FZC9wLwGkRvEEwoUffdvpu4we h4fFbqHW9dqPf8eXE6U1zU80iShLqASX3lMQoHqWxCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=zMPWJH Q0vM259eMdgD9tYcyom3H5qQCZIeiO2oWhfOM=; b=5iKK3dH3dogbxcWUapRD0d QtEoNPMbwUFKzXKblIb6FBb2I8N6WZq0IlEpjZHPNrjm0MvbETceN16w0lLV0h7I FrWdmlOsJ3aD1RzFFZysreN7F9XS0W7wqz41U73gPVYyO0tXpuvPrjqkx7fZWWLV ODE4Xftm/o0ANGfDE6ZzNjvKgswyYBiKmmmWpoSqIFYayzOYmRJnY5UmXqsKVyRz Wc9g856vZb0DVQeVdvbsqGRr5VcwcaP/RD5i8TAr+Y4TjFFrjf0eKdLAcKNV1yQj 58Ba4Qhmu5YEc/FBPimX9/606VIgqlkSxM8BmFHkK1boOGMI7wmwXJQS6ZR6cwSw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtfedgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghn rghrrgiivghlrdguvgeqnecukfhppeelkedrvddutddrudegtddrudejudenucfrrghrrg hmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggvnecuvehluhhs thgvrhfuihiivgeptd X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 2CC9C103CC; Sat, 18 May 2019 00:44:37 -0400 (EDT) Date: Fri, 17 May 2019 21:44:35 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: "A void function may not return a value". Message-ID: <20190518044435.dpwg3aar43emt57w@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-05-18 04:40:51 +0000, Tom Lane wrote: > "A void function may not return a value". Darn. Thanks. For C only, warn about a "return" statement with an expression in a function whose return type is "void", unless the expression type is also "void". As a GNU extension, the latter case is accepted without a warning unless -Wpedantic is used. And no, no thanks to you gcc. -pedantic is entirely unusable. It warns about extensions we explicitly test for :( - Andres