Calm down compiler warning about unused var

This commit is contained in:
Eric NOULARD 2012-01-31 21:27:55 +01:00 committed by Rolf Eike Beer
parent 7c82b7f51a
commit 37f90ed576
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -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