- because uiuc_warning_error always called exit(-1), it can be marked no return, so Clang realises that when it’s used in the ‘else’ side of a parsing test, uninitialised variables in the enclosing call site are safe. (Requires Simgear update to define SG_NO_RETURN helper)
11 lines
230 B
C++
11 lines
230 B
C++
#ifndef _WARNINGS_ERRORS_H_
|
|
#define _WARNINGS_ERRORS_H_
|
|
|
|
#include <simgear/compiler.h>
|
|
|
|
#include <string>
|
|
#include <cstdlib>
|
|
|
|
SG_NO_RETURN void uiuc_warnings_errors(int errorCode, std::string line);
|
|
|
|
#endif //_WARNINGS_ERRORS_H_
|