ERR: Fixed compiler warnings about unused parameters.
This commit is contained in:
parent
05e162f00a
commit
55f3a3817e
|
@ -31,7 +31,7 @@ cmCursesForm* cmCursesForm::CurrentForm=0;
|
|||
extern "C"
|
||||
{
|
||||
|
||||
void onsig(int sig)
|
||||
void onsig(int)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ cmCursesBoolWidget::cmCursesBoolWidget(int width, int height,
|
|||
this->SetValueAsBool(false);
|
||||
}
|
||||
|
||||
bool cmCursesBoolWidget::HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w)
|
||||
bool cmCursesBoolWidget::HandleInput(int& key, cmCursesMainForm*, WINDOW* w)
|
||||
{
|
||||
|
||||
// 10 == enter
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
// Description:
|
||||
// During a CMake run, an error handle should add errors
|
||||
// to be displayed afterwards.
|
||||
virtual void AddError(const char* message, const char* title) {};
|
||||
virtual void AddError(const char*, const char*) {}
|
||||
|
||||
// Description:
|
||||
// Turn debugging on. This will create ccmakelog.txt.
|
||||
|
|
|
@ -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.
|
||||
return false;
|
||||
|
|
|
@ -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;
|
||||
getmaxyx(stdscr, y, x);
|
||||
|
|
|
@ -586,7 +586,7 @@ int cmCursesMainForm::RunCMake(bool generateMakefiles)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void cmCursesMainForm::AddError(const char* message, const char* title)
|
||||
void cmCursesMainForm::AddError(const char* message, const char*)
|
||||
{
|
||||
m_Errors.push_back(message);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue