Changeset 753


Ignore:
Timestamp:
Jan 14, 2009, 4:50:35 PM (12 years ago)
Author:
Peter Johansson
Message:

avoid compiler warning: 'unused variable'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Date.cc

    r751 r753  
    145145    char buffer[80];
    146146    size_t res = std::strftime(buffer, 80, format.c_str(), timeinfo);
    147     assert(res>0);
     147    if (!res) {
     148      throw std::runtime_error("svndigest::Date::operator() failed");
     149    }
    148150    return buffer;
    149151  }
Note: See TracChangeset for help on using the changeset viewer.