1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

suppress warnings for long string literals

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2018-01-04 07:51:19 +00:00
parent f8de9b045a
commit 3ec5c75594

View file

@ -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
"";