mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Revert workarounds for -Wmissing-braces false positives on old GCC
We have collected several instances of a workaround for GCC bug 53119, which caused false-positive compiler warnings. This bug has long been fixed, but was still seen on the buildfarm, most recently on lapwing with gcc (Debian 4.7.2-5). (The GCC bug tracker mentions that a fix was backported to 4.7.4 and 4.8.3.) That compiler no longer runs warning-free since commit6fdd5d9563, so we don't need to keep these workarounds. And furthermore, the consensus appears to be that we don't want to keep supporting that era of platform anymore at all. This reverts the following commits:d937904cce506428d091b449afb5826392f2a096bad0763a4d5e0c761d0aand makes a few similar fixes to newer code. Discussion: https://www.postgresql.org/message-id/flat/e170d61f-01ab-4cf9-ab68-91cd1fac62c5%40eisentraut.org Discussion: https://www.postgresql.org/message-id/flat/CA%2BTgmoYEAm-KKZibAP3hSqbTFTjUd47XtVcf3xSFDpyecXX9uQ%40mail.gmail.com
This commit is contained in:
@@ -2279,15 +2279,10 @@ evalStandardFunc(CState *st,
|
||||
{
|
||||
/* evaluate all function arguments */
|
||||
int nargs = 0;
|
||||
PgBenchValue vargs[MAX_FARGS] = {0};
|
||||
PgBenchExprLink *l = args;
|
||||
bool has_null = false;
|
||||
|
||||
/*
|
||||
* This value is double braced to workaround GCC bug 53119, which seems to
|
||||
* exist at least on gcc (Debian 4.7.2-5) 4.7.2, 32-bit.
|
||||
*/
|
||||
PgBenchValue vargs[MAX_FARGS] = {{0}};
|
||||
|
||||
for (nargs = 0; nargs < MAX_FARGS && l != NULL; nargs++, l = l->next)
|
||||
{
|
||||
if (!evaluateExpr(st, l->expr, &vargs[nargs]))
|
||||
|
||||
Reference in New Issue
Block a user