Skip to content
  • Marco Trevisan's avatar
    gmacros: Prioritize the usage of [[noreturn]] in C++11 · 641256ea
    Marco Trevisan authored
    We defined G_NO_RETURN as [[noreturn]] in the C++ case, but only after
    trying the __attribute__ syntax, so it was never used in GNUC compatible
    compilers.
    
    Give it priority instead when supporting a C++11 compiler and onwards.
    
    As per this we need to adapt the code in the places where it was not
    properly used (leading to compilation warnings).
    641256ea