Skip to content

Commit a2ef80b

Browse files
committed
Warn about deprecated compilers
1 parent dd1b5f9 commit a2ef80b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

cli/main.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,15 @@ int main(int argc, char* argv[])
9696
CppCheckExecutor exec;
9797
return exec.check(argc, argv);
9898
}
99+
100+
101+
// Warn about deprecated compilers
102+
#ifdef __GNUC__
103+
# if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))
104+
# warning "Using GCC 4.4 or earlier. Support for this version will be removed soon."
105+
# endif
106+
#elif defined(_MSC_VER)
107+
# if (_MSC_VER < 1600)
108+
# pragma message("Using Visual Studio 2008 or earlier. Support for this version will be removed soon.")
109+
# endif
110+
#endif

0 commit comments

Comments
 (0)