Skip to content

Commit

Permalink
db: Fix -Wdeprecated-non-prototype in describe.c for clang builds
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Jun 18, 2024
1 parent 15f5762 commit 85971d5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions db/drivers/odbc/describe.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

int set_column_type(dbColumn *column, int otype);

int db__driver_describe_table(table_name, table)
dbString *table_name;
dbTable **table;
int db__driver_describe_table(dbString *table_name, dbTable **table)
{
char *name = NULL;
SQLINTEGER err;
Expand Down Expand Up @@ -60,9 +58,7 @@ dbTable **table;
return DB_OK;
}

int describe_table(stmt, table)
SQLHSTMT stmt;
dbTable **table;
int describe_table(SQLHSTMT stmt, dbTable **table)
{
dbColumn *column;
int col;
Expand Down Expand Up @@ -143,9 +139,7 @@ dbTable **table;
return DB_OK;
}

int set_column_type(column, otype)
dbColumn *column;
int otype;
int set_column_type(dbColumn *column, int otype)
{
int dbtype;

Expand Down

0 comments on commit 85971d5

Please sign in to comment.