Warn about deprecated compilers
This commit is contained in:
parent
dd1b5f9a30
commit
a2ef80b74b
12
cli/main.cpp
12
cli/main.cpp
|
@ -96,3 +96,15 @@ int main(int argc, char* argv[])
|
||||||
CppCheckExecutor exec;
|
CppCheckExecutor exec;
|
||||||
return exec.check(argc, argv);
|
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
|
||||||
|
|
Loading…
Reference in New Issue