~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_list.h

  • Committer: Brian Aker
  • Date: 2008-12-04 06:48:00 UTC
  • Revision ID: brian@tangent.org-20081204064800-pyrclwj0583fms2s
Clean up warnings for Solaris.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
    list_copy_and_replace_each_value after creating a copy.
133
133
  */
134
134
  base_list(const base_list &rhs, MEM_ROOT *mem_root);
135
 
  inline base_list(bool error __attribute__((unused))) { }
 
135
  inline base_list(bool) { }
136
136
  inline bool push_back(void *info)
137
137
  {
138
138
    if (((*last)=new list_node(info, &end_of_list)))
430
430
template <class T> class List_iterator_fast :public base_list_iterator
431
431
{
432
432
protected:
433
 
  inline T *replace(T *a __attribute__((unused)))   { return (T*) 0; }
434
 
  inline T *replace(List<T> &a __attribute__((unused))) { return (T*) 0; }
 
433
  inline T *replace(T *)   { return (T*) 0; }
 
434
  inline T *replace(List<T> &) { return (T*) 0; }
435
435
  inline void remove(void)  { }
436
 
  inline void after(T *a __attribute__((unused)))   { }
 
436
  inline void after(T *a)   { }
437
437
  inline T** ref(void)      { return (T**) 0; }
438
438
 
439
439
public:
461
461
  {
462
462
    return (void*)malloc((uint)size);
463
463
  }
464
 
  static void operator delete(void* ptr_arg,
465
 
                              size_t size __attribute__((unused)))
 
464
  static void operator delete(void* ptr_arg, size_t)
466
465
  {
467
466
     free((unsigned char*)ptr_arg);
468
467
  }