From a2ef80b74b97650eb5680b7390824871db193aea Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sun, 27 Oct 2013 12:53:11 +0100 Subject: [PATCH] Warn about deprecated compilers --- cli/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cli/main.cpp b/cli/main.cpp index b5bc7a795..7fd7712d6 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -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