~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2009-01-25 02:52:05 UTC
  • mfrom: (801.1.4 testable)
  • Revision ID: brian@gir.tangent.org-20090125025205-zlahg6u6z0w95v64
Merge from Myself

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
****************************************************************************/
77
77
 
78
78
extern "C" unsigned char *get_var_key(user_var_entry *entry, size_t *length,
79
 
                              bool not_used __attribute__((unused)))
 
79
                              bool )
80
80
{
81
81
  *length= entry->name.length;
82
82
  return (unsigned char*) entry->name.str;
430
430
*/
431
431
 
432
432
void
433
 
Diagnostics_area::set_error_status(Session *session __attribute__((unused)),
 
433
Diagnostics_area::set_error_status(Session *,
434
434
                                   uint32_t sql_errno_arg,
435
435
                                   const char *message_arg)
436
436
{
1183
1183
  Item **place;
1184
1184
  Item *old_value;
1185
1185
  /* Placement new was hidden by `new' in ilink (TODO: check): */
1186
 
  static void *operator new(size_t size __attribute__((unused)),
 
1186
  static void *operator new(size_t ,
1187
1187
                            void *mem)
1188
1188
    { return mem; }
1189
 
  static void operator delete(void *ptr __attribute__((unused)),
1190
 
                              size_t size __attribute__((unused)))
 
1189
  static void operator delete(void *,
 
1190
                              size_t )
1191
1191
    {}
1192
 
  static void operator delete(void *ptr __attribute__((unused)),
1193
 
                              void *mem __attribute__((unused)))
 
1192
  static void operator delete(void *,
 
1193
                              void *)
1194
1194
    { /* never called */ }
1195
1195
};
1196
1196
 
1763
1763
 
1764
1764
 
1765
1765
int
1766
 
select_dump::prepare(List<Item> &list __attribute__((unused)),
 
1766
select_dump::prepare(List<Item> &,
1767
1767
                     SELECT_LEX_UNIT *u)
1768
1768
{
1769
1769
  unit= u;
1947
1947
     sortcmp(val1, val2, cache->collation.collation) < 0);
1948
1948
}
1949
1949
 
1950
 
bool select_exists_subselect::send_data(List<Item> &items __attribute__((unused)))
 
1950
bool select_exists_subselect::send_data(List<Item> &)
1951
1951
{
1952
1952
  Item_exists_subselect *it= (Item_exists_subselect *)item;
1953
1953
  if (unit->offset_limit_cnt)
2284
2284
extern "C" void xid_free_hash(void *);
2285
2285
 
2286
2286
unsigned char *xid_get_hash_key(const unsigned char *ptr, size_t *length,
2287
 
                        bool not_used __attribute__((unused)))
 
2287
                        bool )
2288
2288
{
2289
2289
  *length=((XID_STATE*)ptr)->xid.key_length();
2290
2290
  return ((XID_STATE*)ptr)->xid.key();