summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-06-11 13:14:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-06-11 13:14:19 (GMT)
commit20308ac96a63523282ad02a9b073eb37512e1fdd (patch)
tree8ea72bfd51655925b1835b7d7ba76a2046e0ce45 /Source/CursesDialog
parentfd26d44f5f244844d90dba801af57294283ceae9 (diff)
downloadCMake-20308ac96a63523282ad02a9b073eb37512e1fdd.zip
CMake-20308ac96a63523282ad02a9b073eb37512e1fdd.tar.gz
CMake-20308ac96a63523282ad02a9b073eb37512e1fdd.tar.bz2
ERR: Fixed sun CC warnings.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/ccmake.cxx5
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx6
2 files changed, 9 insertions, 2 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index ae38c79..330bf0e 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -28,6 +28,9 @@
cmCursesForm* cmCursesForm::CurrentForm=0;
+extern "C"
+{
+
void onsig(int sig)
{
if (cmCursesForm::CurrentForm)
@@ -46,6 +49,8 @@ void onsig(int sig)
}
signal(SIGWINCH, onsig);
}
+
+}
void CMakeErrorHandler(const char* message, const char* title, bool& disable)
{
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 94a5747..099e79c 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -384,7 +384,8 @@ void cmCursesMainForm::PrintKeys()
curses_move(y-4,0);
- printw("Press [enter] to edit option");
+ char fmt[] = "Press [enter] to edit option";
+ printw(fmt);
curses_move(y-3,0);
printw(firstLine);
curses_move(y-2,0);
@@ -417,7 +418,8 @@ void cmCursesMainForm::UpdateStatusBar()
{
curses_clear();
curses_move(0,0);
- printw("Window is too small. A size of at least %dx%d is required.",
+ char fmt[] = "Window is too small. A size of at least %dx%d is required.";
+ printw(fmt,
(cmCursesMainForm::MIN_WIDTH < m_InitialWidth ?
m_InitialWidth : cmCursesMainForm::MIN_WIDTH),
cmCursesMainForm::MIN_HEIGHT);