Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
This is an oversight in commit d976e85
that adds PROCEDURE support. It incorrectly uses a return in a void
function.
  • Loading branch information
Euler Taveira committed Nov 23, 2019
1 parent ab23dde commit bb4ad16
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/function.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,47 +935,47 @@ getProcedures(PGconn *c, int *n)
void
getFunctionSecurityLabels(PGconn *c, PQLFunction *f)
{
return getProcFunctionSecurityLabels(c, f, 'f');
getProcFunctionSecurityLabels(c, f, 'f');
}

void
getProcedureSecurityLabels(PGconn *c, PQLFunction *f)
{
return getProcFunctionSecurityLabels(c, f, 'p');
getProcFunctionSecurityLabels(c, f, 'p');
}

void
dumpDropFunction(FILE *output, PQLFunction *f)
{
return dumpDropProcFunction(output, f, 'f');
dumpDropProcFunction(output, f, 'f');
}

void
dumpDropProcedure(FILE *output, PQLFunction *f)
{
return dumpDropProcFunction(output, f, 'p');
dumpDropProcFunction(output, f, 'p');
}

void
dumpCreateFunction(FILE *output, PQLFunction *f, bool orreplace)
{
return dumpCreateProcFunction(output, f, orreplace, 'f');
dumpCreateProcFunction(output, f, orreplace, 'f');
}

void
dumpCreateProcedure(FILE *output, PQLFunction *f, bool orreplace)
{
return dumpCreateProcFunction(output, f, orreplace, 'p');
dumpCreateProcFunction(output, f, orreplace, 'p');
}

void
dumpAlterFunction(FILE *output, PQLFunction *a, PQLFunction *b)
{
return dumpAlterProcFunction(output, a, b, 'f');
dumpAlterProcFunction(output, a, b, 'f');
}

void
dumpAlterProcedure(FILE *output, PQLFunction *a, PQLFunction *b)
{
return dumpAlterProcFunction(output, a, b, 'p');
dumpAlterProcFunction(output, a, b, 'p');
}

0 comments on commit bb4ad16

Please sign in to comment.