mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-09 23:59:53 -05:00
cmSystemTools: Remove unreachable return on HP compiler
Follow up commit 1de08685 (cmSystemTools: Restore unreachable return to
silence warnings, 2014-04-02) by excluding the unreachable return on the
HP compiler as well as Clang. Both recognize that it is unreachable and
warn.
This commit is contained in:
@@ -1616,7 +1616,7 @@ long copy_data(struct archive *ar, struct archive *aw)
|
||||
return (r);
|
||||
}
|
||||
}
|
||||
#if !defined(__clang__)
|
||||
#if !defined(__clang__) && !defined(__HP_aCC)
|
||||
return r; /* this should not happen but it quiets some compilers */
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user