~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_base.cc

  • Committer: Brian Aker
  • Date: 2008-07-26 18:39:33 UTC
  • mfrom: (212.1.3 codestyle)
  • Revision ID: brian@tangent.org-20080726183933-hueup0fcy2zs1hug
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
394
394
*/
395
395
 
396
396
void release_table_share(TABLE_SHARE *share,
397
 
                         enum release_type type __attribute__((__unused__)))
 
397
                         enum release_type type __attribute__((unused)))
398
398
{
399
399
  bool to_be_deleted= 0;
400
400
 
528
528
    #           Pointer to list of names of open tables.
529
529
*/
530
530
 
531
 
OPEN_TABLE_LIST *list_open_tables(THD *thd __attribute__((__unused__)),
 
531
OPEN_TABLE_LIST *list_open_tables(THD *thd __attribute__((unused)),
532
532
                                  const char *db, const char *wild)
533
533
{
534
534
  int result = 0;
1135
1135
 
1136
1136
 
1137
1137
/* close_temporary_tables' internal, 4 is due to uint4korr definition */
1138
 
static inline uint  tmpkeyval(THD *thd __attribute__((__unused__)),
 
1138
static inline uint  tmpkeyval(THD *thd __attribute__((unused)),
1139
1139
                              TABLE *table)
1140
1140
{
1141
1141
  return uint4korr(table->s->table_cache_key.str + table->s->table_cache_key.length - 4);
1424
1424
*/
1425
1425
 
1426
1426
void update_non_unique_table_error(TABLE_LIST *update,
1427
 
                                   const char *operation __attribute__((__unused__)),
1428
 
                                   TABLE_LIST *duplicate __attribute__((__unused__)))
 
1427
                                   const char *operation __attribute__((unused)),
 
1428
                                   TABLE_LIST *duplicate __attribute__((unused)))
1429
1429
{
1430
1430
  my_error(ER_UPDATE_TABLE_USED, MYF(0), update->alias);
1431
1431
}
3105
3105
static int open_unireg_entry(THD *thd, TABLE *entry, TABLE_LIST *table_list,
3106
3106
                             const char *alias,
3107
3107
                             char *cache_key, uint cache_key_length,
3108
 
                             MEM_ROOT *mem_root __attribute__((__unused__)),
3109
 
                             uint flags __attribute__((__unused__)))
 
3108
                             MEM_ROOT *mem_root __attribute__((unused)),
 
3109
                             uint flags __attribute__((unused)))
3110
3110
{
3111
3111
  int error;
3112
3112
  TABLE_SHARE *share;
4064
4064
 
4065
4065
static Field *
4066
4066
find_field_in_view(THD *thd, TABLE_LIST *table_list,
4067
 
                   const char *name, uint length __attribute__((__unused__)),
4068
 
                   const char *item_name __attribute__((__unused__)),
 
4067
                   const char *name, uint length __attribute__((unused)),
 
4068
                   const char *item_name __attribute__((unused)),
4069
4069
                   Item **ref,
4070
 
                   bool register_tree_change __attribute__((__unused__)))
 
4070
                   bool register_tree_change __attribute__((unused)))
4071
4071
{
4072
4072
  Field_iterator_view field_it;
4073
4073
  field_it.set(table_list);
4141
4141
 
4142
4142
static Field *
4143
4143
find_field_in_natural_join(THD *thd, TABLE_LIST *table_ref, const char *name,
4144
 
                           uint length __attribute__((__unused__)),
 
4144
                           uint length __attribute__((unused)),
4145
4145
                           Item **ref, bool register_tree_change,
4146
4146
                           TABLE_LIST **actual_table)
4147
4147
{
5308
5308
*/
5309
5309
 
5310
5310
static bool
5311
 
store_natural_using_join_columns(THD *thd __attribute__((__unused__)),
 
5311
store_natural_using_join_columns(THD *thd __attribute__((unused)),
5312
5312
                                 TABLE_LIST *natural_using_join,
5313
5313
                                 TABLE_LIST *table_ref_1,
5314
5314
                                 TABLE_LIST *table_ref_2,
5638
5638
****************************************************************************/
5639
5639
 
5640
5640
int setup_wild(THD *thd,
5641
 
               TABLE_LIST *tables __attribute__((__unused__)),
 
5641
               TABLE_LIST *tables __attribute__((unused)),
5642
5642
               List<Item> &fields,
5643
5643
               List<Item> *sum_func_list,
5644
5644
               uint wild_num)
5973
5973
bool
5974
5974
insert_fields(THD *thd, Name_resolution_context *context, const char *db_name,
5975
5975
              const char *table_name, List_iterator<Item> *it,
5976
 
              bool any_privileges __attribute__((__unused__)))
 
5976
              bool any_privileges __attribute__((unused)))
5977
5977
{
5978
5978
  Field_iterator_table_ref field_iterator;
5979
5979
  bool found;
6122
6122
    false if all is OK
6123
6123
*/
6124
6124
 
6125
 
int setup_conds(THD *thd, TABLE_LIST *tables __attribute__((__unused__)),
 
6125
int setup_conds(THD *thd, TABLE_LIST *tables __attribute__((unused)),
6126
6126
                TABLE_LIST *leaves,
6127
6127
                COND **conds)
6128
6128
{
6295
6295
 
6296
6296
bool
6297
6297
fill_record(THD *thd, Field **ptr, List<Item> &values,
6298
 
            bool ignore_errors __attribute__((__unused__)))
 
6298
            bool ignore_errors __attribute__((unused)))
6299
6299
{
6300
6300
  List_iterator_fast<Item> v(values);
6301
6301
  Item *value;