summaryrefslogtreecommitdiff
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
commit3ec5c75594720a0b4ddb515a301c1fbc29539541 (patch)
tree06aa40ef48dc1a988ad24ae6b9614f9d68bb71bf /loadpath.c
parentf8de9b045a21a73a116ff9c4712013e1ae63fee0 (diff)
downloadruby-3ec5c75594720a0b4ddb515a301c1fbc29539541.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
"";
-