]> git.mxchange.org Git - flightgear.git/commit
Fix many clang errors in UIUC code
authorJames Turner <zakalawe@mac.com>
Tue, 12 Jan 2016 18:50:31 +0000 (12:50 -0600)
committerJames Turner <zakalawe@mac.com>
Tue, 12 Jan 2016 18:50:31 +0000 (12:50 -0600)
commitc62b0044380eb0387c447cc33660f74b02cbbce4
treeac25dd0107d116ce734ac665b6f3321851a5cc86
parentdc17b5dda2dcd6648360e62b2b86848ded994d50
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)
src/FDM/UIUCModel/uiuc_warnings_errors.cpp
src/FDM/UIUCModel/uiuc_warnings_errors.h