1
0
Fork 0
flightgear/src/FDM/UIUCModel/uiuc_warnings_errors.h
James Turner c62b004438 Fix many clang errors in UIUC code
- 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)
2016-01-12 12:50:31 -06:00

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_