Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w666G-003wpm-0y for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 12:15:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w666C-009X3W-2E for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 12:15:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w666C-009X3O-1I for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 12:15:36 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w6669-00000001TRD-2fvI for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 12:15:36 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id AE3B91D00271; Fri, 27 Mar 2026 08:15:31 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Fri, 27 Mar 2026 08:15:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1774613731; x=1774700131; bh=SYNfWrKp0bAgR/G1NYAl6Psy73wRRgKn hJw/L6viWRI=; b=mg31jDiEEiPbDqGr1qlT91nZqPRmdNCjNLwYg34FeiK7Sfls 4UAOCYItdSzxMFo1NbkOGc39Mvb/vGCKFModkMdyGX8cJMAHrO3i7vml95DUuzJE ht5wms2dSw0jBh4w9brPrFO8STd+ZtCnqyEMml1YAcn7/PHSnjkv0ut7zku5Rd4P ZKyWRtW6M0UE42TYZoGJNQ4/xUEfjppL01AjhsXIJYTBl659VamIR9BtyyRvc1wA MnAl9cpuWVv3AiYE3Mb28ORN2iNKPEuV6cZl48PrBvcPEs/lr6tGp/390mqvqQKK vvxngsC7wrJe6LtTK7EdZGImHSjnqJtyKvDb/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1774613731; x= 1774700131; bh=SYNfWrKp0bAgR/G1NYAl6Psy73wRRgKnhJw/L6viWRI=; b=W YyL87upkR40BcbNTLyCiPyBsoS3756Gfu3rlVF56EvfQtBDxOeDn54W/X/IDDPiz E89/oZglCOclMDP4pfohH4pKYM5bUPEM9DGB4fd2c70g7r/Tw8ZIK2tl/MG5UtX7 WaHxX45GEF9qNblG+E3ZkfXDMfFjaIdPgd0hG/WE0+glbR+VdEXZVJlbDYNRGUh/ tl/SmBSYJOzOWfvCPXWkUx5HqIufuBuIZ+21NLN5I1fDXDew86lzWK1cEbLA4m5E dFbO2JUQto+EdN40Nb50NyFQ8M2pemSZNP+peYpcd5D4CrRfgsFTxbwZVLR+9PeT CXG3sRGMFA8v9LEJ+p5tA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeffedtvdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejre dttddvjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhes vghishgvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpefgjedthfekfedtue fgieelheetleejgefhueeltdfhueetvdffudekfeejhfegheenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrg huthdrohhrghdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepsggvrhhtrhgrnhguughrohhuvhhothdrphhgsehgmhgrihhlrdgtohhmpdhrtg hpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhl rdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Mar 2026 08:15:30 -0400 (EDT) Message-ID: <7bf60ab1-2b5d-4a77-93ce-815072a0a014@eisentraut.org> Date: Fri, 27 Mar 2026 13:15:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Enable -Wstrict-prototypes and -Wold-style-definition by default To: Bertrand Drouvot Cc: pgsql-hackers@lists.postgresql.org References: <44885d54-0376-46b3-b574-59e0e3098580@eisentraut.org> <4ab608af-2f90-47d8-88a5-6329f6630fff@eisentraut.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 27.03.26 11:07, Bertrand Drouvot wrote: > That looks ok but I wonder if we should also add '-Werror=vla' to it ( > and remove it from common_warning_flags) to be in sync with what configure.ac > is doing: > > " > PGAC_PROG_CC_CFLAGS_OPT([-Werror=vla]) > # -Wvla is not applicable for C++ > " Hmm. This comment is not actually fully correct. With g++, you can write a VLA and it will work, and also -Wvla will warn about it. So we should actually add that option to C++ as well. (It is true that VLAs are not in standard C++, and g++ with -pedantic will also warn about it.)