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:
parent
f8de9b045a
commit
3ec5c75594
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
"";
|
||||
|
||||
|
|
Loading…
Reference in a new issue