🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Peter Kokot via GitHub Fri, 21 Jun 2024 22:09
[PHP-CVS] [php-src] master: Fix unused variable warning when using libpq < 12 (#14630)
#1
Author: Peter Kokot via GitHub
Date: Fri, 21 Jun 2024 22:09
31 lines
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;
 	}
 }
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads