~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_write.cc

  • Committer: Andrew Hutchings
  • Date: 2011-03-29 09:33:49 UTC
  • mto: (2257.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: andrew@linuxjedi.co.uk-20110329093349-oz4cgb9f7l1032m3
Fix Drizzle to compile in GCC 4.6 (which fires warnings and therefore errors if a variable is set and not read)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
size_t my_write(int Filedes, const unsigned char *Buffer, size_t Count, myf MyFlags)
31
31
{
32
32
  size_t writenbytes, written;
33
 
  uint32_t errors;
34
 
  errors=0; written=0;
 
33
  written=0;
35
34
 
36
35
  /* The behavior of write(fd, buf, 0) is not portable */
37
36
  if (unlikely(!Count))