Browse Source

Merge topic 'clang-warnings'

1de08685 cmSystemTools: Restore unreachable return to silence warnings
Brad King 11 years ago
parent
commit
f92f7e8d23
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/cmSystemTools.cxx

+ 3 - 0
Source/cmSystemTools.cxx

@@ -1616,6 +1616,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,