~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_iocache.cc

  • Committer: Brian Aker
  • Date: 2008-11-22 00:57:28 UTC
  • Revision ID: brian@tangent.org-20081122005728-iratrqrj5o6jbf6d
Fix, partial, for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
 
315
315
bool reinit_io_cache(IO_CACHE *info, enum cache_type type,
316
316
                        my_off_t seek_offset,
317
 
                        bool use_async_io __attribute__((unused)),
 
317
                        bool use_async_io,
318
318
                        bool clear_cache)
319
319
{
320
320
  /* One can't do reinit with the following types */
396
396
    info->read_function=_my_b_async_read;
397
397
  }
398
398
  info->inited=0;
 
399
#else
 
400
  (void)use_async_io;
399
401
#endif
400
402
  return(0);
401
403
} /* reinit_io_cache */
1026
1028
  while (write_length)
1027
1029
  {
1028
1030
    size_t copy_length= cmin(write_length, write_cache->buffer_length);
1029
 
    int  __attribute__((unused)) rc;
 
1031
    int  rc;
1030
1032
 
1031
1033
    rc= lock_io_cache(write_cache, write_cache->pos_in_file);
1032
1034
    /* The writing thread does always have the lock when it awakes. */