~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item.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:
176
176
type::Decimal *Item::val_decimal_from_string(type::Decimal *decimal_value)
177
177
{
178
178
  String *res;
179
 
  char *end_ptr;
180
179
  if (!(res= val_str(&str_value)))
181
180
    return NULL;
182
181
 
183
 
  end_ptr= (char*) res->ptr()+ res->length();
184
182
  if (decimal_value->store(E_DEC_FATAL_ERROR & ~E_DEC_BAD_NUM,
185
183
                     res->ptr(), 
186
184
                     res->length(),