Navigation Menu

Skip to content

Commit

Permalink
Fix not to use undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Nov 20, 2012
1 parent 13754a6 commit 010627c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ha_mroonga.cpp
Expand Up @@ -8971,12 +8971,12 @@ void ha_mroonga::storage_store_field_timestamp(Field *field,
#elif defined(MRN_TIMESTAMP_USE_MY_TIME_T)
int32 sec, usec;
GRN_TIME_UNPACK(time, sec, usec);
time_value.tv_sec -= mrn_utc_diff_in_seconds;
sec -= mrn_utc_diff_in_seconds;
timestamp_field->store_TIME(sec, usec);
#else
int32 sec, usec __attribute__((unused));
GRN_TIME_UNPACK(time, sec, usec);
time_value.tv_sec -= mrn_utc_diff_in_seconds;
sec -= mrn_utc_diff_in_seconds;
timestamp_field->store_timestamp(sec);
#endif
}
Expand Down

0 comments on commit 010627c

Please sign in to comment.