Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKnpp-0007Nw-A2 for pgsql-committers@arkaria.postgresql.org; Fri, 12 Mar 2021 19:52:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lKnpo-0005YF-2y for pgsql-committers@arkaria.postgresql.org; Fri, 12 Mar 2021 19:52:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKnpn-0005Y7-Om for pgsql-committers@lists.postgresql.org; Fri, 12 Mar 2021 19:52:31 +0000 Received: from lb2-smtp-cloud8.xs4all.net ([194.109.24.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKnpl-0006RU-2N for pgsql-committers@lists.postgresql.org; Fri, 12 Mar 2021 19:52:31 +0000 Received: from ox-appsuite2.xs4all.net ([194.109.29.135]) by smtp-cloud8.xs4all.net with ESMTPSA id Knpjlxr30jVXQKnpjlzCLl; Fri, 12 Mar 2021 20:52:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1615578747; bh=y5GnKG+0J5AB40ue/LxNmmctGaCI8UADemGdBRiUfks=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type:From: Subject; b=H3cp0HIy8qw6PulZ+1claGiUxfj0OxFE5NHX/Cy/TkeaTwyzXUDw6hThRENSJ4bDL Zc6hf3daU2TprxTmiS+1DC/bJSI0kODlf/SMDwvuHAUnowgA1zj5laKZlONTF29k8h bpXblbdwfTU9EmWG65N8wmIdNzeKUmNcRVk4US47QECTS9reOudQarkH9NAM2drEMl ldn61fTHixrHdLIXP5DGut0xydi2NPatOVHYwg8gg4baj4wG0tc+Cv5YynaHwO1LtI dewPgFJLDam34XoZaAKvU4CVpkJS6fAaQdya+2/DdmLXGHMdtQ9nBQZJlzAw5xjClV 9jIZl7IueBU/Q== Date: Fri, 12 Mar 2021 20:52:27 +0100 (CET) From: er@xs4all.nl To: Robert Haas , pgsql-committers@lists.postgresql.org Message-ID: <754180204.145028.1615578747289@webmailclassic.xs4all.nl> In-Reply-To: References: Subject: Re: pgsql: Try to fix compiler warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.4-Rev16 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfHAMQI9UZWuL0HX0I//5bjl7689DM6FvgWqgIlji5SZC2wuvfNdSDbTyKbDMJtfx+ycbvdrqgvn84ECzFuWU7pCogX/C4WDpQVAnc0uEa1qvRXZICGP1 7AJAQh7d5GlBHBSzYRC+xfqWqcgwmtXMRtXsPR7r/RGbIBzbHggSVijcXYzu3tRZBnPKmblDf9hG2g/ddui35gWxhqh7TrJekCBJhw87Up7FgR6lsdWdse1C +ssscMw9d0Sn5f/sPpZi9A== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 2021.03.12. 20:36 Robert Haas wrote: >=20 > =20 > Try to fix compiler warnings. >=20 > Per report from Peter Geoghegan. I had the same errors Peter reported. gcc 10.2 on debian. The compile stops with: In file included from ../../../src/include/postgres_fe.h:25, from pg_amcheck.c:13: pg_amcheck.c: In function =E2=80=98compile_relation_list_one_db=E2=80=99: ../../../src/include/c.h:118:31: error: expected =E2=80=98,=E2=80=99 or =E2= =80=98;=E2=80=99 before =E2=80=98__attribute__=E2=80=99 118 | #define pg_attribute_unused() __attribute__((unused)) | ^~~~~~~~~~~~~ ../../../src/include/c.h:155:34: note: in expansion of macro =E2=80=98pg_at= tribute_unused=E2=80=99 155 | #define PG_USED_FOR_ASSERTS_ONLY pg_attribute_unused() | ^~~~~~~~~~~~~~~~~~~ pg_amcheck.c:2061:26: note: in expansion of macro =E2=80=98PG_USED_FOR_ASSE= RTS_ONLY=E2=80=99 2061 | bool is_btree =3D false PG_USED_FOR_ASSERTS_ONLY; | ^~~~~~~~~~~~~~~~~~~~~~~~ pg_amcheck.c:2061:9: warning: variable =E2=80=98is_btree=E2=80=99 set but n= ot used [-Wunused-but-set-variable] 2061 | bool is_btree =3D false PG_USED_FOR_ASSERTS_ONLY; | ^~~~~~~~ make[3]: *** [pg_amcheck.o] Error 1 make[2]: *** [all-pg_amcheck-recurse] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-bin-recurse] Error 2 make: *** [all-src-recurse] Error 2 ../../../src/Makefile.global:919: recipe for target 'pg_amcheck.o' failed Makefile:43: recipe for target 'all-pg_amcheck-recurse' failed Makefile:42: recipe for target 'all-bin-recurse' failed GNUmakefile:11: recipe for target 'all-src-recurse' failed >=20 > Discussion: http://postgr.es/m/CAH2-WznpwULZ3uJ1_6WXvNMXYbOy8k8tYs3r=3DqS= dGmZeRd6tDw@mail.gmail.com >=20 > Branch > ------ > master >=20 > Details > ------- > https://git.postgresql.org/pg/commitdiff/d60e61de4fb4a8e7ca88204c2c409e73= 80887d76 >=20 > Modified Files > -------------- > src/bin/pg_amcheck/pg_amcheck.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-)