Skip to content

Commit 678a481

Browse files
authored
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.
1 parent 05f3304 commit 678a481

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/pdo_pgsql/pgsql_statement.c

+1
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,7 @@ static int pgsql_stmt_get_attr(pdo_stmt_t *stmt, zend_long attr, zval *val)
727727
#endif
728728

729729
default:
730+
(void)S;
730731
return 0;
731732
}
732733
}

0 commit comments

Comments
 (0)