diff options
author | makise-homura <akemi_homura@kurisa.ch> | 2022-06-23 23:01:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-06-28 15:12:04 (GMT) |
commit | f11c12f9c8b148546a678f3438a44d0865e2476b (patch) | |
tree | d6c396b796f173d909157939f04b3ac0b2a8f573 /Source/cmConfigure.cmake.h.in | |
parent | de16db0f646a1d06fca813761337f62332a9f7ca (diff) | |
download | CMake-f11c12f9c8b148546a678f3438a44d0865e2476b.zip CMake-f11c12f9c8b148546a678f3438a44d0865e2476b.tar.gz CMake-f11c12f9c8b148546a678f3438a44d0865e2476b.tar.bz2 |
Source: Suppress some warnings on LCC 1.23.x
LCC 1.23.x (confirmed for 1.23.10, 1.23.19, maybe others)
issues -Wunused-function warning on the following functions:
Source/cmFileAPICodemodel.cxx:126, ValueEq()
Source/cmFileAPICodemodel.cxx:130, ValueLess()
Source/cmGeneratorExpressionNode.cxx:630, back()
This fix makes it silent for compatibility.
This is not a subject for newer LCC versions, like 1.25 and 1.26.
On LCC 1.21 CMake is not buildable, and 1.22 and 1.24 are not
tested, as they are internal development versions. Thus, the fix
is only applied if LCC 1.23 is detected.
Diffstat (limited to 'Source/cmConfigure.cmake.h.in')
-rw-r--r-- | Source/cmConfigure.cmake.h.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmConfigure.cmake.h.in b/Source/cmConfigure.cmake.h.in index 6a419f6..31d03da 100644 --- a/Source/cmConfigure.cmake.h.in +++ b/Source/cmConfigure.cmake.h.in @@ -14,6 +14,10 @@ #pragma warning(disable : 1572) /* floating-point equality test */ #endif +#if defined(__LCC__) && defined(__EDG__) && (__LCC__ == 123) +#pragma diag_suppress 2910 /* excess -Wunused-function in 1.23.x */ +#endif + #cmakedefine HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE #cmakedefine HAVE_UNSETENV #cmakedefine CMake_USE_MACH_PARSER |