summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-05-03 18:28:26 (GMT)
committerBrad King <brad.king@kitware.com>2005-05-03 18:28:26 (GMT)
commitd8ea77e4543316d855ebecd3bed08a749cdaf5ef (patch)
treef2467d5762a2f8c5f2f2faa1ce96106e350a4034 /Source/cmStandardIncludes.h
parent7cd0192909a49cb8afb3460b069ddd1d8dc1364d (diff)
downloadCMake-d8ea77e4543316d855ebecd3bed08a749cdaf5ef.zip
CMake-d8ea77e4543316d855ebecd3bed08a749cdaf5ef.tar.gz
CMake-d8ea77e4543316d855ebecd3bed08a749cdaf5ef.tar.bz2
COMP: Added hack to avoid SGI termios.h warnings.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index e9ea700..f218455 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -49,6 +49,25 @@
#include <stdarg.h> // Work-around for SGI MIPSpro 7.4.2m header bug
+// This is a hack to prevent warnings about these functions being
+// declared but not referenced.
+#if defined(__sgi) && !defined(__GNUC__)
+# include <sys/termios.h>
+class cmStandardIncludesHack
+{
+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
+
#ifndef CMAKE_NO_ANSI_STREAM_HEADERS
# include <fstream>
# include <iostream>