diff --git a/Source/CPack/cmCPackDocumentMacros.cxx b/Source/CPack/cmCPackDocumentMacros.cxx index 8752e5674..94d539141 100644 --- a/Source/CPack/cmCPackDocumentMacros.cxx +++ b/Source/CPack/cmCPackDocumentMacros.cxx @@ -3,6 +3,8 @@ void cmCPackDocumentMacros::GetMacrosDocumentation( std::vector& v) { + // avoid compiler warning + (int)v.size(); // Commented-out example of use // // cmDocumentationEntry e("cpack_", diff --git a/Source/CPack/cmCPackDocumentVariables.cxx b/Source/CPack/cmCPackDocumentVariables.cxx index 8b60d5f0e..27d4df2fe 100644 --- a/Source/CPack/cmCPackDocumentVariables.cxx +++ b/Source/CPack/cmCPackDocumentVariables.cxx @@ -3,6 +3,8 @@ void cmCPackDocumentVariables::DefineVariables(cmake* cm) { + // avoid compiler warning + (void*)cm; // Subsection: variables defined/used by cpack, // which are common to all CPack generators