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 1nwRK3-00059b-Nc for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jun 2022 16:35:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nwRK2-0008Le-CY for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jun 2022 16:35:50 +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 1nwRK2-0008LV-1Z for pgsql-hackers@lists.postgresql.org; Wed, 01 Jun 2022 16:35:50 +0000 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nwRJv-00065N-5h for pgsql-hackers@postgresql.org; Wed, 01 Jun 2022 16:35:49 +0000 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-e5e433d66dso3417006fac.5 for ; Wed, 01 Jun 2022 09:35:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=EMxin+6pzlH5+u4/4DjvJP5TZA+q2BlN0OZt0T7bDYI=; b=A0/9xfyE7bTezOyNkVgcB20t/UsKlIqGXI4ZSbWy9Zo7t4DRXC+E0n8vV3wc8kbYVQ GQ1LKKQFQdktZkt/uct4dlV7mvB4LvjMkGSRSvtAYM/OK00HZgOfUnlrBuDT5nCsQVgm K1OWjLSvfX1QgiqX+I8tS/Yl1NVywcBkEViaUS97kKnSx4mkHRI/8U8mhVmSOuBC6vK4 eeKnscargc7800j33wjBhy+n0hxOUx46zYZswplW1t7w4OlaeQZBca/IQtqAxWv2TIsr ugCe5QmRPnebWpgXgVCco0RpKvXVWEjRjxY4SyVYKbh7uv78wv2SsbYL3jQ74XdHlYnj 9Esw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=EMxin+6pzlH5+u4/4DjvJP5TZA+q2BlN0OZt0T7bDYI=; b=X+rwGkX6yyK0Hz3i7x8JUUoR1HQ/W8Af0w+6BR8LRMrlOjKNrF8Bcf+U7dJgcfoR6Q L5TwwbywPD788bxZ9eZkJ3OLMq+V9wPLdOoF9r2T28/SVRnPa2ocUq2Oz5BiME+gzpiB xMmJp9DOwA22H2i7tOy+AMBFNLubn1DJewdcbmtUDe3MKDK9ZKKQQIp9L01YI9NZAK9F ET5nFrob8x8BL1Asy3yUvYIi/ilE57E3LsokNi9Gne/7XVjluN0pDDirx20nw53pFJF+ doVqgS43LlYyrKdl4aX0lNAZMmOtxlCH+1pgx3h7kNYZHji1SKULXD9Z2Vz3PhZpacUI WC6A== X-Gm-Message-State: AOAM532BepEuvAniH46bTk9e+6GMswzklfL9tzY/pCc+f6kOROUpWUg3 21mrnSxzMvPNIOwUrmoxWPN2rq2Nh6I= X-Google-Smtp-Source: ABdhPJxIS5ZLIF+ZAX0bixDileS//5ZIr1OBi4Aq2y/XKttQhUxD8nxbaFEBAoSLEJ0qi/dbjpUlJA== X-Received: by 2002:a05:6870:f228:b0:f2:d844:ba0b with SMTP id t40-20020a056870f22800b000f2d844ba0bmr17379985oao.231.1654101340868; Wed, 01 Jun 2022 09:35:40 -0700 (PDT) Received: from nathanxps13 ([2600:1700:48f8:340f:de35:5fad:886f:cf2d]) by smtp.gmail.com with ESMTPSA id j25-20020a4ad6d9000000b0035eb4e5a6bcsm1135578oot.18.2022.06.01.09.35.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 09:35:40 -0700 (PDT) Date: Wed, 1 Jun 2022 09:35:37 -0700 From: Nathan Bossart To: pgsql-hackers@postgresql.org Subject: silence compiler warning in brin.c Message-ID: <20220601163537.GA2331988@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi hackers, I'm seeing a compiler warning in brin.c with an older version of gcc. Specifically, it seems worried that a variable might not be initialized. AFAICT there is no real risk, so I've attached a small patch to silence the warning. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com --dDRMvlgZJXvWKvBx Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="silence_compiler_warning.patch" diff --git a/src/backend/access/brin/brin.c b/src/backend/access/brin/brin.c index 52f171772d..5b564f9507 100644 --- a/src/backend/access/brin/brin.c +++ b/src/backend/access/brin/brin.c @@ -1010,7 +1010,7 @@ brin_summarize_range(PG_FUNCTION_ARGS) Relation heapRel; Oid save_userid; int save_sec_context; - int save_nestlevel; + int save_nestlevel = -1; double numSummarized = 0; if (RecoveryInProgress()) --dDRMvlgZJXvWKvBx--