aboutsummaryrefslogtreecommitdiffstats
path: root/loadpath.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-04 07:51:19 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-04 07:51:19 +0000
commitabc9c0a285572f89b993eb7df62f9323a3935110 (patch)
tree06aa40ef48dc1a988ad24ae6b9614f9d68bb71bf /loadpath.c
parent82267c27dea61e920e26b3db3d5d6223196984fc (diff)
downloadruby-abc9c0a285572f89b993eb7df62f9323a3935110.tar.gz
suppress warnings for long string literals
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'loadpath.c')
-rw-r--r--loadpath.c7
1 files changed, 6 insertions, 1 deletions
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
"";
-