From 3ec5c75594720a0b4ddb515a301c1fbc29539541 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Thu, 4 Jan 2018 07:51:19 +0000 Subject: [PATCH] suppress warnings for long string literals git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- loadpath.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/loadpath.c b/loadpath.c index 9160031971..77fba3a61d 100644 --- a/loadpath.c +++ b/loadpath.c @@ -16,6 +16,12 @@ #define RUBY_REVISION 0 #include "version.h" +#ifdef __clang__ +#pragma clang diagnostic ignored "-Woverlength-strings" +#elif defined(__GNUC__) && (__GNUC__ >= 5) +#pragma GCC diagnostic ignored "-Woverlength-strings" +#endif + #ifndef RUBY_ARCH #define RUBY_ARCH RUBY_PLATFORM #endif @@ -89,4 +95,3 @@ const char ruby_initial_load_paths[] = RUBY_ARCH_LIB_FOR(RUBY_ARCH) "\0" #endif ""; -