mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Get rid of GCC warnings about unused parameters
modified: storage/connect/array.cpp modified: storage/connect/blkfil.cpp modified: storage/connect/block.h modified: storage/connect/catalog.h modified: storage/connect/colblk.cpp modified: storage/connect/colblk.h modified: storage/connect/connect.cc modified: storage/connect/filamap.cpp modified: storage/connect/filamdbf.cpp modified: storage/connect/filamfix.cpp modified: storage/connect/filamtxt.cpp modified: storage/connect/filamtxt.h modified: storage/connect/filamvct.cpp modified: storage/connect/filamzip.cpp modified: storage/connect/filter.h modified: storage/connect/ha_connect.c modified: storage/connect/jsonudf.cpp modified: storage/connect/mycat.h modified: storage/connect/myconn.cpp modified: storage/connect/plgdbutl.cpp modified: storage/connect/reldef.cpp modified: storage/connect/reldef.h modified: storage/connect/tabcol.cpp modified: storage/connect/tabdos.cpp modified: storage/connect/tabdos.h modified: storage/connect/tabfix.cpp modified: storage/connect/tabfmt.cpp modified: storage/connect/tabfmt.h modified: storage/connect/tabjson.cpp modified: storage/connect/tabjson.h modified: storage/connect/table.cpp modified: storage/connect/tabmul.cpp modified: storage/connect/tabmysql.cpp modified: storage/connect/tabmysql.h modified: storage/connect/taboccur.cpp modified: storage/connect/tabpivot.cpp modified: storage/connect/tabsys.cpp modified: storage/connect/tabtbl.cpp modified: storage/connect/tabtbl.h modified: storage/connect/tabutil.cpp modified: storage/connect/tabutil.h modified: storage/connect/tabvct.cpp modified: storage/connect/tabvir.cpp modified: storage/connect/tabvir.h modified: storage/connect/tabxcl.cpp modified: storage/connect/tabxcl.h modified: storage/connect/tabxml.cpp modified: storage/connect/tabxml.h modified: storage/connect/valblk.cpp modified: storage/connect/valblk.h modified: storage/connect/value.cpp modified: storage/connect/value.h modified: storage/connect/xindex.cpp modified: storage/connect/xindex.h modified: storage/connect/xobject.h modified: storage/connect/xtable.h
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
/* */
|
||||
/* AUTHOR: */
|
||||
/* ------- */
|
||||
/* Olivier BERTRAND 2007-2014 */
|
||||
/* Olivier BERTRAND 2007-2015 */
|
||||
/* */
|
||||
/* WHAT THIS PROGRAM DOES: */
|
||||
/* ----------------------- */
|
||||
@@ -307,7 +307,7 @@ bool MYSQLDEF::ParseURL(PGLOBAL g, char *url, bool b)
|
||||
/***********************************************************************/
|
||||
/* DefineAM: define specific AM block values from XCV file. */
|
||||
/***********************************************************************/
|
||||
bool MYSQLDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
||||
bool MYSQLDEF::DefineAM(PGLOBAL g, LPCSTR am, int)
|
||||
{
|
||||
char *url;
|
||||
|
||||
@@ -380,7 +380,7 @@ bool MYSQLDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
||||
/***********************************************************************/
|
||||
/* GetTable: makes a new TDB of the proper type. */
|
||||
/***********************************************************************/
|
||||
PTDB MYSQLDEF::GetTable(PGLOBAL g, MODE m)
|
||||
PTDB MYSQLDEF::GetTable(PGLOBAL g, MODE)
|
||||
{
|
||||
if (Xsrc)
|
||||
return new(g) TDBMYEXC(this);
|
||||
@@ -438,7 +438,7 @@ TDBMYSQL::TDBMYSQL(PMYDEF tdp) : TDBASE(tdp)
|
||||
Nparm = 0;
|
||||
} // end of TDBMYSQL constructor
|
||||
|
||||
TDBMYSQL::TDBMYSQL(PGLOBAL g, PTDBMY tdbp) : TDBASE(tdbp)
|
||||
TDBMYSQL::TDBMYSQL(PTDBMY tdbp) : TDBASE(tdbp)
|
||||
{
|
||||
Host = tdbp->Host;
|
||||
Database = tdbp->Database;
|
||||
@@ -468,7 +468,7 @@ PTDB TDBMYSQL::CopyOne(PTABS t)
|
||||
PCOL cp1, cp2;
|
||||
PGLOBAL g = t->G;
|
||||
|
||||
tp = new(g) TDBMYSQL(g, this);
|
||||
tp = new(g) TDBMYSQL(this);
|
||||
|
||||
for (cp1 = Columns; cp1; cp1 = cp1->GetNext()) {
|
||||
cp2 = new(g) MYSQLCOL((PMYCOL)cp1, tp);
|
||||
@@ -816,7 +816,7 @@ int TDBMYSQL::GetMaxSize(PGLOBAL g)
|
||||
/***********************************************************************/
|
||||
/* This a fake routine as ROWID does not exist in MySQL. */
|
||||
/***********************************************************************/
|
||||
int TDBMYSQL::RowNumber(PGLOBAL g, bool b)
|
||||
int TDBMYSQL::RowNumber(PGLOBAL, bool)
|
||||
{
|
||||
return N + 1;
|
||||
} // end of RowNumber
|
||||
@@ -832,7 +832,7 @@ int TDBMYSQL::GetProgMax(PGLOBAL g)
|
||||
/***********************************************************************/
|
||||
/* MySQL Bind Parameter function. */
|
||||
/***********************************************************************/
|
||||
int TDBMYSQL::BindColumns(PGLOBAL g)
|
||||
int TDBMYSQL::BindColumns(PGLOBAL g __attribute__((unused)))
|
||||
{
|
||||
#if defined(MYSQL_PREPARED_STATEMENTS)
|
||||
if (Prep) {
|
||||
@@ -1425,7 +1425,7 @@ void MYSQLCOL::ReadColumn(PGLOBAL g)
|
||||
/***********************************************************************/
|
||||
/* WriteColumn: make sure the bind buffer is updated. */
|
||||
/***********************************************************************/
|
||||
void MYSQLCOL::WriteColumn(PGLOBAL g)
|
||||
void MYSQLCOL::WriteColumn(PGLOBAL)
|
||||
{
|
||||
/*********************************************************************/
|
||||
/* Do convert the column value if necessary. */
|
||||
@@ -1463,7 +1463,7 @@ TDBMYEXC::TDBMYEXC(PMYDEF tdp) : TDBMYSQL(tdp)
|
||||
Nerr = 0;
|
||||
} // end of TDBMYEXC constructor
|
||||
|
||||
TDBMYEXC::TDBMYEXC(PGLOBAL g, PTDBMYX tdbp) : TDBMYSQL(g, tdbp)
|
||||
TDBMYEXC::TDBMYEXC(PTDBMYX tdbp) : TDBMYSQL(tdbp)
|
||||
{
|
||||
Cmdlist = tdbp->Cmdlist;
|
||||
Cmdcol = tdbp->Cmdcol;
|
||||
@@ -1481,7 +1481,7 @@ PTDB TDBMYEXC::CopyOne(PTABS t)
|
||||
PCOL cp1, cp2;
|
||||
PGLOBAL g = t->G;
|
||||
|
||||
tp = new(g) TDBMYEXC(g, this);
|
||||
tp = new(g) TDBMYEXC(this);
|
||||
|
||||
for (cp1 = Columns; cp1; cp1 = cp1->GetNext()) {
|
||||
cp2 = new(g) MYXCOL((PMYXCOL)cp1, tp);
|
||||
@@ -1534,7 +1534,7 @@ PCMD TDBMYEXC::MakeCMD(PGLOBAL g)
|
||||
/***********************************************************************/
|
||||
/* EXC GetMaxSize: returns the maximum number of rows in the table. */
|
||||
/***********************************************************************/
|
||||
int TDBMYEXC::GetMaxSize(PGLOBAL g)
|
||||
int TDBMYEXC::GetMaxSize(PGLOBAL)
|
||||
{
|
||||
if (MaxSize < 0) {
|
||||
MaxSize = 10; // a guess
|
||||
@@ -1711,7 +1711,7 @@ void MYXCOL::ReadColumn(PGLOBAL g)
|
||||
/***********************************************************************/
|
||||
/* WriteColumn: should never be called. */
|
||||
/***********************************************************************/
|
||||
void MYXCOL::WriteColumn(PGLOBAL g)
|
||||
void MYXCOL::WriteColumn(PGLOBAL)
|
||||
{
|
||||
assert(false);
|
||||
} // end of WriteColumn
|
||||
|
Reference in New Issue
Block a user