From bbbd05741b953db01e7ca6b0dbf7e82030b223c6 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 3 Feb 2018 15:28:37 -0500 Subject: [PATCH] Suppress warnings in bundled packages. --- bundled/tbb41_20130401oss/src/tbb/dynamic_link.cpp | 1 + bundled/umfpack/UMFPACK/Source/umf_report_vector.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/bundled/tbb41_20130401oss/src/tbb/dynamic_link.cpp b/bundled/tbb41_20130401oss/src/tbb/dynamic_link.cpp index 32e9243922..fc53cb17f5 100644 --- a/bundled/tbb41_20130401oss/src/tbb/dynamic_link.cpp +++ b/bundled/tbb41_20130401oss/src/tbb/dynamic_link.cpp @@ -419,6 +419,7 @@ OPEN_INTERNAL_NAMESPACE #endif /* _WIN32 */ static dynamic_link_handle global_symbols_link( const char* library, const dynamic_link_descriptor descriptors[], size_t required ) { + (void)library; // Suppress an unused variable warning with clang #if _WIN32 dynamic_link_handle library_handle; if ( GetModuleHandleEx( 0, library, &library_handle ) ) { diff --git a/bundled/umfpack/UMFPACK/Source/umf_report_vector.cc b/bundled/umfpack/UMFPACK/Source/umf_report_vector.cc index 6d34e4512f..eccaada27d 100644 --- a/bundled/umfpack/UMFPACK/Source/umf_report_vector.cc +++ b/bundled/umfpack/UMFPACK/Source/umf_report_vector.cc @@ -23,6 +23,7 @@ PRIVATE void print_value ) { Entry xi ; + (void)Xz; /* Suppress an unused variable warning with clang */ /* if Xz is null, then X is in "merged" format (compatible with Entry, */ /* and ANSI C99 double _Complex type). */ PRINTF ((" " ID " :", INDEX (i))) ; -- 2.39.5