cmSystemTools: Restore unreachable return to silence warnings

Some compilers do not recognize that the end of copy_data cannot
be reached and complain that there is no return statement.  Clang
warns that there is an unreachable return statement if it appears.
Conditionally add the return statement when not building with Clang.
This commit is contained in:
Brad King 2014-04-02 09:35:36 -04:00
parent 8c9c4fe1a6
commit 1de086855c
1 changed files with 3 additions and 0 deletions

View File

@ -1662,6 +1662,9 @@ long copy_data(struct archive *ar, struct archive *aw)
return (r);
}
}
#if !defined(__clang__)
return r; /* this should not happen but it silences a warning */
#endif
}
bool extract_tar(const char* outFileName, bool verbose,