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 1w2tAM-000hYW-20 for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 15:50:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2tAL-00C4a4-0N for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 15:50: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 1w2tAK-00C4Zw-2h for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 15:50:36 +0000 Received: from mail-dy1-x132c.google.com ([2607:f8b0:4864:20::132c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w2tAI-00000000xLg-0XGT for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 15:50:36 +0000 Received: by mail-dy1-x132c.google.com with SMTP id 5a478bee46e88-2c0e3a2605fso113502eec.0 for ; Wed, 18 Mar 2026 08:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773849032; cv=none; d=google.com; s=arc-20240605; b=IFSzwStzfmjloOGiB+WdazQ/pAs3wtfW8TItjXFFd0uoV3kEgVSNJI7+Gn/gp9tdtl 0mfeh1mcncV+gpnONRXm1Sun3hsW1vFAb3gAazOBsgKOtaadjj1/uuuvEZsHG00sQBWe 0RfJNWRWFisaigQIgsI6kVd4IatiuL208o9Q7MzZUSwmk0s7wjwqdOwQdzZtEi0rOqKN ElSXD82wp5OK6i8HsE4HN5QkzhtPufaSRO9LM4b+TXl6EggAC/QCGwUkH8DHhA377R5l /oMC4PvZOYxbuReSmZeGW2xxdbOBVfXjF49WykJ5wCMyfxhE6aPlVHgwzbG9WaH0EUax xdGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ccmDd2OfChhIBRlfS6NWSfRLdWXkK3pz5JZcDLTC64I=; fh=I1OWQPv5cLBDS/swBVP+b1tHUZAHnFF5y1whBEB1YGc=; b=OqM1cjieM4CjnB2mw60m4/1fVGgVn8Hj2lFOdTzJceMzORKWIbHCfSpSO0vCHl1kuh QYjY3U1eRbY/x7acwGYCdpVt8msgkmYQgp/cjCJDe6gQQV9zNqZ9/aX3K0dez1zIYxSn 9nKVSVzg3S683K0x+zMrevsunzAE1IPX2oSGrX/KL9nJOnmoK79WiIpFKHjR3cc3hlWe klUPPHy9vD5ZQKrx+g24vbADi2z5u7Fzj7XEpldRfuXHtOR99WN++e6X5rXJuIPzxUul eGzQl9dE/DWew9P6lhzLg6Wiv+DhmJecu2lkgKRuGqXOLVpUYpNXxbgWvUZi3NhQOG+C CxhQ==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773849032; x=1774453832; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ccmDd2OfChhIBRlfS6NWSfRLdWXkK3pz5JZcDLTC64I=; b=Qp9QRez6L5UngZqJ/gLICcyH2siIDrNX3000s8nRqyYv1aYRjDCzmfY3C+e0I3eNDH ncqxK7+osBGbkdsu6hIb9/OTYD05q3XIuOR34a8bBOaSS5l9j0/FqowgCpRHtR3A/cnp 1Gi6Vorn4Q+daOSAZwyVPwS0FDAIrSZkZPOcXM8Z3jz7Itm4fdmG8Jy6I6x3zR+IphGU +IN4cHwgoGScp3e/i1IP1fPuV3ZMmS8k1qOx/RkVJHDYJfgRIqw8oRkYwACRtDkDxOF/ WYJiVJbjxTgNh9Oqf9UaPzKTKPpoVb+dC/2iQikV+Mrmo6lYPhDVxcayhNwcUt+/+gQj NEAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773849032; x=1774453832; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ccmDd2OfChhIBRlfS6NWSfRLdWXkK3pz5JZcDLTC64I=; b=s5JkNGwBEnnDw23D/oqsFzGt++kDC7jG7AuQRtPFt3Fu6i8E7qhe3FSEZ0bXcJspoV EI3eMRSi7E5Dzi1K08Y3ScZGfiVx0XUvzo8B5qm0bbH3O/PaFuvbtD+lRp+4HwHX0dqy UuUACy7sFx/HLnzbCTB09I/SnWYvijbN9ZnPKibLKj8H4ojRQRAee2mJDIQp58tqCd92 5BhEmgM9Q412ZKbt8emk9SfBwEu3phwYNGWXIviKf1VLH/GGz8iMaAEiZK64ypWL+QD6 tYEhHPZK24eAVRroCE2ZhTHbT78mEoxQVVdbkrZD3YZ7MxRVnleUlaMKncSXO5U5g//f g8dw== X-Forwarded-Encrypted: i=1; AJvYcCU7Kbs+y1+Lw1c3Qs6JN41NS9X2ohEo1jeZOuxtYm/S6otbPngKNbsRVGt+oue3mDA4ArC8nAvVxs7FhIg9@lists.postgresql.org X-Gm-Message-State: AOJu0YydQr/dZo7o5pZvwDzYMr6SJeu5vl3x5dzx4ugdRPpkxvnmoF1t tQFzGnDKiLWJoRYNCQYtYVc1y6pQYnPD/6L1HKrI9OdoyVlWYaZ6+7nsezGtVAcOasn367lIzNg nX80739nqZwrGxiMJseCV7l+GKEfZq70= X-Gm-Gg: ATEYQzwEbOdwDKs8PrcibmOMOxMtHp2Jo8qNyk57QUT0Wz9P1carO039qNMi5ce8RVw O90vo0aSp+59+ZBF99UvrZhEfBXNaBRheB2A7AVE/59VLxieAofJoMmkLM7ZgGuvEAj94frifFJ yI5Ot4QWxjsDxKbXYbXNpEekZ0FU53WJqUxmy3ezZVsumbzBxXgFjZR7sinFwFE1kJQaFFO9KRM SGXVF9RE7bdLJbrg2MP1CvDH9hvcRYgyLZYwYwRDa8G6n4DDcj6iD5XR7r2IACiZBBsMY4ejw6+ dFhaklS/e37OV4FcKg== X-Received: by 2002:a05:7301:7c0c:b0:2ba:8018:cc53 with SMTP id 5a478bee46e88-2c0e51514ddmr2023373eec.35.1773849031725; Wed, 18 Mar 2026 08:50:31 -0700 (PDT) MIME-Version: 1.0 References: <44885d54-0376-46b3-b574-59e0e3098580@eisentraut.org> In-Reply-To: From: Nazir Bilal Yavuz Date: Wed, 18 Mar 2026 18:50:20 +0300 X-Gm-Features: AaiRm51stUnVZxT48iXjEHDjUakAHt7b9A5G1yV34PWOwt3OjfGuE7ZZ-jSTCXE Message-ID: Subject: Re: Enable -Wstrict-prototypes and -Wold-style-definition by default To: Peter Eisentraut Cc: Bertrand Drouvot , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, Thank you for working on this! On Wed, 18 Mar 2026 at 16:32, Peter Eisentraut wrote= : > > On 16.03.26 10:55, Peter Eisentraut wrote: > > On 09.03.26 17:39, Bertrand Drouvot wrote: > >> 0001: Prevent -Wstrict-prototypes and -Wold-style-definition warnings > >> > >> It fixes the remaining warnings that those new flags would generate. > > > > I have committed this one. I'll look at the rest next. > > Also committed. I got this warning while running headerscheck after this commit: ~/Desktop/projects/postgres/src/interfaces/ecpg/ecpglib/ecpglib_extern.h:22= 1:40: warning: function declaration isn=E2=80=99t a prototype [-Wstrict-prototype= s] 221 | void ecpg_init_sqlca(struct sqlca_t *sqlca) Another topic is that, CI already catched this [1] (and other not related things in cpluspluscheck). However, it seems that since we run headerscheck and cpluspluscheck with the '-fmax-errors=3D10' option; CI didn't fail. It would be good to remove '-fmax-errors=3D10', though. [1] https://cirrus-ci.com/task/5166361724321792?logs=3Dheaders_headerscheck= #L0 -- Regards, Nazir Bilal Yavuz Microsoft