Ignore:
Timestamp:
04.02.2014 15:54:15 (7 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Fixed warning in snprintf, added explicit dtor and removed noreturn attribute for gcc 4.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exception/tTraceableExceptionBase.cpp

    r106 r107  
    218218std::terminate_handler original_terminate = nullptr; 
    219219 
    220 [[noreturn]] void terminate() noexcept 
     220void terminate() noexcept 
    221221{ 
    222222  try 
     
    286286      snprintf(address_example, sizeof(address_example), "%p", reinterpret_cast<void *>(-1)); 
    287287      char format_string[8]; 
    288       snprintf(format_string, sizeof(format_string), "0x%%0%ux", strlen(address_example) - 2); 
     288      snprintf(format_string, sizeof(format_string), "0x%%0%zux", strlen(address_example) - 2); 
    289289 
    290290      for (size_t i = cCALLS_TO_SKIP; i < this->stack_trace_depth; ++i) 
Note: See TracChangeset for help on using the changeset viewer.