From ba93e699e067a5d6fb8b76089926ed7a8663e7fc Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 21 Jun 2024 23:27:25 +0200 Subject: [PATCH] Fix unused variable warning when using libpq < 12 The variable S is not used if PQresultMemorySize is not available in this switch at this point. --- ext/pdo_pgsql/pgsql_statement.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index 1b2a59e4852a2..1b2de962c5af8 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; } }