summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-03 03:32:00 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-03 03:32:00 (GMT)
commit153bd2446f3331231dd018a0ce40143fdf8a3320 (patch)
tree2da6790442db7cb20062a76ad00a3fd3a104008c /Source/CursesDialog
parentd9d19a4d68f8874d5c7f98c5c952f3b2fffb9ad3 (diff)
downloadCMake-153bd2446f3331231dd018a0ce40143fdf8a3320.zip
CMake-153bd2446f3331231dd018a0ce40143fdf8a3320.tar.gz
CMake-153bd2446f3331231dd018a0ce40143fdf8a3320.tar.bz2
ENH: Cleaned up sgi unreferenced warning hack.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesStandardIncludes.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h
index 3a0d214..456d4a6 100644
--- a/Source/CursesDialog/cmCursesStandardIncludes.h
+++ b/Source/CursesDialog/cmCursesStandardIncludes.h
@@ -35,20 +35,18 @@
// This is a hack to prevent warnings about these functions being
// declared but not referenced.
#if defined(__sgi) && !defined(__GNUC__)
-/*REFERENCED*/ speed_t cfgetospeed (const struct termios *__t);
-/*REFERENCED*/ int cfsetospeed (struct termios *__t, speed_t __s);
-/*REFERENCED*/ speed_t cfgetispeed (const struct termios *__t);
-/*REFERENCED*/ int cfsetispeed (struct termios *__t, speed_t __s);
-/*REFERENCED*/ int tcgetattr (int __fd, struct termios *__t);
-/*REFERENCED*/ int tcsetattr (int __fd, int __act, const struct termios *__t);
-enum
+class cmCursesStandardIncludesHack
{
- cmCursesStandardIncludesHackRef1 = sizeof(cfgetospeed(0)),
- cmCursesStandardIncludesHackRef2 = sizeof(cfgetispeed(0)),
- cmCursesStandardIncludesHackRef3 = sizeof(tcgetattr(0, 0)),
- cmCursesStandardIncludesHackRef4 = sizeof(tcsetattr(0, 0, 0)),
- cmCursesStandardIncludesHackRef5 = sizeof(cfsetospeed(0,0)),
- cmCursesStandardIncludesHackRef6 = sizeof(cfsetispeed(0,0))
+public:
+ enum
+ {
+ Ref1 = sizeof(cfgetospeed(0)),
+ Ref2 = sizeof(cfgetispeed(0)),
+ Ref3 = sizeof(tcgetattr(0, 0)),
+ Ref4 = sizeof(tcsetattr(0, 0, 0)),
+ Ref5 = sizeof(cfsetospeed(0,0)),
+ Ref6 = sizeof(cfsetispeed(0,0))
+ };
};
#endif