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 1nmyyN-0007PQ-66 for pgsql-committers@arkaria.postgresql.org; Fri, 06 May 2022 14:30:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nmyyM-0007RB-2n for pgsql-committers@arkaria.postgresql.org; Fri, 06 May 2022 14:30:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmyyL-0007QW-Qs for pgsql-committers@lists.postgresql.org; Fri, 06 May 2022 14:30:21 +0000 Received: from ewsoutbound.kpnmail.nl ([195.121.94.167]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmyyH-0002Jh-Us for pgsql-committers@lists.postgresql.org; Fri, 06 May 2022 14:30:20 +0000 X-KPN-MessageId: f7b9465d-cd48-11ec-92d5-005056abbe64 Received: from smtp.kpnmail.nl (unknown [10.31.155.38]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id f7b9465d-cd48-11ec-92d5-005056abbe64; Fri, 06 May 2022 16:29:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:subject:from:to:mime-version:date:message-id; bh=oOfERQTIXSwocEljKB4lZ9h8co58L9SdFF/gU78WTEk=; b=CyTCbdzw1mgdR/uKF/fRqpMa5rmt5da/leQ4KPYuyAee0BQFlPSC/vCLTEKqhxSXdTXaCA6iCkzZa SDTaQMEsDuOvJTBvuI9bhIFcP/UyaRw/MJcWi5sF0dgqT8hqkFX2eQ7j/2dcKiMV3WAvofxTg/graK 6vy0gk4LJSKHojQhazQuBldOj1SsiDq6d/q401zmB9rgLFjsXnrQvSDlBAxeHqno0VIyc9bwll2RSN NHOiSnFS17D2qraVgZiU4C3WFHYk+tq+pbvSKOA+9gzDGqaQ/RN5/w6G+HcypM6/IVsJC7PvmdDRma qVdyP0E8LgIhY3zoToyFI6tLdzrc2iA== X-KPN-MID: 33|tpce2COOVBVq2mL3VzSrSUyF504s/c7XsLhaxOHyYMFCcIHiPv9GxQTbWY9gRx9 l5luvVUzsp3IziyvnRxc04EbdzOE3yJvifRbqANZ3L9U= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|ZxgYwEBv1JxjCJsBhW36gwCGszDfN4mjesgPAF099wt2iU63avrpEn56fonmjzT CMBsHzQQC9XFvxyO++7BycQ== X-Originating-IP: 45.83.234.25 Received: from [192.168.178.20] (unknown [45.83.234.25]) by smtp.xs4all.nl (Halon) with ESMTPSA id 07ce7ace-cd49-11ec-99a3-005056abf0db; Fri, 06 May 2022 16:30:15 +0200 (CEST) Message-ID: <44790980-fdba-81aa-5432-190b36693564@xs4all.nl> Date: Fri, 6 May 2022 16:30:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Content-Language: en-US To: pgsql-committers@lists.postgresql.org From: Erik Rijkers Subject: gcc 12.1.0 warning Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, Not sure if these compiler-mutterings are worth reporting but I guess we're trying to get a silent compile. System: Debian 4.9.303-1 (2022-03-07) x86_64 GNU/Linux Compiling with gcc 12.1.0 causes the below 'warning' and 'note'. Compiling with --enable-cassert --enable-debug is silent, no warnings) In function ‘guc_var_compare’, inlined from ‘bsearch’ at /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:33:23, inlined from ‘find_option’ at guc.c:5649:35: guc.c:5736:38: warning: array subscript ‘const struct config_generic[0]’ is partly outside array bounds of ‘const char[8]’ [-Warray-bounds] 5736 | return guc_name_compare(confa->name, confb->name); | ~~~~~^~~~~~ guc.c: In function ‘find_option’: guc.c:5636:25: note: object ‘name’ of size 8 5636 | find_option(const char *name, bool create_placeholders, bool skip_errors, | ~~~~~~~~~~~~^~~~ (Compiling with gcc 6.3.0 does not complain.) Below are the two configure lines, FWIW. Erik Rijkers # cassert-build: no warning/note ./configure \ --prefix=/home/aardvark/pg_stuff/pg_installations/pgsql.HEAD \ --bindir=/home/aardvark/pg_stuff/pg_installations/pgsql.HEAD/bin \ --libdir=/home/aardvark/pg_stuff/pg_installations/pgsql.HEAD/lib \ --with-pgport=6515 --quiet --enable-depend \ --enable-cassert --enable-debug \ --with-openssl --with-perl --with-libxml --with-libxslt --with-zlib \ --enable-tap-tests --with-extra-version=_0506_HEAD_701d --with-lz4 # normal build: causes warning/note: ./configure \ --prefix=/home/aardvark/pg_stuff/pg_installations/pgsql.HEAD \ --bindir=/home/aardvark/pg_stuff/pg_installations/pgsql.HEAD/bin.fast \ --libdir=/home/aardvark/pg_stuff/pg_installations/pgsql.HEAD/lib.fast \ --with-pgport=6515 --quiet --enable-depend \ --with-openssl --with-perl --with-libxml --with-libxslt --with-zlib \ --enable-tap-tests --with-extra-version=_0506_HEAD_701d --with-lz4