ERR: Fixed compiler warnings about unused parameters.

This commit is contained in:
Brad King 2002-06-18 17:20:07 -04:00
parent 05e162f00a
commit 55f3a3817e
7 changed files with 8 additions and 8 deletions

View File

@ -31,7 +31,7 @@ cmCursesForm* cmCursesForm::CurrentForm=0;
extern "C" extern "C"
{ {
void onsig(int sig) void onsig(int)
{ {
if (cmCursesForm::CurrentForm) if (cmCursesForm::CurrentForm)
{ {
@ -52,7 +52,7 @@ void onsig(int sig)
} }
void CMakeErrorHandler(const char* message, const char* title, bool& disable) void CMakeErrorHandler(const char* message, const char* title, bool&)
{ {
cmCursesForm::CurrentForm->AddError(message, title); cmCursesForm::CurrentForm->AddError(message, title);
} }

View File

@ -28,7 +28,7 @@ cmCursesBoolWidget::cmCursesBoolWidget(int width, int height,
this->SetValueAsBool(false); this->SetValueAsBool(false);
} }
bool cmCursesBoolWidget::HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) bool cmCursesBoolWidget::HandleInput(int& key, cmCursesMainForm*, WINDOW* w)
{ {
// 10 == enter // 10 == enter

View File

@ -24,7 +24,7 @@ cmCursesDummyWidget::cmCursesDummyWidget(int width, int height,
} }
bool cmCursesDummyWidget::HandleInput(int& key, cmCursesMainForm*, WINDOW* ) bool cmCursesDummyWidget::HandleInput(int&, cmCursesMainForm*, WINDOW* )
{ {
return false; return false;
} }

View File

@ -42,7 +42,7 @@ public:
// Description: // Description:
// During a CMake run, an error handle should add errors // During a CMake run, an error handle should add errors
// to be displayed afterwards. // to be displayed afterwards.
virtual void AddError(const char* message, const char* title) {}; virtual void AddError(const char*, const char*) {}
// Description: // Description:
// Turn debugging on. This will create ccmakelog.txt. // Turn debugging on. This will create ccmakelog.txt.

View File

@ -31,7 +31,7 @@ cmCursesLabelWidget::~cmCursesLabelWidget()
{ {
} }
bool cmCursesLabelWidget::HandleInput(int& key, cmCursesMainForm*, WINDOW* ) bool cmCursesLabelWidget::HandleInput(int&, cmCursesMainForm*, WINDOW* )
{ {
// Static text. No input is handled here. // Static text. No input is handled here.
return false; return false;

View File

@ -113,7 +113,7 @@ void cmCursesLongMessageForm::PrintKeys()
} }
void cmCursesLongMessageForm::Render(int left, int top, int width, int height) void cmCursesLongMessageForm::Render(int, int, int, int)
{ {
int x,y; int x,y;
getmaxyx(stdscr, y, x); getmaxyx(stdscr, y, x);

View File

@ -586,7 +586,7 @@ int cmCursesMainForm::RunCMake(bool generateMakefiles)
return 0; return 0;
} }
void cmCursesMainForm::AddError(const char* message, const char* title) void cmCursesMainForm::AddError(const char* message, const char*)
{ {
m_Errors.push_back(message); m_Errors.push_back(message);
} }