~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_parse.cc

  • Committer: Monty Taylor
  • Date: 2008-07-09 15:52:52 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: monty@inaugust.com-20080709155252-lnzmxxje1g40z3a7
Warning fixes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
3571
3571
    - 0, otherwise
3572
3572
*/
3573
3573
 
3574
 
TABLE_LIST *st_select_lex::end_nested_join(THD *thd)
 
3574
TABLE_LIST *st_select_lex::end_nested_join(THD *thd __attribute__((__unused__)))
3575
3575
{
3576
3576
  TABLE_LIST *ptr;
3577
3577
  NESTED_JOIN *nested_join;
4070
4070
    This is written such that we have a short lock on LOCK_thread_count
4071
4071
*/
4072
4072
 
4073
 
uint kill_one_thread(THD *thd, ulong id, bool only_kill_query)
 
4073
uint kill_one_thread(THD *thd __attribute__((__unused__)),
 
4074
                     ulong id, bool only_kill_query)
4074
4075
{
4075
4076
  THD *tmp;
4076
4077
  uint error=ER_NO_SUCH_THREAD;
4252
4253
    true  Error
4253
4254
*/
4254
4255
 
4255
 
bool multi_update_precheck(THD *thd, TABLE_LIST *tables)
 
4256
bool multi_update_precheck(THD *thd,
 
4257
                           TABLE_LIST *tables __attribute__((__unused__)))
4256
4258
{
4257
4259
  const char *msg= 0;
4258
4260
  LEX *lex= thd->lex;
4289
4291
    true  error
4290
4292
*/
4291
4293
 
4292
 
bool multi_delete_precheck(THD *thd, TABLE_LIST *tables)
 
4294
bool multi_delete_precheck(THD *thd,
 
4295
                           TABLE_LIST *tables __attribute__((__unused__)))
4293
4296
{
4294
4297
  SELECT_LEX *select_lex= &thd->lex->select_lex;
4295
4298
  TABLE_LIST **save_query_tables_own_last= thd->lex->query_tables_own_last;
4325
4328
  @return Matching table, NULL otherwise.
4326
4329
*/
4327
4330
 
4328
 
static TABLE_LIST *multi_delete_table_match(LEX *lex, TABLE_LIST *tbl,
 
4331
static TABLE_LIST *multi_delete_table_match(LEX *lex __attribute__((__unused__)),
 
4332
                                            TABLE_LIST *tbl,
4329
4333
                                            TABLE_LIST *tables)
4330
4334
{
4331
4335
  TABLE_LIST *match= NULL;
4418
4422
    true  Error
4419
4423
*/
4420
4424
 
4421
 
bool update_precheck(THD *thd, TABLE_LIST *tables)
 
4425
bool update_precheck(THD *thd, TABLE_LIST *tables __attribute__((__unused__)))
4422
4426
{
4423
4427
  DBUG_ENTER("update_precheck");
4424
4428
  if (thd->lex->select_lex.item_list.elements != thd->lex->value_list.elements)
4442
4446
    true   error
4443
4447
*/
4444
4448
 
4445
 
bool insert_precheck(THD *thd, TABLE_LIST *tables)
 
4449
bool insert_precheck(THD *thd, TABLE_LIST *tables __attribute__((__unused__)))
4446
4450
{
4447
4451
  LEX *lex= thd->lex;
4448
4452
  DBUG_ENTER("insert_precheck");
4473
4477
    true   Error
4474
4478
*/
4475
4479
 
4476
 
bool create_table_precheck(THD *thd, TABLE_LIST *tables,
 
4480
bool create_table_precheck(THD *thd,
 
4481
                           TABLE_LIST *tables __attribute__((__unused__)),
4477
4482
                           TABLE_LIST *create_table)
4478
4483
{
4479
4484
  LEX *lex= thd->lex;