Article View: php.cvs
Article #1[PHP-CVS] [php-src] master: Fix unused variable warning when using libpq < 12 (#14630)
From: Peter Kokot via GitHub
Date: Fri, 21 Jun 2024 22:09
Date: Fri, 21 Jun 2024 22:09
31 lines
3332 bytes
3332 bytes
Author: Peter Kokot (petk) Committer: GitHub (web-flow) Pusher: petk Date: 2024-06-22T00:09:21+02:00 Commit: https://github.com/php/php-src/commit/678a481f62db7776156bc69eaa87aaf2ec9e6673 Raw diff: https://github.com/php/php-src/commit/678a481f62db7776156bc69eaa87aaf2ec9e6673.diff Fix unused variable warning when using libpq < 12 (#14630) The variable S is not used if PQresultMemorySize is not available in this switch at this point. Changed paths: M ext/pdo_pgsql/pgsql_statement.c Diff: diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index 1b2a59e4852a..1b2de962c5af 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -727,6 +727,7 @@ static int pgsql_stmt_get_attr(pdo_stmt_t *stmt, zend_long attr, zval *val) #endif default: + (void)S; return 0; } }
Technical Details
Message-ID:
<Xx88QvwRArr6VBAY4HXrVX4qMYh1poSSeVHf3agOks@main.php.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!news.php.netShow Full Headers
Complete Article Headers
Message-ID: <Xx88QvwRArr6VBAY4HXrVX4qMYh1poSSeVHf3agOks@main.php.net> Subject: [PHP-CVS] [php-src] master: Fix unused variable warning when using libpq < 12 (#14630) Date: Fri, 21 Jun 2024 22:09:32 +0000 From: noreply@php.net (Peter Kokot via GitHub) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!news.php.net Newsgroups: php.cvs Followup-To: php.internals X-Original-To: php-cvs@lists.php.net Delivered-To: php-cvs@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 09CE51AD8EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719007838; bh=w6Iz1sn+UY7lGL5JkMOJL7DHk+z7p32fj7bfjrXqRzc=; h=Date:To:From:Reply-To:Subject:From; b=H911NeL6409CAfJojcJjNOHwMvoSIz3ZtZkrYjMDorf6R8isiFYSqpW3SerN0T1Ah JBNgaqNcvvNWD87BoBPyjCwXCZPDgsvypp7y6LrYK1UFEP2+yAcIo5re/CTnku7zyK LDOvwK1MFnLBRbeVkcl6PmJIEL89ER8nAOVO3yBQ4L/FQI5jLgorJAwTfs+VtNc64f 9lFgsgrpa03HKKt04crO6JhepmX2UEDgGyRzMfLAl8cpY35POCqzF3iUS+VpbYK+RS ZTB/TNXfHjDiczD3Yxp8+w/FMNSbBB2SVnnYKOYpKEpfuk8/CrHacfy0fVuxLd42yr ZiXtdGBym1Atg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1C00B18005A X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Status: No, score=1.9 required=5.0 tests=ALL_TRUSTED,BAYES_50, FREEMAIL_FORGED_REPLYTO,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: <noreply@php.net> Received: from main.php.net (main.php.net [142.93.197.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS To: php-cvs@lists.php.net Reply-To: Peter Kokot <peterkokot@gmail.com> X-Mailer: PHPMailer 6.4.0 (https://github.com/PHPMailer/PHPMailer) Precedence: bulk List-help: <mailto:php-cvs+help@lists.php.net List-unsubscribe: <mailto:php-cvs+unsubscribe@lists.php.net> List-post: <mailto:php-cvs@lists.php.net> List-Id: php-cvs.lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8