Changeset 107:bd1bbc610a4d in rrlib_util


Ignore:
Timestamp:
04.02.2014 15:54:15 (6 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

Files:
2 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) 
  • tTraceableException.h

    r105 r107  
    8181  {} 
    8282 
     83  ~tTraceableException() noexcept 
     84  {} 
     85 
    8386}; 
    8487 
Note: See TracChangeset for help on using the changeset viewer.