~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.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:
64
64
  void operator=(Field &);
65
65
public:
66
66
  static void *operator new(size_t size) {return sql_alloc(size); }
67
 
  static void operator delete(void *ptr_arg __attribute__((unused)),
68
 
                              size_t size __attribute__((unused)))
 
67
  static void operator delete(void *, size_t)
69
68
  { TRASH(ptr_arg, size); }
70
69
 
71
70
  unsigned char         *ptr;                   // Position to field in record
331
330
      null_ptr=ADD_TO_PTR(null_ptr,ptr_diff,unsigned char*);
332
331
  }
333
332
  virtual void get_image(unsigned char *buff, uint32_t length,
334
 
                         const CHARSET_INFO * const cs __attribute__((unused)))
 
333
                         const CHARSET_INFO * const)
335
334
    { memcpy(buff,ptr,length); }
336
335
  virtual void set_image(const unsigned char *buff,uint32_t length,
337
 
                         const CHARSET_INFO * const cs __attribute__((unused)))
 
336
                         const CHARSET_INFO * const)
338
337
    { memcpy(ptr,buff,length); }
339
338
 
340
339
 
364
363
      Number of copied bytes (excluding padded zero bytes -- see above).
365
364
  */
366
365
 
367
 
  virtual uint32_t get_key_image(unsigned char *buff, uint32_t length,
368
 
                             imagetype type __attribute__((unused)))
 
366
  virtual uint32_t get_key_image(unsigned char *buff, uint32_t length, imagetype)
369
367
  {
370
368
    get_image(buff, length, &my_charset_bin);
371
369
    return length;
457
455
  virtual const CHARSET_INFO *charset(void) const { return &my_charset_bin; }
458
456
  virtual const CHARSET_INFO *sort_charset(void) const { return charset(); }
459
457
  virtual bool has_charset(void) const { return false; }
460
 
  virtual void set_charset(const CHARSET_INFO * const charset_arg __attribute__((unused)))
 
458
  virtual void set_charset(const CHARSET_INFO * const)
461
459
  { }
462
460
  virtual enum Derivation derivation(void) const
463
461
  { return DERIVATION_IMPLICIT; }
464
 
  virtual void set_derivation(enum Derivation derivation_arg __attribute__((unused)))
 
462
  virtual void set_derivation(enum Derivation)
465
463
  { }
466
464
  bool set_warning(DRIZZLE_ERROR::enum_warning_level, unsigned int code,
467
465
                   int cuted_increment);
541
539
 
542
540
   @returns 0 no bytes written.
543
541
*/
544
 
  virtual int do_save_field_metadata(unsigned char *metadata_ptr __attribute__((unused)))
 
542
  virtual int do_save_field_metadata(unsigned char *)
545
543
  { return 0; }
546
544
};
547
545