Ignore:
Timestamp:
01/07/22 16:09:50 (2 years ago)
Author:
jderouillat
Message:

Add missing return statements detected using -fsanitize=return. Return errors at runtime if reached.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/exception.hpp

    r1622 r2282  
    7575       xios::CException exc(id);                \ 
    7676       exc.getStream() << INFO(x);              \ 
     77       error << exc.getMessage() << std::endl;  \ 
     78       throw exc;                               \ 
     79} 
     80 
     81#define MISSING_RETURN(id)  \ 
     82{                     \ 
     83       xios::CException exc(id);                \ 
     84       exc.getStream() << INFO("Missing return");              \ 
    7785       error << exc.getMessage() << std::endl;  \ 
    7886       throw exc;                               \ 
Note: See TracChangeset for help on using the changeset viewer.