Changeset 36:16d3af016400 in rrlib_time


Ignore:
Timestamp:
06.02.2021 21:24:06 (3 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
37:9f6b5742a6ce, 38:161fef6c0964
Phase:
public
Message:

Fixes compiler warnings that appear with additional non-default warning options enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • time.cpp

    r34 r36  
    179179    return current_time.Load(); 
    180180  case tTimeMode::STRETCHED_SYSTEM_TIME: 
     181  { 
    181182    tTimeStretchingParameters params; 
    182183    LoadParameters(params); 
     
    188189    return application_start + tDuration(ticks); 
    189190  } 
     191  default: 
     192    break; 
     193  } 
    190194  return tTimestamp(); 
    191195} 
     
    295299    } 
    296300    return tDuration((app_duration.count() / params.time_scaling_denominator) * params.time_scaling_numerator); 
     301  default: 
     302    break; 
    297303  } 
    298304  return tDuration(); 
     
    638644{ 
    639645  std::time_t input_time = std::chrono::system_clock::to_time_t(timestamp); 
    640   tm full_hour_time = {0}; 
     646  tm full_hour_time; 
     647  memset(&full_hour_time, 0, sizeof(full_hour_time)); 
    641648  gmtime_r(&input_time, &full_hour_time); 
    642649  full_hour_time.tm_sec = 0; 
Note: See TracChangeset for help on using the changeset viewer.