summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-08 12:48:08 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-08 12:48:08 (GMT)
commita9fe65c316dbfebe5b69269cf50659fe1aa5919d (patch)
treee430d2b50768259595f2471933c7678f3f4c8b7c /Source/cmSystemTools.cxx
parent72e137ea7d4912099b469f6a3b0f8913a1ac5a65 (diff)
downloadCMake-a9fe65c316dbfebe5b69269cf50659fe1aa5919d.zip
CMake-a9fe65c316dbfebe5b69269cf50659fe1aa5919d.tar.gz
CMake-a9fe65c316dbfebe5b69269cf50659fe1aa5919d.tar.bz2
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.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 635e31c..c27b561 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -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
}