Warn about deprecated compilers

This commit is contained in:
PKEuS 2013-10-27 12:53:11 +01:00
parent dd1b5f9a30
commit a2ef80b74b
1 changed files with 12 additions and 0 deletions

View File

@ -96,3 +96,15 @@ int main(int argc, char* argv[])
CppCheckExecutor exec;
return exec.check(argc, argv);
}
// Warn about deprecated compilers
#ifdef __GNUC__
# if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))
# warning "Using GCC 4.4 or earlier. Support for this version will be removed soon."
# endif
#elif defined(_MSC_VER)
# if (_MSC_VER < 1600)
# pragma message("Using Visual Studio 2008 or earlier. Support for this version will be removed soon.")
# endif
#endif