Set minimum versions for gcc/clang

This commit is contained in:
Mike Ellery
2019-08-13 14:09:21 -07:00
committed by Nik Bougalis
parent 13a4fefe34
commit cbc6e500b6
4 changed files with 8 additions and 25 deletions

View File

@@ -760,15 +760,6 @@ int main (int argc, char** argv)
ripple::sha512_deprecatedMSVCWorkaround();
#endif
#if defined(__GNUC__) && !defined(__clang__)
auto constexpr gccver = (__GNUC__ * 100 * 100) +
(__GNUC_MINOR__ * 100) +
__GNUC_PATCHLEVEL__;
static_assert (gccver >= 50100,
"GCC version 5.1.0 or later is required to compile rippled.");
#endif
atexit(&google::protobuf::ShutdownProtobufLibrary);
auto const result (ripple::run (argc, argv));

View File

@@ -70,10 +70,6 @@
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wpedantic"
# if __GNUC__ < 5
// GCC 4.9 Bug 61489 Wrong warning with -Wmissing-field-initializers
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
# endif
#endif
namespace date