From d8ea77e4543316d855ebecd3bed08a749cdaf5ef Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 3 May 2005 14:28:26 -0400 Subject: COMP: Added hack to avoid SGI termios.h warnings. --- Source/cmStandardIncludes.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 // 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 +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 # include -- cgit v0.12