~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.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:
47
47
  errmsg_ptr= errmsg;
48
48
#endif
49
49
 
50
 
  errmsg_printf(error::ERROR, "%s: %s\n", message, errmsg);
 
50
  errmsg_printf(error::ERROR, "%s: %s\n", message, errmsg_ptr);
51
51
 
52
52
}
53
53
 
82
82
    message+= "'";
83
83
  }
84
84
 
85
 
  errmsg_printf(error::ERROR, "%s: %s\n", message.c_str(), errmsg);
 
85
  errmsg_printf(error::ERROR, "%s: %s\n", message.c_str(), errmsg_ptr);
86
86
}
87
87
 
88
88
bool errmsg_printf (error::level_t priority, char const *format, ...)