From 52c53deb1bc0109340479aa1284e2fa03b2f5401 Mon Sep 17 00:00:00 2001 From: Eric NOULARD Date: Wed, 1 Feb 2012 20:47:28 +0100 Subject: Really avoid compiler warning about unused vars --- Source/CPack/cmCPackDocumentMacros.cxx | 4 +--- Source/CPack/cmCPackDocumentVariables.cxx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/CPack/cmCPackDocumentMacros.cxx b/Source/CPack/cmCPackDocumentMacros.cxx index 94d5391..ddc75a4 100644 --- a/Source/CPack/cmCPackDocumentMacros.cxx +++ b/Source/CPack/cmCPackDocumentMacros.cxx @@ -1,10 +1,8 @@ #include "cmCPackDocumentMacros.h" void cmCPackDocumentMacros::GetMacrosDocumentation( - std::vector& v) + std::vector& ) { - // 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 27d4df2..6327152 100644 --- a/Source/CPack/cmCPackDocumentVariables.cxx +++ b/Source/CPack/cmCPackDocumentVariables.cxx @@ -1,10 +1,8 @@ #include "cmCPackDocumentVariables.h" #include "cmake.h" -void cmCPackDocumentVariables::DefineVariables(cmake* cm) +void cmCPackDocumentVariables::DefineVariables(cmake* ) { - // avoid compiler warning - (void*)cm; // Subsection: variables defined/used by cpack, // which are common to all CPack generators -- cgit v0.12