summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
"";
-