Really avoid compiler warning about unused vars

This commit is contained in:
Eric NOULARD 2012-02-01 20:47:28 +01:00 committed by David Cole
parent 37f90ed576
commit 52c53deb1b
2 changed files with 2 additions and 6 deletions

View File

@ -1,10 +1,8 @@
#include "cmCPackDocumentMacros.h" #include "cmCPackDocumentMacros.h"
void cmCPackDocumentMacros::GetMacrosDocumentation( void cmCPackDocumentMacros::GetMacrosDocumentation(
std::vector<cmDocumentationEntry>& v) std::vector<cmDocumentationEntry>& )
{ {
// avoid compiler warning
(int)v.size();
// Commented-out example of use // Commented-out example of use
// //
// cmDocumentationEntry e("cpack_<macro>", // cmDocumentationEntry e("cpack_<macro>",

View File

@ -1,10 +1,8 @@
#include "cmCPackDocumentVariables.h" #include "cmCPackDocumentVariables.h"
#include "cmake.h" #include "cmake.h"
void cmCPackDocumentVariables::DefineVariables(cmake* cm) void cmCPackDocumentVariables::DefineVariables(cmake* )
{ {
// avoid compiler warning
(void*)cm;
// Subsection: variables defined/used by cpack, // Subsection: variables defined/used by cpack,
// which are common to all CPack generators // which are common to all CPack generators